~mir-team/mir/development-branch

« back to all changes in this revision

Viewing changes to include/server/mir/shell/focus_controller.h

merge trunk and resolve conflicts

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
namespace shell
29
29
{
30
 
 
 
30
// TODO I don't think this interface serves a meaningful purpose
 
31
// TODO (It is referenced by a couple of example WindowManagers, and
 
32
// TODO to get the active session in unity-system-compositor.)
 
33
// TODO I think there's a better approach possible.
31
34
class FocusController
32
35
{
33
36
public:
34
37
    virtual ~FocusController() = default;
35
38
 
 
39
    virtual std::weak_ptr<scene::Session> focussed_application() const = 0;
36
40
    virtual void focus_next() = 0;
37
 
    virtual std::weak_ptr<scene::Session> focussed_application() const = 0;
38
41
    virtual void set_focus_to(std::shared_ptr<scene::Session> const& focus) = 0;
39
42
 
40
43
protected: