| 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 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "ash/wm/window_resizer.h" | 10 #include "ash/wm/window_resizer.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 static const int kMinOnscreenSize; | 30 static const int kMinOnscreenSize; |
| 31 | 31 |
| 32 // Min height we'll force on screen when dragging the caption. | 32 // Min height we'll force on screen when dragging the caption. |
| 33 // TODO: this should come from a property on the window. | 33 // TODO: this should come from a property on the window. |
| 34 static const int kMinOnscreenHeight; | 34 static const int kMinOnscreenHeight; |
| 35 | 35 |
| 36 virtual ~WorkspaceWindowResizer(); | 36 virtual ~WorkspaceWindowResizer(); |
| 37 | 37 |
| 38 static WorkspaceWindowResizer* Create( | 38 static WorkspaceWindowResizer* Create( |
| 39 aura::Window* window, | 39 aura::Window* window, |
| 40 const gfx::Point& location, | 40 const gfx::Point& location_in_parent, |
| 41 int window_component, | 41 int window_component, |
| 42 const std::vector<aura::Window*>& attached_windows); | 42 const std::vector<aura::Window*>& attached_windows); |
| 43 | 43 |
| 44 // Returns true if the drag will result in changing the window in anyway. | 44 // Returns true if the drag will result in changing the window in anyway. |
| 45 bool is_resizable() const { return details_.is_resizable; } | 45 bool is_resizable() const { return details_.is_resizable; } |
| 46 | 46 |
| 47 const gfx::Point& initial_location_in_parent() const { | 47 const gfx::Point& initial_location_in_parent() const { |
| 48 return details_.initial_location_in_parent; | 48 return details_.initial_location_in_parent; |
| 49 } | 49 } |
| 50 | 50 |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 // the screen. | 167 // the screen. |
| 168 int num_mouse_moves_since_bounds_change_; | 168 int num_mouse_moves_since_bounds_change_; |
| 169 | 169 |
| 170 DISALLOW_COPY_AND_ASSIGN(WorkspaceWindowResizer); | 170 DISALLOW_COPY_AND_ASSIGN(WorkspaceWindowResizer); |
| 171 }; | 171 }; |
| 172 | 172 |
| 173 } // namespace internal | 173 } // namespace internal |
| 174 } // namespace ash | 174 } // namespace ash |
| 175 | 175 |
| 176 #endif // ASH_WM_WORKSPACE_WINDOW_RESIZER_H_ | 176 #endif // ASH_WM_WORKSPACE_WINDOW_RESIZER_H_ |
| OLD | NEW |