| 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_WINDOW_H_ | 5 #ifndef ASH_WM_WINDOW_H_ |
| 6 #define ASH_WM_WINDOW_H_ | 6 #define ASH_WM_WINDOW_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 class Size; | 29 class Size; |
| 30 class Transform; | 30 class Transform; |
| 31 } | 31 } |
| 32 | 32 |
| 33 namespace ui { | 33 namespace ui { |
| 34 class Layer; | 34 class Layer; |
| 35 } | 35 } |
| 36 | 36 |
| 37 namespace ash { | 37 namespace ash { |
| 38 | 38 |
| 39 class ImmersiveFullscreenController; | |
| 40 class RootWindowController; | 39 class RootWindowController; |
| 41 class WmTransientWindowObserver; | 40 class WmTransientWindowObserver; |
| 42 enum class WmWindowProperty; | 41 enum class WmWindowProperty; |
| 43 | 42 |
| 44 namespace wm { | 43 namespace wm { |
| 45 class WindowState; | 44 class WindowState; |
| 46 } | 45 } |
| 47 | 46 |
| 48 // WmWindow abstracts away differences between ash running in classic mode | 47 // WmWindow abstracts away differences between ash running in classic mode |
| 49 // and ash running with aura-mus. | 48 // and ash running with aura-mus. |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 void Deactivate(); | 252 void Deactivate(); |
| 254 | 253 |
| 255 void SetFullscreen(bool fullscreen); | 254 void SetFullscreen(bool fullscreen); |
| 256 | 255 |
| 257 void Maximize(); | 256 void Maximize(); |
| 258 void Minimize(); | 257 void Minimize(); |
| 259 void Unminimize(); | 258 void Unminimize(); |
| 260 | 259 |
| 261 std::vector<WmWindow*> GetChildren(); | 260 std::vector<WmWindow*> GetChildren(); |
| 262 | 261 |
| 263 // Installs a resize handler on the window that makes it easier to resize | |
| 264 // the window. See ResizeHandleWindowTargeter for the specifics. | |
| 265 void InstallResizeHandleWindowTargeter( | |
| 266 ImmersiveFullscreenController* immersive_fullscreen_controller); | |
| 267 | |
| 268 // See description in SetBoundsInScreen(). | 262 // See description in SetBoundsInScreen(). |
| 269 void SetBoundsInScreenBehaviorForChildren(BoundsInScreenBehavior behavior); | 263 void SetBoundsInScreenBehaviorForChildren(BoundsInScreenBehavior behavior); |
| 270 | 264 |
| 271 // See description of SnapToPixelBoundaryIfNecessary(). | 265 // See description of SnapToPixelBoundaryIfNecessary(). |
| 272 void SetSnapsChildrenToPhysicalPixelBoundary(); | 266 void SetSnapsChildrenToPhysicalPixelBoundary(); |
| 273 | 267 |
| 274 // If an ancestor has been set to snap children to pixel boundaries, then | 268 // If an ancestor has been set to snap children to pixel boundaries, then |
| 275 // snaps the layer associated with this window to the layer associated with | 269 // snaps the layer associated with this window to the layer associated with |
| 276 // the ancestor. | 270 // the ancestor. |
| 277 void SnapToPixelBoundaryIfNecessary(); | 271 void SnapToPixelBoundaryIfNecessary(); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 292 | 286 |
| 293 bool added_transient_observer_ = false; | 287 bool added_transient_observer_ = false; |
| 294 base::ObserverList<WmTransientWindowObserver> transient_observers_; | 288 base::ObserverList<WmTransientWindowObserver> transient_observers_; |
| 295 | 289 |
| 296 DISALLOW_COPY_AND_ASSIGN(WmWindow); | 290 DISALLOW_COPY_AND_ASSIGN(WmWindow); |
| 297 }; | 291 }; |
| 298 | 292 |
| 299 } // namespace ash | 293 } // namespace ash |
| 300 | 294 |
| 301 #endif // ASH_WM_WINDOW_H_ | 295 #endif // ASH_WM_WINDOW_H_ |
| OLD | NEW |