| 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 14 matching lines...) Expand all Loading... |
| 25 class Rect; | 25 class Rect; |
| 26 class Size; | 26 class Size; |
| 27 class Transform; | 27 class Transform; |
| 28 } | 28 } |
| 29 | 29 |
| 30 namespace ui { | 30 namespace ui { |
| 31 class Layer; | 31 class Layer; |
| 32 } | 32 } |
| 33 | 33 |
| 34 namespace views { | 34 namespace views { |
| 35 class View; |
| 35 class Widget; | 36 class Widget; |
| 36 } | 37 } |
| 37 | 38 |
| 38 namespace ash { | 39 namespace ash { |
| 39 | 40 |
| 40 class WmLayoutManager; | 41 class WmLayoutManager; |
| 41 class WmRootWindowController; | 42 class WmRootWindowController; |
| 42 class WmShell; | 43 class WmShell; |
| 43 class WmWindowObserver; | 44 class WmWindowObserver; |
| 44 enum class WmWindowProperty; | 45 enum class WmWindowProperty; |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 // the ancestor. | 265 // the ancestor. |
| 265 virtual void SnapToPixelBoundaryIfNecessary() = 0; | 266 virtual void SnapToPixelBoundaryIfNecessary() = 0; |
| 266 | 267 |
| 267 // Makes the hit region for children slightly larger for easier resizing. | 268 // Makes the hit region for children slightly larger for easier resizing. |
| 268 virtual void SetChildrenUseExtendedHitRegion() = 0; | 269 virtual void SetChildrenUseExtendedHitRegion() = 0; |
| 269 | 270 |
| 270 // Sets whether descendants of this should not be moved to a different | 271 // Sets whether descendants of this should not be moved to a different |
| 271 // container. This is used by SetBoundsInScreen(). | 272 // container. This is used by SetBoundsInScreen(). |
| 272 virtual void SetDescendantsStayInSameRootWindow(bool value) = 0; | 273 virtual void SetDescendantsStayInSameRootWindow(bool value) = 0; |
| 273 | 274 |
| 275 // Returns a View that renders the contents of this window's layers. |
| 276 virtual std::unique_ptr<views::View> CreateViewWithRecreatedLayers() = 0; |
| 277 |
| 274 virtual void AddObserver(WmWindowObserver* observer) = 0; | 278 virtual void AddObserver(WmWindowObserver* observer) = 0; |
| 275 virtual void RemoveObserver(WmWindowObserver* observer) = 0; | 279 virtual void RemoveObserver(WmWindowObserver* observer) = 0; |
| 276 virtual bool HasObserver(const WmWindowObserver* observer) const = 0; | 280 virtual bool HasObserver(const WmWindowObserver* observer) const = 0; |
| 277 | 281 |
| 278 protected: | 282 protected: |
| 279 virtual ~WmWindow() {} | 283 virtual ~WmWindow() {} |
| 280 }; | 284 }; |
| 281 | 285 |
| 282 } // namespace ash | 286 } // namespace ash |
| 283 | 287 |
| 284 #endif // ASH_COMMON_WM_WINDOW_H_ | 288 #endif // ASH_COMMON_WM_WINDOW_H_ |
| OLD | NEW |