| 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_AURA_WM_SHELL_AURA_H_ | 5 #ifndef ASH_AURA_WM_SHELL_AURA_H_ |
| 6 #define ASH_AURA_WM_SHELL_AURA_H_ | 6 #define ASH_AURA_WM_SHELL_AURA_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 void AddActivationObserver(WmActivationObserver* observer) override; | 78 void AddActivationObserver(WmActivationObserver* observer) override; |
| 79 void RemoveActivationObserver(WmActivationObserver* observer) override; | 79 void RemoveActivationObserver(WmActivationObserver* observer) override; |
| 80 void AddDisplayObserver(WmDisplayObserver* observer) override; | 80 void AddDisplayObserver(WmDisplayObserver* observer) override; |
| 81 void RemoveDisplayObserver(WmDisplayObserver* observer) override; | 81 void RemoveDisplayObserver(WmDisplayObserver* observer) override; |
| 82 void AddPointerWatcher(views::PointerWatcher* watcher, | 82 void AddPointerWatcher(views::PointerWatcher* watcher, |
| 83 views::PointerWatcherEventTypes events) override; | 83 views::PointerWatcherEventTypes events) override; |
| 84 void RemovePointerWatcher(views::PointerWatcher* watcher) override; | 84 void RemovePointerWatcher(views::PointerWatcher* watcher) override; |
| 85 bool IsTouchDown() override; | 85 bool IsTouchDown() override; |
| 86 #if defined(OS_CHROMEOS) | 86 #if defined(OS_CHROMEOS) |
| 87 void ToggleIgnoreExternalKeyboard() override; | 87 void ToggleIgnoreExternalKeyboard() override; |
| 88 void SetLaserPointerEnabled(bool enabled) override; |
| 88 #endif | 89 #endif |
| 89 | 90 |
| 90 private: | 91 private: |
| 91 // aura::client::ActivationChangeObserver: | 92 // aura::client::ActivationChangeObserver: |
| 92 void OnWindowActivated(ActivationReason reason, | 93 void OnWindowActivated(ActivationReason reason, |
| 93 aura::Window* gained_active, | 94 aura::Window* gained_active, |
| 94 aura::Window* lost_active) override; | 95 aura::Window* lost_active) override; |
| 95 void OnAttemptToReactivateWindow(aura::Window* request_active, | 96 void OnAttemptToReactivateWindow(aura::Window* request_active, |
| 96 aura::Window* actual_active) override; | 97 aura::Window* actual_active) override; |
| 97 | 98 |
| 98 // WindowTreeHostManager::Observer: | 99 // WindowTreeHostManager::Observer: |
| 99 void OnDisplayConfigurationChanging() override; | 100 void OnDisplayConfigurationChanging() override; |
| 100 void OnDisplayConfigurationChanged() override; | 101 void OnDisplayConfigurationChanged() override; |
| 101 | 102 |
| 102 WmLookupAura wm_lookup_; | 103 WmLookupAura wm_lookup_; |
| 103 std::unique_ptr<PointerWatcherAdapter> pointer_watcher_adapter_; | 104 std::unique_ptr<PointerWatcherAdapter> pointer_watcher_adapter_; |
| 104 | 105 |
| 105 bool added_activation_observer_ = false; | 106 bool added_activation_observer_ = false; |
| 106 base::ObserverList<WmActivationObserver> activation_observers_; | 107 base::ObserverList<WmActivationObserver> activation_observers_; |
| 107 | 108 |
| 108 bool added_display_observer_ = false; | 109 bool added_display_observer_ = false; |
| 109 base::ObserverList<WmDisplayObserver> display_observers_; | 110 base::ObserverList<WmDisplayObserver> display_observers_; |
| 110 | 111 |
| 111 DISALLOW_COPY_AND_ASSIGN(WmShellAura); | 112 DISALLOW_COPY_AND_ASSIGN(WmShellAura); |
| 112 }; | 113 }; |
| 113 | 114 |
| 114 } // namespace ash | 115 } // namespace ash |
| 115 | 116 |
| 116 #endif // ASH_AURA_WM_SHELL_AURA_H_ | 117 #endif // ASH_AURA_WM_SHELL_AURA_H_ |
| OLD | NEW |