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_ASH_H_ | 5 #ifndef COMPONENTS_EXO_WM_HELPER_ASH_H_ |
6 #define COMPONENTS_EXO_WM_HELPER_ASH_H_ | 6 #define COMPONENTS_EXO_WM_HELPER_ASH_H_ |
7 | 7 |
8 #include "ash/display/window_tree_host_manager.h" | 8 #include "ash/display/window_tree_host_manager.h" |
9 #include "ash/shell_observer.h" | 9 #include "ash/shell_observer.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 public: | 27 public: |
28 WMHelperAsh(); | 28 WMHelperAsh(); |
29 ~WMHelperAsh() override; | 29 ~WMHelperAsh() override; |
30 | 30 |
31 // Overridden from WMHelper: | 31 // Overridden from WMHelper: |
32 const display::ManagedDisplayInfo& GetDisplayInfo( | 32 const display::ManagedDisplayInfo& GetDisplayInfo( |
33 int64_t display_id) const override; | 33 int64_t display_id) const override; |
34 aura::Window* GetPrimaryDisplayContainer(int container_id) override; | 34 aura::Window* GetPrimaryDisplayContainer(int container_id) override; |
35 aura::Window* GetActiveWindow() const override; | 35 aura::Window* GetActiveWindow() const override; |
36 aura::Window* GetFocusedWindow() const override; | 36 aura::Window* GetFocusedWindow() const override; |
37 ui::CursorSetType GetCursorSet() const override; | 37 ui::CursorSize GetCursorSize() const override; |
38 const display::Display& GetCursorDisplay() const override; | 38 const display::Display& GetCursorDisplay() const override; |
39 void AddPreTargetHandler(ui::EventHandler* handler) override; | 39 void AddPreTargetHandler(ui::EventHandler* handler) override; |
40 void PrependPreTargetHandler(ui::EventHandler* handler) override; | 40 void PrependPreTargetHandler(ui::EventHandler* handler) override; |
41 void RemovePreTargetHandler(ui::EventHandler* handler) override; | 41 void RemovePreTargetHandler(ui::EventHandler* handler) override; |
42 void AddPostTargetHandler(ui::EventHandler* handler) override; | 42 void AddPostTargetHandler(ui::EventHandler* handler) override; |
43 void RemovePostTargetHandler(ui::EventHandler* handler) override; | 43 void RemovePostTargetHandler(ui::EventHandler* handler) override; |
44 bool IsMaximizeModeWindowManagerEnabled() const override; | 44 bool IsMaximizeModeWindowManagerEnabled() const override; |
45 | 45 |
46 // Overridden from wm::ActivationChangeObserver: | 46 // Overridden from wm::ActivationChangeObserver: |
47 void OnWindowActivated(wm::ActivationChangeObserver::ActivationReason reason, | 47 void OnWindowActivated(wm::ActivationChangeObserver::ActivationReason reason, |
48 aura::Window* gained_active, | 48 aura::Window* gained_active, |
49 aura::Window* lost_active) override; | 49 aura::Window* lost_active) override; |
50 | 50 |
51 // Overridden from aura::client::FocusChangeObserver: | 51 // Overridden from aura::client::FocusChangeObserver: |
52 void OnWindowFocused(aura::Window* gained_focus, | 52 void OnWindowFocused(aura::Window* gained_focus, |
53 aura::Window* lost_focus) override; | 53 aura::Window* lost_focus) override; |
54 | 54 |
55 // Overridden from aura::client::CursorClientObserver: | 55 // Overridden from aura::client::CursorClientObserver: |
56 void OnCursorVisibilityChanged(bool is_visible) override; | 56 void OnCursorVisibilityChanged(bool is_visible) override; |
57 void OnCursorSetChanged(ui::CursorSetType cursor_set) override; | 57 void OnCursorSizeChanged(ui::CursorSize cursor_size) override; |
58 void OnCursorDisplayChanged(const display::Display& display) override; | 58 void OnCursorDisplayChanged(const display::Display& display) override; |
59 | 59 |
60 // Overridden from ash::ShellObserver: | 60 // Overridden from ash::ShellObserver: |
61 void OnMaximizeModeStarted() override; | 61 void OnMaximizeModeStarted() override; |
62 void OnMaximizeModeEnding() override; | 62 void OnMaximizeModeEnding() override; |
63 void OnMaximizeModeEnded() override; | 63 void OnMaximizeModeEnded() override; |
64 | 64 |
65 // WindowTreeHostManager::Observer: | 65 // WindowTreeHostManager::Observer: |
66 void OnDisplayConfigurationChanged() override; | 66 void OnDisplayConfigurationChanged() override; |
67 | 67 |
68 // Overridden from ui::InputDeviceEventObserver: | 68 // Overridden from ui::InputDeviceEventObserver: |
69 void OnKeyboardDeviceConfigurationChanged() override; | 69 void OnKeyboardDeviceConfigurationChanged() override; |
70 | 70 |
71 private: | 71 private: |
72 DISALLOW_COPY_AND_ASSIGN(WMHelperAsh); | 72 DISALLOW_COPY_AND_ASSIGN(WMHelperAsh); |
73 }; | 73 }; |
74 | 74 |
75 } // namespace exo | 75 } // namespace exo |
76 | 76 |
77 #endif // COMPONENTS_EXO_WM_HELPER_H_ | 77 #endif // COMPONENTS_EXO_WM_HELPER_H_ |
OLD | NEW |