| 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_WM_AURA_WM_GLOBALS_AURA_H_ | 5 #ifndef ASH_WM_AURA_WM_GLOBALS_AURA_H_ |
| 6 #define ASH_WM_AURA_WM_GLOBALS_AURA_H_ | 6 #define ASH_WM_AURA_WM_GLOBALS_AURA_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| 11 #include "ash/display/window_tree_host_manager.h" | 11 #include "ash/display/window_tree_host_manager.h" |
| 12 #include "ash/shell_observer.h" | 12 #include "ash/shell_observer.h" |
| 13 #include "ash/wm/aura/wm_lookup_aura.h" |
| 13 #include "ash/wm/common/wm_globals.h" | 14 #include "ash/wm/common/wm_globals.h" |
| 14 #include "base/macros.h" | 15 #include "base/macros.h" |
| 15 #include "base/observer_list.h" | 16 #include "base/observer_list.h" |
| 16 #include "ui/wm/public/activation_change_observer.h" | 17 #include "ui/wm/public/activation_change_observer.h" |
| 17 | 18 |
| 18 namespace ash { | 19 namespace ash { |
| 19 namespace wm { | 20 namespace wm { |
| 20 | 21 |
| 21 class ASH_EXPORT WmGlobalsAura : public WmGlobals, | 22 class ASH_EXPORT WmGlobalsAura : public WmGlobals, |
| 22 public aura::client::ActivationChangeObserver, | 23 public aura::client::ActivationChangeObserver, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 void OnWindowActivated(ActivationReason reason, | 58 void OnWindowActivated(ActivationReason reason, |
| 58 aura::Window* gained_active, | 59 aura::Window* gained_active, |
| 59 aura::Window* lost_active) override; | 60 aura::Window* lost_active) override; |
| 60 | 61 |
| 61 // WindowTreeHostManager::Observer: | 62 // WindowTreeHostManager::Observer: |
| 62 void OnDisplayConfigurationChanged() override; | 63 void OnDisplayConfigurationChanged() override; |
| 63 | 64 |
| 64 // ShellObserver: | 65 // ShellObserver: |
| 65 void OnOverviewModeEnded() override; | 66 void OnOverviewModeEnded() override; |
| 66 | 67 |
| 68 WmLookupAura wm_lookup_; |
| 67 bool added_activation_observer_ = false; | 69 bool added_activation_observer_ = false; |
| 68 base::ObserverList<WmActivationObserver> activation_observers_; | 70 base::ObserverList<WmActivationObserver> activation_observers_; |
| 69 | 71 |
| 70 bool added_display_observer_ = false; | 72 bool added_display_observer_ = false; |
| 71 base::ObserverList<WmDisplayObserver> display_observers_; | 73 base::ObserverList<WmDisplayObserver> display_observers_; |
| 72 | 74 |
| 73 base::ObserverList<WmOverviewModeObserver> overview_mode_observers_; | 75 base::ObserverList<WmOverviewModeObserver> overview_mode_observers_; |
| 74 | 76 |
| 75 DISALLOW_COPY_AND_ASSIGN(WmGlobalsAura); | 77 DISALLOW_COPY_AND_ASSIGN(WmGlobalsAura); |
| 76 }; | 78 }; |
| 77 | 79 |
| 78 } // namespace wm | 80 } // namespace wm |
| 79 } // namespace ash | 81 } // namespace ash |
| 80 | 82 |
| 81 #endif // ASH_WM_AURA_WM_GLOBALS_AURA_H_ | 83 #endif // ASH_WM_AURA_WM_GLOBALS_AURA_H_ |
| OLD | NEW |