| 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 ASH_COMMON_WM_SHELL_H_ | 5 #ifndef ASH_COMMON_WM_SHELL_H_ |
| 6 #define ASH_COMMON_WM_SHELL_H_ | 6 #define ASH_COMMON_WM_SHELL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "ash/ash_export.h" | 13 #include "ash/ash_export.h" |
| 14 #include "ash/common/media_delegate.h" | 14 #include "ash/common/media_delegate.h" |
| 15 #include "ash/common/metrics/user_metrics_action.h" | 15 #include "ash/common/metrics/user_metrics_action.h" |
| 16 #include "ash/common/wm/lock_state_observer.h" | 16 #include "ash/common/wm/lock_state_observer.h" |
| 17 #include "base/observer_list.h" | 17 #include "base/observer_list.h" |
| 18 | 18 |
| 19 namespace views { | 19 namespace views { |
| 20 class PointerDownWatcher; | 20 class PointerWatcher; |
| 21 } | 21 } |
| 22 | 22 |
| 23 namespace ash { | 23 namespace ash { |
| 24 | 24 |
| 25 class AcceleratorController; | 25 class AcceleratorController; |
| 26 class AccessibilityDelegate; | 26 class AccessibilityDelegate; |
| 27 class BrightnessControlDelegate; | 27 class BrightnessControlDelegate; |
| 28 class DisplayInfo; | 28 class DisplayInfo; |
| 29 class FocusCycler; | 29 class FocusCycler; |
| 30 class KeyboardBrightnessControlDelegate; | 30 class KeyboardBrightnessControlDelegate; |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 | 243 |
| 244 virtual void AddActivationObserver(WmActivationObserver* observer) = 0; | 244 virtual void AddActivationObserver(WmActivationObserver* observer) = 0; |
| 245 virtual void RemoveActivationObserver(WmActivationObserver* observer) = 0; | 245 virtual void RemoveActivationObserver(WmActivationObserver* observer) = 0; |
| 246 | 246 |
| 247 virtual void AddDisplayObserver(WmDisplayObserver* observer) = 0; | 247 virtual void AddDisplayObserver(WmDisplayObserver* observer) = 0; |
| 248 virtual void RemoveDisplayObserver(WmDisplayObserver* observer) = 0; | 248 virtual void RemoveDisplayObserver(WmDisplayObserver* observer) = 0; |
| 249 | 249 |
| 250 void AddShellObserver(ShellObserver* observer); | 250 void AddShellObserver(ShellObserver* observer); |
| 251 void RemoveShellObserver(ShellObserver* observer); | 251 void RemoveShellObserver(ShellObserver* observer); |
| 252 | 252 |
| 253 virtual void AddPointerDownWatcher(views::PointerDownWatcher* watcher) = 0; | 253 virtual void AddPointerWatcher(views::PointerWatcher* watcher) = 0; |
| 254 virtual void RemovePointerDownWatcher(views::PointerDownWatcher* watcher) = 0; | 254 virtual void RemovePointerWatcher(views::PointerWatcher* watcher) = 0; |
| 255 | 255 |
| 256 // TODO: Move these back to LockStateController when that has been moved. | 256 // TODO: Move these back to LockStateController when that has been moved. |
| 257 void OnLockStateEvent(LockStateObserver::EventType event); | 257 void OnLockStateEvent(LockStateObserver::EventType event); |
| 258 void AddLockStateObserver(LockStateObserver* observer); | 258 void AddLockStateObserver(LockStateObserver* observer); |
| 259 void RemoveLockStateObserver(LockStateObserver* observer); | 259 void RemoveLockStateObserver(LockStateObserver* observer); |
| 260 | 260 |
| 261 #if defined(OS_CHROMEOS) | 261 #if defined(OS_CHROMEOS) |
| 262 LogoutConfirmationController* logout_confirmation_controller() { | 262 LogoutConfirmationController* logout_confirmation_controller() { |
| 263 return logout_confirmation_controller_.get(); | 263 return logout_confirmation_controller_.get(); |
| 264 } | 264 } |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 bool simulate_modal_window_open_for_testing_ = false; | 328 bool simulate_modal_window_open_for_testing_ = false; |
| 329 | 329 |
| 330 #if defined(OS_CHROMEOS) | 330 #if defined(OS_CHROMEOS) |
| 331 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; | 331 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; |
| 332 #endif | 332 #endif |
| 333 }; | 333 }; |
| 334 | 334 |
| 335 } // namespace ash | 335 } // namespace ash |
| 336 | 336 |
| 337 #endif // ASH_COMMON_WM_SHELL_H_ | 337 #endif // ASH_COMMON_WM_SHELL_H_ |
| OLD | NEW |