| 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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 // True if any touch points are down. | 343 // True if any touch points are down. |
| 344 virtual bool IsTouchDown() = 0; | 344 virtual bool IsTouchDown() = 0; |
| 345 | 345 |
| 346 #if defined(OS_CHROMEOS) | 346 #if defined(OS_CHROMEOS) |
| 347 LogoutConfirmationController* logout_confirmation_controller() { | 347 LogoutConfirmationController* logout_confirmation_controller() { |
| 348 return logout_confirmation_controller_.get(); | 348 return logout_confirmation_controller_.get(); |
| 349 } | 349 } |
| 350 | 350 |
| 351 // TODO(jamescook): Remove this when VirtualKeyboardController has been moved. | 351 // TODO(jamescook): Remove this when VirtualKeyboardController has been moved. |
| 352 virtual void ToggleIgnoreExternalKeyboard() = 0; | 352 virtual void ToggleIgnoreExternalKeyboard() = 0; |
| 353 |
| 354 // Enable or disable the laser pointer. |
| 355 virtual void SetLaserPointerEnabled(bool enabled) = 0; |
| 353 #endif | 356 #endif |
| 354 | 357 |
| 355 protected: | 358 protected: |
| 356 explicit WmShell(std::unique_ptr<ShellDelegate> shell_delegate); | 359 explicit WmShell(std::unique_ptr<ShellDelegate> shell_delegate); |
| 357 virtual ~WmShell(); | 360 virtual ~WmShell(); |
| 358 | 361 |
| 359 base::ObserverList<ShellObserver>* shell_observers() { | 362 base::ObserverList<ShellObserver>* shell_observers() { |
| 360 return &shell_observers_; | 363 return &shell_observers_; |
| 361 } | 364 } |
| 362 | 365 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 bool simulate_modal_window_open_for_testing_ = false; | 427 bool simulate_modal_window_open_for_testing_ = false; |
| 425 | 428 |
| 426 #if defined(OS_CHROMEOS) | 429 #if defined(OS_CHROMEOS) |
| 427 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; | 430 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; |
| 428 #endif | 431 #endif |
| 429 }; | 432 }; |
| 430 | 433 |
| 431 } // namespace ash | 434 } // namespace ash |
| 432 | 435 |
| 433 #endif // ASH_COMMON_WM_SHELL_H_ | 436 #endif // ASH_COMMON_WM_SHELL_H_ |
| OLD | NEW |