| 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 25 matching lines...) Expand all Loading... |
| 36 class View; | 36 class View; |
| 37 class Widget; | 37 class Widget; |
| 38 } | 38 } |
| 39 | 39 |
| 40 namespace ash { | 40 namespace ash { |
| 41 | 41 |
| 42 struct ShelfItemDetails; | 42 struct ShelfItemDetails; |
| 43 class WmLayoutManager; | 43 class WmLayoutManager; |
| 44 class WmRootWindowController; | 44 class WmRootWindowController; |
| 45 class WmShell; | 45 class WmShell; |
| 46 class WmImmersiveFullscreenController; |
| 46 class WmTransientWindowObserver; | 47 class WmTransientWindowObserver; |
| 47 class WmWindowObserver; | 48 class WmWindowObserver; |
| 48 enum class WmWindowProperty; | 49 enum class WmWindowProperty; |
| 49 | 50 |
| 50 namespace wm { | 51 namespace wm { |
| 51 class WindowState; | 52 class WindowState; |
| 52 } | 53 } |
| 53 | 54 |
| 54 // This class exists as a porting layer to allow ash/wm to work with | 55 // This class exists as a porting layer to allow ash/wm to work with |
| 55 // aura::Window or ui::Window. See aura::Window for details on the functions. | 56 // aura::Window or ui::Window. See aura::Window for details on the functions. |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 virtual void StackChildAbove(WmWindow* child, WmWindow* target) = 0; | 263 virtual void StackChildAbove(WmWindow* child, WmWindow* target) = 0; |
| 263 virtual void StackChildBelow(WmWindow* child, WmWindow* target) = 0; | 264 virtual void StackChildBelow(WmWindow* child, WmWindow* target) = 0; |
| 264 | 265 |
| 265 virtual Windows GetChildren() = 0; | 266 virtual Windows GetChildren() = 0; |
| 266 | 267 |
| 267 // Shows/hides the resize shadow. |component| is the component to show the | 268 // Shows/hides the resize shadow. |component| is the component to show the |
| 268 // shadow for (one of the constants in ui/base/hit_test.h). | 269 // shadow for (one of the constants in ui/base/hit_test.h). |
| 269 virtual void ShowResizeShadow(int component) = 0; | 270 virtual void ShowResizeShadow(int component) = 0; |
| 270 virtual void HideResizeShadow() = 0; | 271 virtual void HideResizeShadow() = 0; |
| 271 | 272 |
| 273 // Installs a resize handler on the window that makes it easier to resize |
| 274 // the window. See ResizeHandleWindowTargeter for the specifics. |
| 275 virtual void InstallResizeHandleWindowTargeter( |
| 276 WmImmersiveFullscreenController* immersive_fullscreen_controller) = 0; |
| 277 |
| 272 // See description in SetBoundsInScreen(). | 278 // See description in SetBoundsInScreen(). |
| 273 virtual void SetBoundsInScreenBehaviorForChildren(BoundsInScreenBehavior) = 0; | 279 virtual void SetBoundsInScreenBehaviorForChildren(BoundsInScreenBehavior) = 0; |
| 274 | 280 |
| 275 // See description of SnapToPixelBoundaryIfNecessary(). | 281 // See description of SnapToPixelBoundaryIfNecessary(). |
| 276 virtual void SetSnapsChildrenToPhysicalPixelBoundary() = 0; | 282 virtual void SetSnapsChildrenToPhysicalPixelBoundary() = 0; |
| 277 | 283 |
| 278 // If an ancestor has been set to snap children to pixel boundaries, then | 284 // If an ancestor has been set to snap children to pixel boundaries, then |
| 279 // snaps the layer associated with this window to the layer associated with | 285 // snaps the layer associated with this window to the layer associated with |
| 280 // the ancestor. | 286 // the ancestor. |
| 281 virtual void SnapToPixelBoundaryIfNecessary() = 0; | 287 virtual void SnapToPixelBoundaryIfNecessary() = 0; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 306 virtual void AddLimitedPreTargetHandler(ui::EventHandler* handler) = 0; | 312 virtual void AddLimitedPreTargetHandler(ui::EventHandler* handler) = 0; |
| 307 virtual void RemoveLimitedPreTargetHandler(ui::EventHandler* handler) = 0; | 313 virtual void RemoveLimitedPreTargetHandler(ui::EventHandler* handler) = 0; |
| 308 | 314 |
| 309 protected: | 315 protected: |
| 310 virtual ~WmWindow() {} | 316 virtual ~WmWindow() {} |
| 311 }; | 317 }; |
| 312 | 318 |
| 313 } // namespace ash | 319 } // namespace ash |
| 314 | 320 |
| 315 #endif // ASH_COMMON_WM_WINDOW_H_ | 321 #endif // ASH_COMMON_WM_WINDOW_H_ |
| OLD | NEW |