| 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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 virtual void AddPointerWatcher(views::PointerWatcher* watcher) = 0; | 278 virtual void AddPointerWatcher(views::PointerWatcher* watcher) = 0; |
| 279 virtual void RemovePointerWatcher(views::PointerWatcher* watcher) = 0; | 279 virtual void RemovePointerWatcher(views::PointerWatcher* watcher) = 0; |
| 280 | 280 |
| 281 // TODO: Move these back to LockStateController when that has been moved. | 281 // TODO: Move these back to LockStateController when that has been moved. |
| 282 void OnLockStateEvent(LockStateObserver::EventType event); | 282 void OnLockStateEvent(LockStateObserver::EventType event); |
| 283 void AddLockStateObserver(LockStateObserver* observer); | 283 void AddLockStateObserver(LockStateObserver* observer); |
| 284 void RemoveLockStateObserver(LockStateObserver* observer); | 284 void RemoveLockStateObserver(LockStateObserver* observer); |
| 285 | 285 |
| 286 void SetShelfDelegateForTesting(std::unique_ptr<ShelfDelegate> test_delegate); | 286 void SetShelfDelegateForTesting(std::unique_ptr<ShelfDelegate> test_delegate); |
| 287 | 287 |
| 288 // True if any touch points are down. |
| 289 virtual bool IsTouchDown() = 0; |
| 290 |
| 288 #if defined(OS_CHROMEOS) | 291 #if defined(OS_CHROMEOS) |
| 289 LogoutConfirmationController* logout_confirmation_controller() { | 292 LogoutConfirmationController* logout_confirmation_controller() { |
| 290 return logout_confirmation_controller_.get(); | 293 return logout_confirmation_controller_.get(); |
| 291 } | 294 } |
| 292 | 295 |
| 293 // TODO(jamescook): Remove this when VirtualKeyboardController has been moved. | 296 // TODO(jamescook): Remove this when VirtualKeyboardController has been moved. |
| 294 virtual void ToggleIgnoreExternalKeyboard() = 0; | 297 virtual void ToggleIgnoreExternalKeyboard() = 0; |
| 295 #endif | 298 #endif |
| 296 | 299 |
| 297 protected: | 300 protected: |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 bool simulate_modal_window_open_for_testing_ = false; | 368 bool simulate_modal_window_open_for_testing_ = false; |
| 366 | 369 |
| 367 #if defined(OS_CHROMEOS) | 370 #if defined(OS_CHROMEOS) |
| 368 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; | 371 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; |
| 369 #endif | 372 #endif |
| 370 }; | 373 }; |
| 371 | 374 |
| 372 } // namespace ash | 375 } // namespace ash |
| 373 | 376 |
| 374 #endif // ASH_COMMON_WM_SHELL_H_ | 377 #endif // ASH_COMMON_WM_SHELL_H_ |
| OLD | NEW |