| OLD | NEW |
| 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_COMMON_WM_WINDOW_H_ | 5 #ifndef ASH_COMMON_WM_WINDOW_H_ |
| 6 #define ASH_COMMON_WM_WINDOW_H_ | 6 #define ASH_COMMON_WM_WINDOW_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 virtual void SetRestoreBoundsInScreen(const gfx::Rect& bounds) = 0; | 184 virtual void SetRestoreBoundsInScreen(const gfx::Rect& bounds) = 0; |
| 185 virtual gfx::Rect GetRestoreBoundsInScreen() const = 0; | 185 virtual gfx::Rect GetRestoreBoundsInScreen() const = 0; |
| 186 | 186 |
| 187 virtual bool Contains(const WmWindow* other) const = 0; | 187 virtual bool Contains(const WmWindow* other) const = 0; |
| 188 | 188 |
| 189 virtual void SetShowState(ui::WindowShowState show_state) = 0; | 189 virtual void SetShowState(ui::WindowShowState show_state) = 0; |
| 190 virtual ui::WindowShowState GetShowState() const = 0; | 190 virtual ui::WindowShowState GetShowState() const = 0; |
| 191 | 191 |
| 192 virtual void SetRestoreShowState(ui::WindowShowState show_state) = 0; | 192 virtual void SetRestoreShowState(ui::WindowShowState show_state) = 0; |
| 193 | 193 |
| 194 // Sets the restore bounds and show state overrides. These values take |
| 195 // precedence over the restore bounds and restore show state (if set). |
| 196 // If |bounds_override| is empty the values are cleared. |
| 197 virtual void SetRestoreOverrides( |
| 198 const gfx::Rect& bounds_override, |
| 199 ui::WindowShowState window_state_override) = 0; |
| 200 |
| 194 // If |value| is true the window can not be moved to another root, regardless | 201 // If |value| is true the window can not be moved to another root, regardless |
| 195 // of the bounds set on it. | 202 // of the bounds set on it. |
| 196 virtual void SetLockedToRoot(bool value) = 0; | 203 virtual void SetLockedToRoot(bool value) = 0; |
| 197 | 204 |
| 198 virtual void SetCapture() = 0; | 205 virtual void SetCapture() = 0; |
| 199 virtual bool HasCapture() = 0; | 206 virtual bool HasCapture() = 0; |
| 200 virtual void ReleaseCapture() = 0; | 207 virtual void ReleaseCapture() = 0; |
| 201 | 208 |
| 202 virtual bool HasRestoreBounds() const = 0; | 209 virtual bool HasRestoreBounds() const = 0; |
| 203 | 210 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 virtual void AddObserver(WmWindowObserver* observer) = 0; | 274 virtual void AddObserver(WmWindowObserver* observer) = 0; |
| 268 virtual void RemoveObserver(WmWindowObserver* observer) = 0; | 275 virtual void RemoveObserver(WmWindowObserver* observer) = 0; |
| 269 | 276 |
| 270 protected: | 277 protected: |
| 271 virtual ~WmWindow() {} | 278 virtual ~WmWindow() {} |
| 272 }; | 279 }; |
| 273 | 280 |
| 274 } // namespace ash | 281 } // namespace ash |
| 275 | 282 |
| 276 #endif // ASH_COMMON_WM_WINDOW_H_ | 283 #endif // ASH_COMMON_WM_WINDOW_H_ |
| OLD | NEW |