| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 CreateScopedDisableInternalMouseAndKeyboard() override; | 57 CreateScopedDisableInternalMouseAndKeyboard() override; |
| 58 void OnOverviewModeStarting() override; | 58 void OnOverviewModeStarting() override; |
| 59 void OnOverviewModeEnded() override; | 59 void OnOverviewModeEnded() override; |
| 60 SessionStateDelegate* GetSessionStateDelegate() override; | 60 SessionStateDelegate* GetSessionStateDelegate() override; |
| 61 void AddActivationObserver(WmActivationObserver* observer) override; | 61 void AddActivationObserver(WmActivationObserver* observer) override; |
| 62 void RemoveActivationObserver(WmActivationObserver* observer) override; | 62 void RemoveActivationObserver(WmActivationObserver* observer) override; |
| 63 void AddDisplayObserver(WmDisplayObserver* observer) override; | 63 void AddDisplayObserver(WmDisplayObserver* observer) override; |
| 64 void RemoveDisplayObserver(WmDisplayObserver* observer) override; | 64 void RemoveDisplayObserver(WmDisplayObserver* observer) override; |
| 65 void AddPointerWatcher(views::PointerWatcher* watcher) override; | 65 void AddPointerWatcher(views::PointerWatcher* watcher) override; |
| 66 void RemovePointerWatcher(views::PointerWatcher* watcher) override; | 66 void RemovePointerWatcher(views::PointerWatcher* watcher) override; |
| 67 bool IsTouchDown() override; |
| 67 #if defined(OS_CHROMEOS) | 68 #if defined(OS_CHROMEOS) |
| 68 void ToggleIgnoreExternalKeyboard() override; | 69 void ToggleIgnoreExternalKeyboard() override; |
| 69 #endif | 70 #endif |
| 70 | 71 |
| 71 private: | 72 private: |
| 72 // aura::client::ActivationChangeObserver: | 73 // aura::client::ActivationChangeObserver: |
| 73 void OnWindowActivated(ActivationReason reason, | 74 void OnWindowActivated(ActivationReason reason, |
| 74 aura::Window* gained_active, | 75 aura::Window* gained_active, |
| 75 aura::Window* lost_active) override; | 76 aura::Window* lost_active) override; |
| 76 void OnAttemptToReactivateWindow(aura::Window* request_active, | 77 void OnAttemptToReactivateWindow(aura::Window* request_active, |
| 77 aura::Window* actual_active) override; | 78 aura::Window* actual_active) override; |
| 78 | 79 |
| 79 // WindowTreeHostManager::Observer: | 80 // WindowTreeHostManager::Observer: |
| 80 void OnDisplayConfigurationChanging() override; | 81 void OnDisplayConfigurationChanging() override; |
| 81 void OnDisplayConfigurationChanged() override; | 82 void OnDisplayConfigurationChanged() override; |
| 82 | 83 |
| 83 WmLookupAura wm_lookup_; | 84 WmLookupAura wm_lookup_; |
| 84 bool added_activation_observer_ = false; | 85 bool added_activation_observer_ = false; |
| 85 base::ObserverList<WmActivationObserver> activation_observers_; | 86 base::ObserverList<WmActivationObserver> activation_observers_; |
| 86 | 87 |
| 87 bool added_display_observer_ = false; | 88 bool added_display_observer_ = false; |
| 88 base::ObserverList<WmDisplayObserver> display_observers_; | 89 base::ObserverList<WmDisplayObserver> display_observers_; |
| 89 | 90 |
| 90 DISALLOW_COPY_AND_ASSIGN(WmShellAura); | 91 DISALLOW_COPY_AND_ASSIGN(WmShellAura); |
| 91 }; | 92 }; |
| 92 | 93 |
| 93 } // namespace ash | 94 } // namespace ash |
| 94 | 95 |
| 95 #endif // ASH_AURA_WM_SHELL_AURA_H_ | 96 #endif // ASH_AURA_WM_SHELL_AURA_H_ |
| OLD | NEW |