| 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 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 | 442 |
| 443 // True if any touch points are down. | 443 // True if any touch points are down. |
| 444 virtual bool IsTouchDown() = 0; | 444 virtual bool IsTouchDown() = 0; |
| 445 | 445 |
| 446 // TODO(jamescook): Remove this when VirtualKeyboardController has been moved. | 446 // TODO(jamescook): Remove this when VirtualKeyboardController has been moved. |
| 447 virtual void ToggleIgnoreExternalKeyboard() = 0; | 447 virtual void ToggleIgnoreExternalKeyboard() = 0; |
| 448 | 448 |
| 449 // Enable or disable the laser pointer. | 449 // Enable or disable the laser pointer. |
| 450 virtual void SetLaserPointerEnabled(bool enabled) = 0; | 450 virtual void SetLaserPointerEnabled(bool enabled) = 0; |
| 451 | 451 |
| 452 // Enable or disable the partial magnifier. |
| 453 virtual void SetPartialMagnifierEnabled(bool enabled) = 0; |
| 454 |
| 452 virtual void CreatePointerWatcherAdapter() = 0; | 455 virtual void CreatePointerWatcherAdapter() = 0; |
| 453 | 456 |
| 454 protected: | 457 protected: |
| 455 explicit WmShell(std::unique_ptr<ShellDelegate> shell_delegate); | 458 explicit WmShell(std::unique_ptr<ShellDelegate> shell_delegate); |
| 456 | 459 |
| 457 // Called during startup to create the primary WindowTreeHost and | 460 // Called during startup to create the primary WindowTreeHost and |
| 458 // the corresponding RootWindowController. | 461 // the corresponding RootWindowController. |
| 459 virtual void CreatePrimaryHost() = 0; | 462 virtual void CreatePrimaryHost() = 0; |
| 460 virtual void InitHosts(const ShellInitParams& init_params) = 0; | 463 virtual void InitHosts(const ShellInitParams& init_params) = 0; |
| 461 | 464 |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 | 554 |
| 552 bool added_activation_observer_ = false; | 555 bool added_activation_observer_ = false; |
| 553 base::ObserverList<WmActivationObserver> activation_observers_; | 556 base::ObserverList<WmActivationObserver> activation_observers_; |
| 554 | 557 |
| 555 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; | 558 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; |
| 556 }; | 559 }; |
| 557 | 560 |
| 558 } // namespace ash | 561 } // namespace ash |
| 559 | 562 |
| 560 #endif // ASH_COMMON_WM_SHELL_H_ | 563 #endif // ASH_COMMON_WM_SHELL_H_ |
| OLD | NEW |