| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WORKSPACE_WINDOW_RESIZER_H_ | 5 #ifndef ASH_WM_WORKSPACE_WINDOW_RESIZER_H_ |
| 6 #define ASH_WM_WORKSPACE_WINDOW_RESIZER_H_ | 6 #define ASH_WM_WORKSPACE_WINDOW_RESIZER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "ash/wm/window_resizer.h" | 9 #include "ash/wm/window_resizer.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 static void ClearHeightBeforeObscured(aura::Window* window); | 36 static void ClearHeightBeforeObscured(aura::Window* window); |
| 37 static int GetHeightBeforeObscured(aura::Window* window); | 37 static int GetHeightBeforeObscured(aura::Window* window); |
| 38 | 38 |
| 39 // Adjusts the bounds to enforce that windows are vertically contained in the | 39 // Adjusts the bounds to enforce that windows are vertically contained in the |
| 40 // work area. | 40 // work area. |
| 41 void AdjustBounds(gfx::Rect* bounds) const; | 41 void AdjustBounds(gfx::Rect* bounds) const; |
| 42 | 42 |
| 43 // Returns true if the window touches the bottom of the work area. | 43 // Returns true if the window touches the bottom of the work area. |
| 44 bool WindowTouchesBottomOfScreen() const; | 44 bool WindowTouchesBottomOfScreen() const; |
| 45 | 45 |
| 46 // True if the window size (height) should be constrained. |
| 47 const bool constrain_size_; |
| 48 |
| 46 DISALLOW_COPY_AND_ASSIGN(WorkspaceWindowResizer); | 49 DISALLOW_COPY_AND_ASSIGN(WorkspaceWindowResizer); |
| 47 }; | 50 }; |
| 48 | 51 |
| 49 } // namespace internal | 52 } // namespace internal |
| 50 } // namespace ash | 53 } // namespace ash |
| 51 | 54 |
| 52 #endif // ASH_WM_WORKSPACE_WINDOW_RESIZER_H_ | 55 #endif // ASH_WM_WORKSPACE_WINDOW_RESIZER_H_ |
| OLD | NEW |