Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Side by Side Diff: ash/shelf/shelf_window_watcher.h

Issue 294963004: Revert of Add OnDisplayMetricsChanged in DisplayObserver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@update_orientation
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/display/screen_ash.cc ('k') | ash/shelf/shelf_window_watcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ash/display/screen_ash.cc ('k') | ash/shelf/shelf_window_watcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698