| 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_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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 virtual void SetBoundsInScreen(const gfx::Rect& bounds_in_screen, | 131 virtual void SetBoundsInScreen(const gfx::Rect& bounds_in_screen, |
| 132 const display::Display& dst_display) = 0; | 132 const display::Display& dst_display) = 0; |
| 133 virtual gfx::Rect GetBoundsInScreen() const = 0; | 133 virtual gfx::Rect GetBoundsInScreen() const = 0; |
| 134 virtual const gfx::Rect& GetBounds() const = 0; | 134 virtual const gfx::Rect& GetBounds() const = 0; |
| 135 virtual gfx::Rect GetTargetBounds() = 0; | 135 virtual gfx::Rect GetTargetBounds() = 0; |
| 136 | 136 |
| 137 virtual void ClearRestoreBounds() = 0; | 137 virtual void ClearRestoreBounds() = 0; |
| 138 virtual void SetRestoreBoundsInScreen(const gfx::Rect& bounds) = 0; | 138 virtual void SetRestoreBoundsInScreen(const gfx::Rect& bounds) = 0; |
| 139 virtual gfx::Rect GetRestoreBoundsInScreen() const = 0; | 139 virtual gfx::Rect GetRestoreBoundsInScreen() const = 0; |
| 140 | 140 |
| 141 virtual void OnWMEvent(const wm::WMEvent* event) = 0; | |
| 142 | |
| 143 virtual bool Contains(const WmWindow* other) const = 0; | 141 virtual bool Contains(const WmWindow* other) const = 0; |
| 144 | 142 |
| 145 virtual void SetShowState(ui::WindowShowState show_state) = 0; | 143 virtual void SetShowState(ui::WindowShowState show_state) = 0; |
| 146 virtual ui::WindowShowState GetShowState() const = 0; | 144 virtual ui::WindowShowState GetShowState() const = 0; |
| 147 | 145 |
| 148 virtual void SetRestoreShowState(ui::WindowShowState show_state) = 0; | 146 virtual void SetRestoreShowState(ui::WindowShowState show_state) = 0; |
| 149 | 147 |
| 150 // If |value| is true the window can not be moved to another root, regardless | 148 // If |value| is true the window can not be moved to another root, regardless |
| 151 // of the bounds set on it. | 149 // of the bounds set on it. |
| 152 virtual void SetLockedToRoot(bool value) = 0; | 150 virtual void SetLockedToRoot(bool value) = 0; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 virtual void RemoveObserver(WmWindowObserver* observer) = 0; | 194 virtual void RemoveObserver(WmWindowObserver* observer) = 0; |
| 197 | 195 |
| 198 protected: | 196 protected: |
| 199 virtual ~WmWindow() {} | 197 virtual ~WmWindow() {} |
| 200 }; | 198 }; |
| 201 | 199 |
| 202 } // namespace wm | 200 } // namespace wm |
| 203 } // namespace ash | 201 } // namespace ash |
| 204 | 202 |
| 205 #endif // ASH_WM_COMMON_WM_WINDOW_H_ | 203 #endif // ASH_WM_COMMON_WM_WINDOW_H_ |
| OLD | NEW |