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