| 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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 virtual void AddPointerWatcher(views::PointerWatcher* watcher, | 326 virtual void AddPointerWatcher(views::PointerWatcher* watcher, |
| 327 bool wants_moves) = 0; | 327 bool wants_moves) = 0; |
| 328 virtual void RemovePointerWatcher(views::PointerWatcher* watcher) = 0; | 328 virtual void RemovePointerWatcher(views::PointerWatcher* watcher) = 0; |
| 329 | 329 |
| 330 // TODO: Move these back to LockStateController when that has been moved. | 330 // TODO: Move these back to LockStateController when that has been moved. |
| 331 void OnLockStateEvent(LockStateObserver::EventType event); | 331 void OnLockStateEvent(LockStateObserver::EventType event); |
| 332 void AddLockStateObserver(LockStateObserver* observer); | 332 void AddLockStateObserver(LockStateObserver* observer); |
| 333 void RemoveLockStateObserver(LockStateObserver* observer); | 333 void RemoveLockStateObserver(LockStateObserver* observer); |
| 334 | 334 |
| 335 void SetShelfDelegateForTesting(std::unique_ptr<ShelfDelegate> test_delegate); | 335 void SetShelfDelegateForTesting(std::unique_ptr<ShelfDelegate> test_delegate); |
| 336 void SetPaletteDelegateForTesting( |
| 337 std::unique_ptr<PaletteDelegate> palette_delegate); |
| 336 | 338 |
| 337 // True if any touch points are down. | 339 // True if any touch points are down. |
| 338 virtual bool IsTouchDown() = 0; | 340 virtual bool IsTouchDown() = 0; |
| 339 | 341 |
| 340 #if defined(OS_CHROMEOS) | 342 #if defined(OS_CHROMEOS) |
| 341 LogoutConfirmationController* logout_confirmation_controller() { | 343 LogoutConfirmationController* logout_confirmation_controller() { |
| 342 return logout_confirmation_controller_.get(); | 344 return logout_confirmation_controller_.get(); |
| 343 } | 345 } |
| 344 | 346 |
| 345 // TODO(jamescook): Remove this when VirtualKeyboardController has been moved. | 347 // TODO(jamescook): Remove this when VirtualKeyboardController has been moved. |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 bool simulate_modal_window_open_for_testing_ = false; | 420 bool simulate_modal_window_open_for_testing_ = false; |
| 419 | 421 |
| 420 #if defined(OS_CHROMEOS) | 422 #if defined(OS_CHROMEOS) |
| 421 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; | 423 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; |
| 422 #endif | 424 #endif |
| 423 }; | 425 }; |
| 424 | 426 |
| 425 } // namespace ash | 427 } // namespace ash |
| 426 | 428 |
| 427 #endif // ASH_COMMON_WM_SHELL_H_ | 429 #endif // ASH_COMMON_WM_SHELL_H_ |
| OLD | NEW |