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_PANELS_PANEL_WINDOW_RESIZER_H_ | 5 #ifndef ASH_WM_PANELS_PANEL_WINDOW_RESIZER_H_ |
6 #define ASH_WM_PANELS_PANEL_WINDOW_RESIZER_H_ | 6 #define ASH_WM_PANELS_PANEL_WINDOW_RESIZER_H_ |
7 | 7 |
8 #include "ash/wm/window_resizer.h" | 8 #include "ash/wm/window_resizer.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 class ASH_EXPORT PanelWindowResizer : public WindowResizer { | 21 class ASH_EXPORT PanelWindowResizer : public WindowResizer { |
22 public: | 22 public: |
23 virtual ~PanelWindowResizer(); | 23 virtual ~PanelWindowResizer(); |
24 | 24 |
25 // Creates a new PanelWindowResizer. The caller takes ownership of the | 25 // Creates a new PanelWindowResizer. The caller takes ownership of the |
26 // returned object. The ownership of |next_window_resizer| is taken by the | 26 // returned object. The ownership of |next_window_resizer| is taken by the |
27 // returned object. Returns NULL if not resizable. | 27 // returned object. Returns NULL if not resizable. |
28 static PanelWindowResizer* Create(WindowResizer* next_window_resizer, | 28 static PanelWindowResizer* Create(WindowResizer* next_window_resizer, |
29 aura::Window* window, | 29 aura::Window* window, |
30 const gfx::Point& location, | 30 const gfx::Point& location, |
31 int window_component); | 31 int window_component, |
| 32 aura::client::WindowMoveSource source); |
32 | 33 |
33 // WindowResizer overides: | 34 // WindowResizer overides: |
34 virtual void Drag(const gfx::Point& location, int event_flags) OVERRIDE; | 35 virtual void Drag(const gfx::Point& location, int event_flags) OVERRIDE; |
35 virtual void CompleteDrag(int event_flags) OVERRIDE; | 36 virtual void CompleteDrag(int event_flags) OVERRIDE; |
36 virtual void RevertDrag() OVERRIDE; | 37 virtual void RevertDrag() OVERRIDE; |
37 virtual aura::Window* GetTarget() OVERRIDE; | 38 virtual aura::Window* GetTarget() OVERRIDE; |
38 | 39 |
39 const gfx::Point& GetInitialLocationInParentForTest() const { | 40 const gfx::Point& GetInitialLocationInParentForTest() const { |
40 return details_.initial_location_in_parent; | 41 return details_.initial_location_in_parent; |
41 } | 42 } |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 // If non-NULL the destructor sets this to true. Used to determine if this has | 85 // If non-NULL the destructor sets this to true. Used to determine if this has |
85 // been deleted. | 86 // been deleted. |
86 bool* destroyed_; | 87 bool* destroyed_; |
87 | 88 |
88 DISALLOW_COPY_AND_ASSIGN(PanelWindowResizer); | 89 DISALLOW_COPY_AND_ASSIGN(PanelWindowResizer); |
89 }; | 90 }; |
90 | 91 |
91 } // namespace aura | 92 } // namespace aura |
92 | 93 |
93 #endif // ASH_WM_PANELS_PANEL_WINDOW_RESIZER_H_ | 94 #endif // ASH_WM_PANELS_PANEL_WINDOW_RESIZER_H_ |
OLD | NEW |