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

Side by Side Diff: ash/wm/common/wm_window.h

Issue 1918883002: Makes Panel related classes use ash/wm/common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@phantom_window_controller
Patch Set: feedback Created 4 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/wm/common/wm_overview_mode_observer.h ('k') | ash/wm/common/wm_window_property.h » ('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_WM_COMMON_WM_WINDOW_H_ 5 #ifndef ASH_WM_COMMON_WM_WINDOW_H_
6 #define ASH_WM_COMMON_WM_WINDOW_H_ 6 #define ASH_WM_COMMON_WM_WINDOW_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 virtual gfx::Size GetMaximumSize() const = 0; 85 virtual gfx::Size GetMaximumSize() const = 0;
86 86
87 // Returns the visibility requested by this window. IsVisible() takes into 87 // Returns the visibility requested by this window. IsVisible() takes into
88 // account the visibility of the layer and ancestors, where as this tracks 88 // account the visibility of the layer and ancestors, where as this tracks
89 // whether Show() without a Hide() has been invoked. 89 // whether Show() without a Hide() has been invoked.
90 virtual bool GetTargetVisibility() const = 0; 90 virtual bool GetTargetVisibility() const = 0;
91 91
92 virtual bool IsVisible() const = 0; 92 virtual bool IsVisible() const = 0;
93 93
94 virtual bool GetBoolProperty(WmWindowProperty key) = 0; 94 virtual bool GetBoolProperty(WmWindowProperty key) = 0;
95 virtual int GetIntProperty(WmWindowProperty key) = 0;
95 96
96 WindowState* GetWindowState() { 97 WindowState* GetWindowState() {
97 return const_cast<WindowState*>( 98 return const_cast<WindowState*>(
98 const_cast<const WmWindow*>(this)->GetWindowState()); 99 const_cast<const WmWindow*>(this)->GetWindowState());
99 } 100 }
100 virtual const WindowState* GetWindowState() const = 0; 101 virtual const WindowState* GetWindowState() const = 0;
101 102
102 virtual WmWindow* GetToplevelWindow() = 0; 103 virtual WmWindow* GetToplevelWindow() = 0;
103 104
104 // See aura::client::ParentWindowWithContext() for details of what this does. 105 // See aura::client::ParentWindowWithContext() for details of what this does.
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 virtual void RemoveObserver(WmWindowObserver* observer) = 0; 198 virtual void RemoveObserver(WmWindowObserver* observer) = 0;
198 199
199 protected: 200 protected:
200 virtual ~WmWindow() {} 201 virtual ~WmWindow() {}
201 }; 202 };
202 203
203 } // namespace wm 204 } // namespace wm
204 } // namespace ash 205 } // namespace ash
205 206
206 #endif // ASH_WM_COMMON_WM_WINDOW_H_ 207 #endif // ASH_WM_COMMON_WM_WINDOW_H_
OLDNEW
« no previous file with comments | « ash/wm/common/wm_overview_mode_observer.h ('k') | ash/wm/common/wm_window_property.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698