/usr/include/unity-mir/focussetter.h is in libunity-mir-dev 0.3+14.04.20140417-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | /*
* Copyright (C) 2013 Canonical, Ltd.
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License version 3, as published by
* the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranties of MERCHANTABILITY,
* SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef FOCUSSETTER_H
#define FOCUSSETTER_H
// mir
#include <mir/shell/focus_setter.h>
// Qt
#include <QObject>
namespace mir
{
namespace shell
{
class InputTargeter;
class Surface;
}
}
class FocusSetter : public QObject, public mir::shell::FocusSetter
{
Q_OBJECT
public:
FocusSetter(std::shared_ptr<mir::shell::FocusSetter> const& underlying_setter, std::shared_ptr<mir::shell::InputTargeter> const& keyboard_input_targeter,
QObject *parent = 0);
~FocusSetter();
void set_focus_to(std::shared_ptr<mir::shell::Session> const& session) override;
// We support a surface to be given key input when focus is otherwise to be cleared.
void set_default_keyboard_target(std::weak_ptr<mir::shell::Surface> const& default_keyboard_target);
private:
std::shared_ptr<mir::shell::FocusSetter> const underlying_setter;
std::shared_ptr<mir::shell::InputTargeter> const keyboard_input_targeter;
std::weak_ptr<mir::shell::Surface> default_keyboard_target;
};
#endif // FOCUSSETTER_H
|