OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_EXO_WM_HELPER_MUS_H_ | 5 #ifndef COMPONENTS_EXO_WM_HELPER_MUS_H_ |
6 #define COMPONENTS_EXO_WM_HELPER_MUS_H_ | 6 #define COMPONENTS_EXO_WM_HELPER_MUS_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "components/exo/wm_helper.h" | 9 #include "components/exo/wm_helper.h" |
10 #include "ui/aura/client/focus_change_observer.h" | 10 #include "ui/aura/client/focus_change_observer.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 // This is only used for mash. Mushrome uses WMHelperAsh. | 23 // This is only used for mash. Mushrome uses WMHelperAsh. |
24 class WMHelperMus : public WMHelper, | 24 class WMHelperMus : public WMHelper, |
25 public ui::InputDeviceEventObserver, | 25 public ui::InputDeviceEventObserver, |
26 public aura::FocusSynchronizerObserver, | 26 public aura::FocusSynchronizerObserver, |
27 public aura::client::FocusChangeObserver { | 27 public aura::client::FocusChangeObserver { |
28 public: | 28 public: |
29 WMHelperMus(); | 29 WMHelperMus(); |
30 ~WMHelperMus() override; | 30 ~WMHelperMus() override; |
31 | 31 |
32 // Overridden from WMHelper: | 32 // Overridden from WMHelper: |
33 const display::ManagedDisplayInfo GetDisplayInfo( | 33 const display::ManagedDisplayInfo& GetDisplayInfo( |
34 int64_t display_id) const override; | 34 int64_t display_id) const override; |
35 aura::Window* GetContainer(int container_id) override; | 35 aura::Window* GetPrimaryDisplayContainer(int container_id) override; |
36 aura::Window* GetActiveWindow() const override; | 36 aura::Window* GetActiveWindow() const override; |
37 aura::Window* GetFocusedWindow() const override; | 37 aura::Window* GetFocusedWindow() const override; |
38 ui::CursorSetType GetCursorSet() const override; | 38 ui::CursorSetType GetCursorSet() const override; |
| 39 const display::Display& GetCursorDisplay() const override; |
39 void AddPreTargetHandler(ui::EventHandler* handler) override; | 40 void AddPreTargetHandler(ui::EventHandler* handler) override; |
40 void PrependPreTargetHandler(ui::EventHandler* handler) override; | 41 void PrependPreTargetHandler(ui::EventHandler* handler) override; |
41 void RemovePreTargetHandler(ui::EventHandler* handler) override; | 42 void RemovePreTargetHandler(ui::EventHandler* handler) override; |
42 void AddPostTargetHandler(ui::EventHandler* handler) override; | 43 void AddPostTargetHandler(ui::EventHandler* handler) override; |
43 void RemovePostTargetHandler(ui::EventHandler* handler) override; | 44 void RemovePostTargetHandler(ui::EventHandler* handler) override; |
44 bool IsMaximizeModeWindowManagerEnabled() const override; | 45 bool IsMaximizeModeWindowManagerEnabled() const override; |
45 | 46 |
46 // Overridden from aura::FocusSynchronizerObserver: | 47 // Overridden from aura::FocusSynchronizerObserver: |
47 void OnActiveFocusClientChanged(aura::client::FocusClient* focus_client, | 48 void OnActiveFocusClientChanged(aura::client::FocusClient* focus_client, |
48 aura::Window* focus_client_root) override; | 49 aura::Window* focus_client_root) override; |
(...skipping 19 matching lines...) Expand all Loading... |
68 aura::Window* root_with_active_focus_client_ = nullptr; | 69 aura::Window* root_with_active_focus_client_ = nullptr; |
69 aura::Window* active_window_ = nullptr; | 70 aura::Window* active_window_ = nullptr; |
70 aura::Window* focused_window_ = nullptr; | 71 aura::Window* focused_window_ = nullptr; |
71 | 72 |
72 DISALLOW_COPY_AND_ASSIGN(WMHelperMus); | 73 DISALLOW_COPY_AND_ASSIGN(WMHelperMus); |
73 }; | 74 }; |
74 | 75 |
75 } // namespace exo | 76 } // namespace exo |
76 | 77 |
77 #endif // COMPONENTS_EXO_WM_HELPER_H_ | 78 #endif // COMPONENTS_EXO_WM_HELPER_H_ |
OLD | NEW |