| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 const std::vector<aura::Window*>& attached_windows); | 57 const std::vector<aura::Window*>& attached_windows); |
| 58 | 58 |
| 59 // Returns true if the drag will result in changing the window in anyway. | 59 // Returns true if the drag will result in changing the window in anyway. |
| 60 bool is_resizable() const { return details_.is_resizable; } | 60 bool is_resizable() const { return details_.is_resizable; } |
| 61 | 61 |
| 62 const gfx::Point& initial_location_in_parent() const { | 62 const gfx::Point& initial_location_in_parent() const { |
| 63 return details_.initial_location_in_parent; | 63 return details_.initial_location_in_parent; |
| 64 } | 64 } |
| 65 | 65 |
| 66 // Overridden from WindowResizer: | 66 // Overridden from WindowResizer: |
| 67 virtual void Drag(const gfx::Point& location, int event_flags) OVERRIDE; | 67 virtual void Drag(const gfx::Point& location_in_parent, |
| 68 int event_flags) OVERRIDE; |
| 68 virtual void CompleteDrag(int event_flags) OVERRIDE; | 69 virtual void CompleteDrag(int event_flags) OVERRIDE; |
| 69 virtual void RevertDrag() OVERRIDE; | 70 virtual void RevertDrag() OVERRIDE; |
| 70 virtual aura::Window* GetTarget() OVERRIDE; | 71 virtual aura::Window* GetTarget() OVERRIDE; |
| 71 | 72 |
| 72 private: | 73 private: |
| 73 WorkspaceWindowResizer(const Details& details, | 74 WorkspaceWindowResizer(const Details& details, |
| 74 const std::vector<aura::Window*>& attached_windows); | 75 const std::vector<aura::Window*>& attached_windows); |
| 75 | 76 |
| 76 private: | 77 private: |
| 77 FRIEND_TEST_ALL_PREFIXES(WorkspaceWindowResizerTest, PhantomStyle); | 78 FRIEND_TEST_ALL_PREFIXES(WorkspaceWindowResizerTest, PhantomStyle); |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 | 218 |
| 218 MagnetismEdge magnetism_edge_; | 219 MagnetismEdge magnetism_edge_; |
| 219 | 220 |
| 220 DISALLOW_COPY_AND_ASSIGN(WorkspaceWindowResizer); | 221 DISALLOW_COPY_AND_ASSIGN(WorkspaceWindowResizer); |
| 221 }; | 222 }; |
| 222 | 223 |
| 223 } // namespace internal | 224 } // namespace internal |
| 224 } // namespace ash | 225 } // namespace ash |
| 225 | 226 |
| 226 #endif // ASH_WM_WORKSPACE_WINDOW_RESIZER_H_ | 227 #endif // ASH_WM_WORKSPACE_WINDOW_RESIZER_H_ |
| OLD | NEW |