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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
391 // avoided if possible. | 391 // avoided if possible. |
392 virtual void AddPointerWatcher(views::PointerWatcher* watcher, | 392 virtual void AddPointerWatcher(views::PointerWatcher* watcher, |
393 views::PointerWatcherEventTypes events) = 0; | 393 views::PointerWatcherEventTypes events) = 0; |
394 virtual void RemovePointerWatcher(views::PointerWatcher* watcher) = 0; | 394 virtual void RemovePointerWatcher(views::PointerWatcher* watcher) = 0; |
395 | 395 |
396 // TODO: Move these back to LockStateController when that has been moved. | 396 // TODO: Move these back to LockStateController when that has been moved. |
397 void OnLockStateEvent(LockStateObserver::EventType event); | 397 void OnLockStateEvent(LockStateObserver::EventType event); |
398 void AddLockStateObserver(LockStateObserver* observer); | 398 void AddLockStateObserver(LockStateObserver* observer); |
399 void RemoveLockStateObserver(LockStateObserver* observer); | 399 void RemoveLockStateObserver(LockStateObserver* observer); |
400 | 400 |
401 // Displays the shutdown animation and requests a system shutdown or system | |
402 // restart depending on the the state of the |RebootOnShutdown| device policy. | |
403 // TODO(mash): Remove this method and call LockStateController directly when | |
Daniel Erat
2016/11/10 19:24:53
just double-checked that there don't appear to be
| |
404 // it is available to code in ash/common. | |
405 virtual void RequestShutdown() = 0; | |
406 | |
401 void SetShelfDelegateForTesting(std::unique_ptr<ShelfDelegate> test_delegate); | 407 void SetShelfDelegateForTesting(std::unique_ptr<ShelfDelegate> test_delegate); |
402 void SetPaletteDelegateForTesting( | 408 void SetPaletteDelegateForTesting( |
403 std::unique_ptr<PaletteDelegate> palette_delegate); | 409 std::unique_ptr<PaletteDelegate> palette_delegate); |
404 | 410 |
405 // True if any touch points are down. | 411 // True if any touch points are down. |
406 virtual bool IsTouchDown() = 0; | 412 virtual bool IsTouchDown() = 0; |
407 | 413 |
408 const scoped_refptr<base::SequencedWorkerPool>& blocking_pool() { | 414 const scoped_refptr<base::SequencedWorkerPool>& blocking_pool() { |
409 return blocking_pool_; | 415 return blocking_pool_; |
410 } | 416 } |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
500 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; | 506 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; |
501 | 507 |
502 #if defined(OS_CHROMEOS) | 508 #if defined(OS_CHROMEOS) |
503 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; | 509 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; |
504 #endif | 510 #endif |
505 }; | 511 }; |
506 | 512 |
507 } // namespace ash | 513 } // namespace ash |
508 | 514 |
509 #endif // ASH_COMMON_WM_SHELL_H_ | 515 #endif // ASH_COMMON_WM_SHELL_H_ |
OLD | NEW |