OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SHELF_SHELF_WINDOW_WATCHER_H_ | 5 #ifndef ASH_SHELF_SHELF_WINDOW_WATCHER_H_ |
6 #define ASH_SHELF_SHELF_WINDOW_WATCHER_H_ | 6 #define ASH_SHELF_SHELF_WINDOW_WATCHER_H_ |
7 | 7 |
8 #include "ash/shelf/scoped_observer_with_duplicated_sources.h" | 8 #include "ash/shelf/scoped_observer_with_duplicated_sources.h" |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 108 |
109 // aura::WindowObserver overrides: | 109 // aura::WindowObserver overrides: |
110 virtual void OnWindowAdded(aura::Window* window) OVERRIDE; | 110 virtual void OnWindowAdded(aura::Window* window) OVERRIDE; |
111 virtual void OnWillRemoveWindow(aura::Window* window) OVERRIDE; | 111 virtual void OnWillRemoveWindow(aura::Window* window) OVERRIDE; |
112 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; | 112 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; |
113 virtual void OnWindowPropertyChanged(aura::Window* window, | 113 virtual void OnWindowPropertyChanged(aura::Window* window, |
114 const void* key, | 114 const void* key, |
115 intptr_t old) OVERRIDE; | 115 intptr_t old) OVERRIDE; |
116 | 116 |
117 // gfx::DisplayObserver overrides: | 117 // gfx::DisplayObserver overrides: |
| 118 virtual void OnDisplayBoundsChanged(const gfx::Display& display) OVERRIDE; |
118 virtual void OnDisplayAdded(const gfx::Display& display) OVERRIDE; | 119 virtual void OnDisplayAdded(const gfx::Display& display) OVERRIDE; |
119 virtual void OnDisplayRemoved(const gfx::Display& old_display) OVERRIDE; | 120 virtual void OnDisplayRemoved(const gfx::Display& old_display) OVERRIDE; |
120 virtual void OnDisplayMetricsChanged(const gfx::Display& display, | |
121 uint32_t metrics) OVERRIDE; | |
122 | 121 |
123 // Owned by Shell. | 122 // Owned by Shell. |
124 ShelfModel* model_; | 123 ShelfModel* model_; |
125 ShelfItemDelegateManager* item_delegate_manager_; | 124 ShelfItemDelegateManager* item_delegate_manager_; |
126 | 125 |
127 RootWindowObserver root_window_observer_; | 126 RootWindowObserver root_window_observer_; |
128 | 127 |
129 RemovedWindowObserver removed_window_observer_; | 128 RemovedWindowObserver removed_window_observer_; |
130 | 129 |
131 // Holds all observed windows. | 130 // Holds all observed windows. |
132 ScopedObserver<aura::Window, aura::WindowObserver> observed_windows_; | 131 ScopedObserver<aura::Window, aura::WindowObserver> observed_windows_; |
133 | 132 |
134 // Holds all observed root windows. | 133 // Holds all observed root windows. |
135 ScopedObserver<aura::Window, aura::WindowObserver> observed_root_windows_; | 134 ScopedObserver<aura::Window, aura::WindowObserver> observed_root_windows_; |
136 | 135 |
137 // Holds removed windows that has an item from default container. | 136 // Holds removed windows that has an item from default container. |
138 ScopedObserver<aura::Window, aura::WindowObserver> observed_removed_windows_; | 137 ScopedObserver<aura::Window, aura::WindowObserver> observed_removed_windows_; |
139 | 138 |
140 // Holds all observed activation clients. | 139 // Holds all observed activation clients. |
141 ScopedObserverWithDuplicatedSources<aura::client::ActivationClient, | 140 ScopedObserverWithDuplicatedSources<aura::client::ActivationClient, |
142 aura::client::ActivationChangeObserver> observed_activation_clients_; | 141 aura::client::ActivationChangeObserver> observed_activation_clients_; |
143 | 142 |
144 DISALLOW_COPY_AND_ASSIGN(ShelfWindowWatcher); | 143 DISALLOW_COPY_AND_ASSIGN(ShelfWindowWatcher); |
145 }; | 144 }; |
146 | 145 |
147 } // namespace ash | 146 } // namespace ash |
148 | 147 |
149 #endif // ASH_SHELF_SHELF_WINDOW_WATCHER_H_ | 148 #endif // ASH_SHELF_SHELF_WINDOW_WATCHER_H_ |
OLD | NEW |