2
* Copyright © 2013 Canonical Ltd.
4
* This program is free software: you can redistribute it and/or modify it
5
* under the terms of the GNU General Public License version 3,
6
* as published by the Free Software Foundation.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
* Authored by: Robert Carr <robert.carr@canonical.com>
19
#ifndef MIR_SHELL_INPUT_TARGET_LISTENER_H_
20
#define MIR_SHELL_INPUT_TARGET_LISTENER_H_
35
class InputTargetListener
38
virtual ~InputTargetListener() = default;
40
virtual void input_application_opened(std::shared_ptr<input::SessionTarget> const& application) = 0;
41
virtual void input_application_closed(std::shared_ptr<input::SessionTarget> const& application) = 0;
43
virtual void input_surface_opened(std::shared_ptr<input::SessionTarget> const& application,
44
std::shared_ptr<input::SurfaceTarget> const& opened_surface) = 0;
45
virtual void input_surface_closed(std::shared_ptr<input::SurfaceTarget> const& closed_surface) = 0;
47
virtual void focus_changed(std::shared_ptr<input::SurfaceTarget> const& focus_surface) = 0;
48
virtual void focus_cleared() = 0;
51
InputTargetListener() = default;
52
InputTargetListener(InputTargetListener const&) = delete;
53
InputTargetListener& operator=(InputTargetListener const&) = delete;
59
#endif // MIR_SHELL_INPUT_TARGET_LISTENER_H_