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

Side by Side Diff: ash/aura/wm_window_aura.h

Issue 2042913002: Converts MruWindowTracker to work with common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: not equal Created 4 years, 6 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/aura/wm_shell_aura.cc ('k') | ash/aura/wm_window_aura.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 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_WINDOW_AURA_H_ 5 #ifndef ASH_AURA_WM_WINDOW_AURA_H_
6 #define ASH_AURA_WM_WINDOW_AURA_H_ 6 #define ASH_AURA_WM_WINDOW_AURA_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/common/wm_window.h" 9 #include "ash/common/wm_window.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 12 matching lines...) Expand all
23 23
24 // Returns a WmWindow for an aura::Window, creating if necessary. |window| may 24 // Returns a WmWindow for an aura::Window, creating if necessary. |window| may
25 // be null, in which case null is returned. 25 // be null, in which case null is returned.
26 static WmWindow* Get(aura::Window* window) { 26 static WmWindow* Get(aura::Window* window) {
27 return const_cast<WmWindow*>(Get(const_cast<const aura::Window*>(window))); 27 return const_cast<WmWindow*>(Get(const_cast<const aura::Window*>(window)));
28 } 28 }
29 static const WmWindow* Get(const aura::Window* window); 29 static const WmWindow* Get(const aura::Window* window);
30 30
31 static std::vector<WmWindow*> FromAuraWindows( 31 static std::vector<WmWindow*> FromAuraWindows(
32 const std::vector<aura::Window*>& aura_windows); 32 const std::vector<aura::Window*>& aura_windows);
33 static std::vector<aura::Window*> ToAuraWindows(
34 const std::vector<WmWindow*>& windows);
33 35
34 static aura::Window* GetAuraWindow(WmWindow* wm_window) { 36 static aura::Window* GetAuraWindow(WmWindow* wm_window) {
35 return const_cast<aura::Window*>( 37 return const_cast<aura::Window*>(
36 GetAuraWindow(const_cast<const WmWindow*>(wm_window))); 38 GetAuraWindow(const_cast<const WmWindow*>(wm_window)));
37 } 39 }
38 static const aura::Window* GetAuraWindow(const WmWindow* wm_window); 40 static const aura::Window* GetAuraWindow(const WmWindow* wm_window);
39 41
40 aura::Window* aura_window() { return window_; } 42 aura::Window* aura_window() { return window_; }
41 const aura::Window* aura_window() const { return window_; } 43 const aura::Window* aura_window() const { return window_; }
42 44
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 BoundsInScreenBehavior behavior) override; 144 BoundsInScreenBehavior behavior) override;
143 void SetSnapsChildrenToPhysicalPixelBoundary() override; 145 void SetSnapsChildrenToPhysicalPixelBoundary() override;
144 void SnapToPixelBoundaryIfNecessary() override; 146 void SnapToPixelBoundaryIfNecessary() override;
145 void SetChildrenUseExtendedHitRegion() override; 147 void SetChildrenUseExtendedHitRegion() override;
146 void SetDescendantsStayInSameRootWindow(bool value) override; 148 void SetDescendantsStayInSameRootWindow(bool value) override;
147 void AddObserver(WmWindowObserver* observer) override; 149 void AddObserver(WmWindowObserver* observer) override;
148 void RemoveObserver(WmWindowObserver* observer) override; 150 void RemoveObserver(WmWindowObserver* observer) override;
149 151
150 private: 152 private:
151 // aura::WindowObserver: 153 // aura::WindowObserver:
154 void OnWindowHierarchyChanging(const HierarchyChangeParams& params) override;
152 void OnWindowHierarchyChanged(const HierarchyChangeParams& params) override; 155 void OnWindowHierarchyChanged(const HierarchyChangeParams& params) override;
153 void OnWindowStackingChanged(aura::Window* window) override; 156 void OnWindowStackingChanged(aura::Window* window) override;
154 void OnWindowPropertyChanged(aura::Window* window, 157 void OnWindowPropertyChanged(aura::Window* window,
155 const void* key, 158 const void* key,
156 intptr_t old) override; 159 intptr_t old) override;
157 void OnWindowBoundsChanged(aura::Window* window, 160 void OnWindowBoundsChanged(aura::Window* window,
158 const gfx::Rect& old_bounds, 161 const gfx::Rect& old_bounds,
159 const gfx::Rect& new_bounds) override; 162 const gfx::Rect& new_bounds) override;
160 void OnWindowDestroying(aura::Window* window) override; 163 void OnWindowDestroying(aura::Window* window) override;
164 void OnWindowDestroyed(aura::Window* window) override;
161 void OnWindowVisibilityChanging(aura::Window* window, bool visible) override; 165 void OnWindowVisibilityChanging(aura::Window* window, bool visible) override;
162 void OnWindowTitleChanged(aura::Window* window) override; 166 void OnWindowTitleChanged(aura::Window* window) override;
163 167
164 aura::Window* window_; 168 aura::Window* window_;
165 169
166 base::ObserverList<WmWindowObserver> observers_; 170 base::ObserverList<WmWindowObserver> observers_;
167 171
168 DISALLOW_COPY_AND_ASSIGN(WmWindowAura); 172 DISALLOW_COPY_AND_ASSIGN(WmWindowAura);
169 }; 173 };
170 174
171 } // namespace ash 175 } // namespace ash
172 176
173 #endif // ASH_AURA_WM_WINDOW_AURA_H_ 177 #endif // ASH_AURA_WM_WINDOW_AURA_H_
OLDNEW
« no previous file with comments | « ash/aura/wm_shell_aura.cc ('k') | ash/aura/wm_window_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698