| 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 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 // avoided if possible. | 423 // avoided if possible. |
| 424 virtual void AddPointerWatcher(views::PointerWatcher* watcher, | 424 virtual void AddPointerWatcher(views::PointerWatcher* watcher, |
| 425 views::PointerWatcherEventTypes events) = 0; | 425 views::PointerWatcherEventTypes events) = 0; |
| 426 virtual void RemovePointerWatcher(views::PointerWatcher* watcher) = 0; | 426 virtual void RemovePointerWatcher(views::PointerWatcher* watcher) = 0; |
| 427 | 427 |
| 428 // TODO: Move these back to LockStateController when that has been moved. | 428 // TODO: Move these back to LockStateController when that has been moved. |
| 429 void OnLockStateEvent(LockStateObserver::EventType event); | 429 void OnLockStateEvent(LockStateObserver::EventType event); |
| 430 void AddLockStateObserver(LockStateObserver* observer); | 430 void AddLockStateObserver(LockStateObserver* observer); |
| 431 void RemoveLockStateObserver(LockStateObserver* observer); | 431 void RemoveLockStateObserver(LockStateObserver* observer); |
| 432 | 432 |
| 433 // Displays the shutdown animation and requests a system shutdown or system | |
| 434 // restart depending on the the state of the |RebootOnShutdown| device policy. | |
| 435 // TODO(mash): Remove this method and call LockStateController directly when | |
| 436 // it is available to code in ash/common. | |
| 437 virtual void RequestShutdown() = 0; | |
| 438 | |
| 439 void SetShelfDelegateForTesting(std::unique_ptr<ShelfDelegate> test_delegate); | 433 void SetShelfDelegateForTesting(std::unique_ptr<ShelfDelegate> test_delegate); |
| 440 void SetPaletteDelegateForTesting( | 434 void SetPaletteDelegateForTesting( |
| 441 std::unique_ptr<PaletteDelegate> palette_delegate); | 435 std::unique_ptr<PaletteDelegate> palette_delegate); |
| 442 | 436 |
| 443 // True if any touch points are down. | 437 // True if any touch points are down. |
| 444 virtual bool IsTouchDown() = 0; | 438 virtual bool IsTouchDown() = 0; |
| 445 | 439 |
| 446 // TODO(jamescook): Remove this when VirtualKeyboardController has been moved. | 440 // TODO(jamescook): Remove this when VirtualKeyboardController has been moved. |
| 447 virtual void ToggleIgnoreExternalKeyboard() = 0; | 441 virtual void ToggleIgnoreExternalKeyboard() = 0; |
| 448 | 442 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 | 545 |
| 552 bool added_activation_observer_ = false; | 546 bool added_activation_observer_ = false; |
| 553 base::ObserverList<WmActivationObserver> activation_observers_; | 547 base::ObserverList<WmActivationObserver> activation_observers_; |
| 554 | 548 |
| 555 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; | 549 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; |
| 556 }; | 550 }; |
| 557 | 551 |
| 558 } // namespace ash | 552 } // namespace ash |
| 559 | 553 |
| 560 #endif // ASH_COMMON_WM_SHELL_H_ | 554 #endif // ASH_COMMON_WM_SHELL_H_ |
| OLD | NEW |