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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 | 308 |
309 virtual void AddActivationObserver(WmActivationObserver* observer) = 0; | 309 virtual void AddActivationObserver(WmActivationObserver* observer) = 0; |
310 virtual void RemoveActivationObserver(WmActivationObserver* observer) = 0; | 310 virtual void RemoveActivationObserver(WmActivationObserver* observer) = 0; |
311 | 311 |
312 virtual void AddDisplayObserver(WmDisplayObserver* observer) = 0; | 312 virtual void AddDisplayObserver(WmDisplayObserver* observer) = 0; |
313 virtual void RemoveDisplayObserver(WmDisplayObserver* observer) = 0; | 313 virtual void RemoveDisplayObserver(WmDisplayObserver* observer) = 0; |
314 | 314 |
315 void AddShellObserver(ShellObserver* observer); | 315 void AddShellObserver(ShellObserver* observer); |
316 void RemoveShellObserver(ShellObserver* observer); | 316 void RemoveShellObserver(ShellObserver* observer); |
317 | 317 |
318 virtual void AddPointerWatcher(views::PointerWatcher* watcher) = 0; | 318 // If |wants_moves| is true PointerWatcher::OnPointerEventObserved() is |
| 319 // called for pointer move events. Enabling pointer moves may incur a |
| 320 // performance hit and should be avoided if possible. |
| 321 virtual void AddPointerWatcher(views::PointerWatcher* watcher, |
| 322 bool wants_moves) = 0; |
319 virtual void RemovePointerWatcher(views::PointerWatcher* watcher) = 0; | 323 virtual void RemovePointerWatcher(views::PointerWatcher* watcher) = 0; |
320 | 324 |
321 // TODO: Move these back to LockStateController when that has been moved. | 325 // TODO: Move these back to LockStateController when that has been moved. |
322 void OnLockStateEvent(LockStateObserver::EventType event); | 326 void OnLockStateEvent(LockStateObserver::EventType event); |
323 void AddLockStateObserver(LockStateObserver* observer); | 327 void AddLockStateObserver(LockStateObserver* observer); |
324 void RemoveLockStateObserver(LockStateObserver* observer); | 328 void RemoveLockStateObserver(LockStateObserver* observer); |
325 | 329 |
326 void SetShelfDelegateForTesting(std::unique_ptr<ShelfDelegate> test_delegate); | 330 void SetShelfDelegateForTesting(std::unique_ptr<ShelfDelegate> test_delegate); |
327 | 331 |
328 // True if any touch points are down. | 332 // True if any touch points are down. |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 bool simulate_modal_window_open_for_testing_ = false; | 413 bool simulate_modal_window_open_for_testing_ = false; |
410 | 414 |
411 #if defined(OS_CHROMEOS) | 415 #if defined(OS_CHROMEOS) |
412 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; | 416 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; |
413 #endif | 417 #endif |
414 }; | 418 }; |
415 | 419 |
416 } // namespace ash | 420 } // namespace ash |
417 | 421 |
418 #endif // ASH_COMMON_WM_SHELL_H_ | 422 #endif // ASH_COMMON_WM_SHELL_H_ |
OLD | NEW |