| 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_H_ | 5 #ifndef COMPONENTS_EXO_WM_HELPER_H_ |
| 6 #define COMPONENTS_EXO_WM_HELPER_H_ | 6 #define COMPONENTS_EXO_WM_HELPER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
| 10 #include "ui/base/cursor/cursor.h" | 10 #include "ui/base/cursor/cursor.h" |
| 11 #include "ui/gfx/native_widget_types.h" |
| 11 | 12 |
| 12 namespace aura { | 13 namespace aura { |
| 13 class Window; | 14 class Window; |
| 14 } | 15 } |
| 15 | 16 |
| 16 namespace display { | 17 namespace display { |
| 17 class Display; | 18 class Display; |
| 18 class ManagedDisplayInfo; | 19 class ManagedDisplayInfo; |
| 19 } | 20 } |
| 20 | 21 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 virtual aura::Window* GetFocusedWindow() const = 0; | 118 virtual aura::Window* GetFocusedWindow() const = 0; |
| 118 virtual ui::CursorSetType GetCursorSet() const = 0; | 119 virtual ui::CursorSetType GetCursorSet() const = 0; |
| 119 virtual void AddPreTargetHandler(ui::EventHandler* handler) = 0; | 120 virtual void AddPreTargetHandler(ui::EventHandler* handler) = 0; |
| 120 virtual void PrependPreTargetHandler(ui::EventHandler* handler) = 0; | 121 virtual void PrependPreTargetHandler(ui::EventHandler* handler) = 0; |
| 121 virtual void RemovePreTargetHandler(ui::EventHandler* handler) = 0; | 122 virtual void RemovePreTargetHandler(ui::EventHandler* handler) = 0; |
| 122 virtual void AddPostTargetHandler(ui::EventHandler* handler) = 0; | 123 virtual void AddPostTargetHandler(ui::EventHandler* handler) = 0; |
| 123 virtual void RemovePostTargetHandler(ui::EventHandler* handler) = 0; | 124 virtual void RemovePostTargetHandler(ui::EventHandler* handler) = 0; |
| 124 virtual bool IsMaximizeModeWindowManagerEnabled() const = 0; | 125 virtual bool IsMaximizeModeWindowManagerEnabled() const = 0; |
| 125 virtual bool IsSpokenFeedbackEnabled() const = 0; | 126 virtual bool IsSpokenFeedbackEnabled() const = 0; |
| 126 virtual void PlayEarcon(int sound_key) const = 0; | 127 virtual void PlayEarcon(int sound_key) const = 0; |
| 128 virtual void SetCursor(gfx::NativeCursor cursor) = 0; |
| 127 | 129 |
| 128 protected: | 130 protected: |
| 129 WMHelper(); | 131 WMHelper(); |
| 130 | 132 |
| 131 void NotifyWindowActivated(aura::Window* gained_active, | 133 void NotifyWindowActivated(aura::Window* gained_active, |
| 132 aura::Window* lost_active); | 134 aura::Window* lost_active); |
| 133 void NotifyWindowFocused(aura::Window* gained_focus, | 135 void NotifyWindowFocused(aura::Window* gained_focus, |
| 134 aura::Window* lost_focus); | 136 aura::Window* lost_focus); |
| 135 void NotifyCursorVisibilityChanged(bool is_visible); | 137 void NotifyCursorVisibilityChanged(bool is_visible); |
| 136 void NotifyCursorSetChanged(ui::CursorSetType cursor_set); | 138 void NotifyCursorSetChanged(ui::CursorSetType cursor_set); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 150 base::ObserverList<AccessibilityObserver> accessibility_observers_; | 152 base::ObserverList<AccessibilityObserver> accessibility_observers_; |
| 151 base::ObserverList<InputDeviceEventObserver> input_device_event_observers_; | 153 base::ObserverList<InputDeviceEventObserver> input_device_event_observers_; |
| 152 base::ObserverList<DisplayConfigurationObserver> display_config_observers_; | 154 base::ObserverList<DisplayConfigurationObserver> display_config_observers_; |
| 153 | 155 |
| 154 DISALLOW_COPY_AND_ASSIGN(WMHelper); | 156 DISALLOW_COPY_AND_ASSIGN(WMHelper); |
| 155 }; | 157 }; |
| 156 | 158 |
| 157 } // namespace exo | 159 } // namespace exo |
| 158 | 160 |
| 159 #endif // COMPONENTS_EXO_WM_HELPER_H_ | 161 #endif // COMPONENTS_EXO_WM_HELPER_H_ |
| OLD | NEW |