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_WINDOW_RESIZER_H_ | 5 #ifndef ASH_WM_WINDOW_RESIZER_H_ |
6 #define ASH_WM_WINDOW_RESIZER_H_ | 6 #define ASH_WM_WINDOW_RESIZER_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/wm/drag_details.h" | 9 #include "ash/wm/drag_details.h" |
10 #include "ash/wm/window_state.h" | 10 #include "ash/wm/window_state.h" |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "ui/gfx/rect.h" | 13 #include "ui/gfx/geometry/rect.h" |
14 #include "ui/wm/public/window_move_client.h" | 14 #include "ui/wm/public/window_move_client.h" |
15 | 15 |
16 namespace aura { | 16 namespace aura { |
17 class Window; | 17 class Window; |
18 } | 18 } |
19 | 19 |
20 namespace ash { | 20 namespace ash { |
21 | 21 |
22 // WindowResizer is used by ToplevelWindowEventFilter to handle dragging, moving | 22 // WindowResizer is used by ToplevelWindowEventFilter to handle dragging, moving |
23 // or resizing a window. All coordinates passed to this are in the parent | 23 // or resizing a window. All coordinates passed to this are in the parent |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 // initialized with NULL if |window| should not be resized nor dragged. | 99 // initialized with NULL if |window| should not be resized nor dragged. |
100 ASH_EXPORT scoped_ptr<WindowResizer> CreateWindowResizer( | 100 ASH_EXPORT scoped_ptr<WindowResizer> CreateWindowResizer( |
101 aura::Window* window, | 101 aura::Window* window, |
102 const gfx::Point& point_in_parent, | 102 const gfx::Point& point_in_parent, |
103 int window_component, | 103 int window_component, |
104 aura::client::WindowMoveSource source); | 104 aura::client::WindowMoveSource source); |
105 | 105 |
106 } // namespace ash | 106 } // namespace ash |
107 | 107 |
108 #endif // ASH_WM_WINDOW_RESIZER_H_ | 108 #endif // ASH_WM_WINDOW_RESIZER_H_ |
OLD | NEW |