~hikiko/mir/mir.unity8-desktop-session

« back to all changes in this revision

Viewing changes to src/server/shell/default_focus_mechanism.h

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Daniel van Vugt, Ubuntu daily release
  • Date: 2014-01-08 02:04:38 UTC
  • mfrom: (1.1.54)
  • Revision ID: package-import@ubuntu.com-20140108020438-ikbu7qqm9v2l026y
Tags: 0.1.3+14.04.20140108-0ubuntu1
[ Daniel van Vugt ]
* Preparing for release 0.1.3

[ Ubuntu daily release ]
* Automatic snapshot from revision 1170

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
namespace mir
28
28
{
 
29
namespace scene { class SurfaceRanker; }
29
30
 
30
31
namespace shell
31
32
{
32
33
class Surface;
33
34
class InputTargeter;
34
 
class SurfaceController;
35
35
 
36
36
class DefaultFocusMechanism : public FocusSetter
37
37
{
38
38
public:
39
39
    explicit DefaultFocusMechanism(std::shared_ptr<InputTargeter> const& input_targeter,
40
 
                                   std::shared_ptr<SurfaceController> const& surface_controller);
 
40
                                   std::shared_ptr<scene::SurfaceRanker> const& surface_controller);
41
41
    virtual ~DefaultFocusMechanism() = default;
42
42
 
43
43
    void set_focus_to(std::shared_ptr<shell::Session> const& new_focus);
48
48
 
49
49
private:
50
50
    std::shared_ptr<InputTargeter> const input_targeter;
51
 
    std::shared_ptr<SurfaceController> const surface_controller;
 
51
    std::shared_ptr<scene::SurfaceRanker> const surface_controller;
52
52
 
53
53
    std::mutex surface_focus_lock;
54
54
    std::weak_ptr<Surface> currently_focused_surface;