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

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

Issue 1954523002: Refactors StackingController::GetDefaultParent to ash/wm/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update gyp 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_shell_window_ids.h ('k') | ash/wm/stacking_controller.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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 virtual gfx::Size GetMinimumSize() const = 0; 80 virtual gfx::Size GetMinimumSize() const = 0;
81 virtual gfx::Size GetMaximumSize() const = 0; 81 virtual gfx::Size GetMaximumSize() const = 0;
82 82
83 // Returns the visibility requested by this window. IsVisible() takes into 83 // Returns the visibility requested by this window. IsVisible() takes into
84 // account the visibility of the layer and ancestors, where as this tracks 84 // account the visibility of the layer and ancestors, where as this tracks
85 // whether Show() without a Hide() has been invoked. 85 // whether Show() without a Hide() has been invoked.
86 virtual bool GetTargetVisibility() const = 0; 86 virtual bool GetTargetVisibility() const = 0;
87 87
88 virtual bool IsVisible() const = 0; 88 virtual bool IsVisible() const = 0;
89 89
90 virtual bool IsSystemModal() const = 0;
91
90 virtual bool GetBoolProperty(WmWindowProperty key) = 0; 92 virtual bool GetBoolProperty(WmWindowProperty key) = 0;
91 virtual int GetIntProperty(WmWindowProperty key) = 0; 93 virtual int GetIntProperty(WmWindowProperty key) = 0;
92 94
93 WindowState* GetWindowState() { 95 WindowState* GetWindowState() {
94 return const_cast<WindowState*>( 96 return const_cast<WindowState*>(
95 const_cast<const WmWindow*>(this)->GetWindowState()); 97 const_cast<const WmWindow*>(this)->GetWindowState());
96 } 98 }
97 virtual const WindowState* GetWindowState() const = 0; 99 virtual const WindowState* GetWindowState() const = 0;
98 100
99 virtual WmWindow* GetToplevelWindow() = 0; 101 virtual WmWindow* GetToplevelWindow() = 0;
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 virtual void RemoveObserver(WmWindowObserver* observer) = 0; 196 virtual void RemoveObserver(WmWindowObserver* observer) = 0;
195 197
196 protected: 198 protected:
197 virtual ~WmWindow() {} 199 virtual ~WmWindow() {}
198 }; 200 };
199 201
200 } // namespace wm 202 } // namespace wm
201 } // namespace ash 203 } // namespace ash
202 204
203 #endif // ASH_WM_COMMON_WM_WINDOW_H_ 205 #endif // ASH_WM_COMMON_WM_WINDOW_H_
OLDNEW
« no previous file with comments | « ash/wm/common/wm_shell_window_ids.h ('k') | ash/wm/stacking_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698