| 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> |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 | 298 |
| 299 virtual void AddActivationObserver(WmActivationObserver* observer) = 0; | 299 virtual void AddActivationObserver(WmActivationObserver* observer) = 0; |
| 300 virtual void RemoveActivationObserver(WmActivationObserver* observer) = 0; | 300 virtual void RemoveActivationObserver(WmActivationObserver* observer) = 0; |
| 301 | 301 |
| 302 virtual void AddDisplayObserver(WmDisplayObserver* observer) = 0; | 302 virtual void AddDisplayObserver(WmDisplayObserver* observer) = 0; |
| 303 virtual void RemoveDisplayObserver(WmDisplayObserver* observer) = 0; | 303 virtual void RemoveDisplayObserver(WmDisplayObserver* observer) = 0; |
| 304 | 304 |
| 305 void AddShellObserver(ShellObserver* observer); | 305 void AddShellObserver(ShellObserver* observer); |
| 306 void RemoveShellObserver(ShellObserver* observer); | 306 void RemoveShellObserver(ShellObserver* observer); |
| 307 | 307 |
| 308 virtual void AddPointerWatcher(views::PointerWatcher* watcher) = 0; | 308 // If |wants_moves| is true PointerWatcher::OnPointerEventObserved() is |
| 309 // called for pointer move events. Enabling pointer moves may incur a |
| 310 // performance hit and should be avoided if possible. |
| 311 virtual void AddPointerWatcher(views::PointerWatcher* watcher, |
| 312 bool wants_moves) = 0; |
| 309 virtual void RemovePointerWatcher(views::PointerWatcher* watcher) = 0; | 313 virtual void RemovePointerWatcher(views::PointerWatcher* watcher) = 0; |
| 310 | 314 |
| 311 // TODO: Move these back to LockStateController when that has been moved. | 315 // TODO: Move these back to LockStateController when that has been moved. |
| 312 void OnLockStateEvent(LockStateObserver::EventType event); | 316 void OnLockStateEvent(LockStateObserver::EventType event); |
| 313 void AddLockStateObserver(LockStateObserver* observer); | 317 void AddLockStateObserver(LockStateObserver* observer); |
| 314 void RemoveLockStateObserver(LockStateObserver* observer); | 318 void RemoveLockStateObserver(LockStateObserver* observer); |
| 315 | 319 |
| 316 void SetShelfDelegateForTesting(std::unique_ptr<ShelfDelegate> test_delegate); | 320 void SetShelfDelegateForTesting(std::unique_ptr<ShelfDelegate> test_delegate); |
| 317 | 321 |
| 318 // True if any touch points are down. | 322 // True if any touch points are down. |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 bool simulate_modal_window_open_for_testing_ = false; | 403 bool simulate_modal_window_open_for_testing_ = false; |
| 400 | 404 |
| 401 #if defined(OS_CHROMEOS) | 405 #if defined(OS_CHROMEOS) |
| 402 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; | 406 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; |
| 403 #endif | 407 #endif |
| 404 }; | 408 }; |
| 405 | 409 |
| 406 } // namespace ash | 410 } // namespace ash |
| 407 | 411 |
| 408 #endif // ASH_COMMON_WM_SHELL_H_ | 412 #endif // ASH_COMMON_WM_SHELL_H_ |
| OLD | NEW |