| 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 virtual bool CanResize() const = 0; | 179 virtual bool CanResize() const = 0; |
| 180 virtual bool CanActivate() const = 0; | 180 virtual bool CanActivate() const = 0; |
| 181 | 181 |
| 182 virtual void StackChildAtTop(WmWindow* child) = 0; | 182 virtual void StackChildAtTop(WmWindow* child) = 0; |
| 183 virtual void StackChildAtBottom(WmWindow* child) = 0; | 183 virtual void StackChildAtBottom(WmWindow* child) = 0; |
| 184 virtual void StackChildAbove(WmWindow* child, WmWindow* target) = 0; | 184 virtual void StackChildAbove(WmWindow* child, WmWindow* target) = 0; |
| 185 virtual void StackChildBelow(WmWindow* child, WmWindow* target) = 0; | 185 virtual void StackChildBelow(WmWindow* child, WmWindow* target) = 0; |
| 186 | 186 |
| 187 virtual std::vector<WmWindow*> GetChildren() = 0; | 187 virtual std::vector<WmWindow*> GetChildren() = 0; |
| 188 | 188 |
| 189 // Shows/hides the resize shadow. |component| is the component to show the |
| 190 // shadow for (one of the constants in ui/base/hit_test.h). |
| 191 virtual void ShowResizeShadow(int component) = 0; |
| 192 virtual void HideResizeShadow() = 0; |
| 193 |
| 189 // If an ancestor has been set to snap children to pixel boundaries, then | 194 // If an ancestor has been set to snap children to pixel boundaries, then |
| 190 // snaps the layer associated with this window to the layer associated with | 195 // snaps the layer associated with this window to the layer associated with |
| 191 // the ancestor. | 196 // the ancestor. |
| 192 virtual void SnapToPixelBoundaryIfNecessary() = 0; | 197 virtual void SnapToPixelBoundaryIfNecessary() = 0; |
| 193 | 198 |
| 194 virtual void AddObserver(WmWindowObserver* observer) = 0; | 199 virtual void AddObserver(WmWindowObserver* observer) = 0; |
| 195 virtual void RemoveObserver(WmWindowObserver* observer) = 0; | 200 virtual void RemoveObserver(WmWindowObserver* observer) = 0; |
| 196 | 201 |
| 197 protected: | 202 protected: |
| 198 virtual ~WmWindow() {} | 203 virtual ~WmWindow() {} |
| 199 }; | 204 }; |
| 200 | 205 |
| 201 } // namespace wm | 206 } // namespace wm |
| 202 } // namespace ash | 207 } // namespace ash |
| 203 | 208 |
| 204 #endif // ASH_WM_COMMON_WM_WINDOW_H_ | 209 #endif // ASH_WM_COMMON_WM_WINDOW_H_ |
| OLD | NEW |