| 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/common/shell_observer.h" | 8 #include "ash/common/shell_observer.h" |
| 9 #include "ash/common/system/accessibility_observer.h" | 9 #include "ash/common/system/accessibility_observer.h" |
| 10 #include "ash/display/window_tree_host_manager.h" | 10 #include "ash/display/window_tree_host_manager.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 public aura::client::FocusChangeObserver, | 23 public aura::client::FocusChangeObserver, |
| 24 public aura::client::CursorClientObserver, | 24 public aura::client::CursorClientObserver, |
| 25 public ash::AccessibilityObserver, | 25 public ash::AccessibilityObserver, |
| 26 public ash::ShellObserver, | 26 public ash::ShellObserver, |
| 27 public ash::WindowTreeHostManager::Observer, | 27 public ash::WindowTreeHostManager::Observer, |
| 28 public ui::InputDeviceEventObserver { | 28 public ui::InputDeviceEventObserver { |
| 29 public: | 29 public: |
| 30 WMHelperAsh(); | 30 WMHelperAsh(); |
| 31 ~WMHelperAsh() override; | 31 ~WMHelperAsh() override; |
| 32 | 32 |
| 33 // Overriden from WMHelper: | 33 // Overridden from WMHelper: |
| 34 const display::ManagedDisplayInfo GetDisplayInfo( | 34 const display::ManagedDisplayInfo GetDisplayInfo( |
| 35 int64_t display_id) const override; | 35 int64_t display_id) const override; |
| 36 aura::Window* GetContainer(int container_id) override; | 36 aura::Window* GetContainer(int container_id) override; |
| 37 aura::Window* GetActiveWindow() const override; | 37 aura::Window* GetActiveWindow() const override; |
| 38 aura::Window* GetFocusedWindow() const override; | 38 aura::Window* GetFocusedWindow() const override; |
| 39 ui::CursorSetType GetCursorSet() const override; | 39 ui::CursorSetType GetCursorSet() const override; |
| 40 void AddPreTargetHandler(ui::EventHandler* handler) override; | 40 void AddPreTargetHandler(ui::EventHandler* handler) override; |
| 41 void PrependPreTargetHandler(ui::EventHandler* handler) override; | 41 void PrependPreTargetHandler(ui::EventHandler* handler) override; |
| 42 void RemovePreTargetHandler(ui::EventHandler* handler) override; | 42 void RemovePreTargetHandler(ui::EventHandler* handler) override; |
| 43 void AddPostTargetHandler(ui::EventHandler* handler) override; | 43 void AddPostTargetHandler(ui::EventHandler* handler) override; |
| 44 void RemovePostTargetHandler(ui::EventHandler* handler) override; | 44 void RemovePostTargetHandler(ui::EventHandler* handler) override; |
| 45 bool IsMaximizeModeWindowManagerEnabled() const override; | 45 bool IsMaximizeModeWindowManagerEnabled() const override; |
| 46 bool IsSpokenFeedbackEnabled() const override; | 46 bool IsSpokenFeedbackEnabled() const override; |
| 47 void PlayEarcon(int sound_key) const override; | 47 void PlayEarcon(int sound_key) const override; |
| 48 | 48 |
| 49 // Overriden from aura::client::ActivationChangeObserver: | 49 // Overridden from aura::client::ActivationChangeObserver: |
| 50 void OnWindowActivated( | 50 void OnWindowActivated( |
| 51 aura::client::ActivationChangeObserver::ActivationReason reason, | 51 aura::client::ActivationChangeObserver::ActivationReason reason, |
| 52 aura::Window* gained_active, | 52 aura::Window* gained_active, |
| 53 aura::Window* lost_active) override; | 53 aura::Window* lost_active) override; |
| 54 | 54 |
| 55 // Overriden from aura::client::FocusChangeObserver: | 55 // Overridden from aura::client::FocusChangeObserver: |
| 56 void OnWindowFocused(aura::Window* gained_focus, | 56 void OnWindowFocused(aura::Window* gained_focus, |
| 57 aura::Window* lost_focus) override; | 57 aura::Window* lost_focus) override; |
| 58 | 58 |
| 59 // Overriden from aura::client::CursorClientObserver: | 59 // Overridden from aura::client::CursorClientObserver: |
| 60 void OnCursorVisibilityChanged(bool is_visible) override; | 60 void OnCursorVisibilityChanged(bool is_visible) override; |
| 61 void OnCursorSetChanged(ui::CursorSetType cursor_set) override; | 61 void OnCursorSetChanged(ui::CursorSetType cursor_set) override; |
| 62 | 62 |
| 63 // Overridden from ash::AccessibilityObserver: | 63 // Overridden from ash::AccessibilityObserver: |
| 64 void OnAccessibilityModeChanged( | 64 void OnAccessibilityModeChanged( |
| 65 ash::AccessibilityNotificationVisibility notify) override; | 65 ash::AccessibilityNotificationVisibility notify) override; |
| 66 | 66 |
| 67 // Overriden from ash::ShellObserver: | 67 // Overridden from ash::ShellObserver: |
| 68 void OnMaximizeModeStarted() override; | 68 void OnMaximizeModeStarted() override; |
| 69 void OnMaximizeModeEnding() override; | 69 void OnMaximizeModeEnding() override; |
| 70 void OnMaximizeModeEnded() override; | 70 void OnMaximizeModeEnded() override; |
| 71 | 71 |
| 72 // Overriden from ash::WindowTreeHostManager::Observer: | 72 // Overridden from ash::WindowTreeHostManager::Observer: |
| 73 void OnDisplayConfigurationChanged() override; | 73 void OnDisplayConfigurationChanged() override; |
| 74 | 74 |
| 75 // Overriden from ui::InputDeviceEventObserver: | 75 // Overridden from ui::InputDeviceEventObserver: |
| 76 void OnKeyboardDeviceConfigurationChanged() override; | 76 void OnKeyboardDeviceConfigurationChanged() override; |
| 77 | 77 |
| 78 private: | 78 private: |
| 79 DISALLOW_COPY_AND_ASSIGN(WMHelperAsh); | 79 DISALLOW_COPY_AND_ASSIGN(WMHelperAsh); |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 } // namespace exo | 82 } // namespace exo |
| 83 | 83 |
| 84 #endif // COMPONENTS_EXO_WM_HELPER_H_ | 84 #endif // COMPONENTS_EXO_WM_HELPER_H_ |
| OLD | NEW |