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

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

Issue 1911833002: Converts DockedWindowLayoutManager to use WmRootWindowControllerObserver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge 2 trunk Created 4 years, 8 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
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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 139
140 virtual void OnWMEvent(const wm::WMEvent* event) = 0; 140 virtual void OnWMEvent(const wm::WMEvent* event) = 0;
141 141
142 virtual bool Contains(const WmWindow* other) const = 0; 142 virtual bool Contains(const WmWindow* other) const = 0;
143 143
144 virtual void SetShowState(ui::WindowShowState show_state) = 0; 144 virtual void SetShowState(ui::WindowShowState show_state) = 0;
145 virtual ui::WindowShowState GetShowState() const = 0; 145 virtual ui::WindowShowState GetShowState() const = 0;
146 146
147 virtual void SetRestoreShowState(ui::WindowShowState show_state) = 0; 147 virtual void SetRestoreShowState(ui::WindowShowState show_state) = 0;
148 148
149 // If |value| is true the window can not be moved to another root, regardless
150 // of the bounds set on it.
151 virtual void SetLockedToRoot(bool value) = 0;
152
149 virtual void SetCapture() = 0; 153 virtual void SetCapture() = 0;
150 virtual bool HasCapture() = 0; 154 virtual bool HasCapture() = 0;
151 virtual void ReleaseCapture() = 0; 155 virtual void ReleaseCapture() = 0;
152 156
153 virtual bool HasRestoreBounds() const = 0; 157 virtual bool HasRestoreBounds() const = 0;
154 158
155 virtual void SetAlwaysOnTop(bool value) = 0; 159 virtual void SetAlwaysOnTop(bool value) = 0;
156 virtual bool IsAlwaysOnTop() const = 0; 160 virtual bool IsAlwaysOnTop() const = 0;
157 161
158 virtual void Hide() = 0; 162 virtual void Hide() = 0;
(...skipping 30 matching lines...) Expand all
189 virtual void RemoveObserver(WmWindowObserver* observer) = 0; 193 virtual void RemoveObserver(WmWindowObserver* observer) = 0;
190 194
191 protected: 195 protected:
192 virtual ~WmWindow() {} 196 virtual ~WmWindow() {}
193 }; 197 };
194 198
195 } // namespace wm 199 } // namespace wm
196 } // namespace ash 200 } // namespace ash
197 201
198 #endif // ASH_WM_COMMON_WM_WINDOW_H_ 202 #endif // ASH_WM_COMMON_WM_WINDOW_H_
OLDNEW
« no previous file with comments | « ash/wm/common/wm_root_window_controller_observer.h ('k') | ash/wm/dock/docked_window_layout_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698