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_MULTI_WINDOW_RESIZE_CONTROLLER_H_ | 5 #ifndef ASH_WM_WORKSPACE_MULTI_WINDOW_RESIZE_CONTROLLER_H_ |
6 #define ASH_WM_WORKSPACE_MULTI_WINDOW_RESIZE_CONTROLLER_H_ | 6 #define ASH_WM_WORKSPACE_MULTI_WINDOW_RESIZE_CONTROLLER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.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 "base/timer/timer.h" | 13 #include "base/timer/timer.h" |
14 #include "ui/aura/window_observer.h" | 14 #include "ui/aura/window_observer.h" |
15 #include "ui/gfx/rect.h" | 15 #include "ui/gfx/rect.h" |
16 #include "ui/views/mouse_watcher.h" | 16 #include "ui/views/mouse_watcher.h" |
17 | 17 |
18 namespace aura { | 18 namespace aura { |
19 class Window; | 19 class Window; |
20 } | 20 } |
21 | 21 |
22 namespace views { | 22 namespace views { |
23 class Widget; | 23 class Widget; |
24 } | 24 } |
25 | 25 |
26 namespace ash { | 26 namespace ash { |
27 namespace internal { | |
28 | |
29 class MultiWindowResizeControllerTest; | 27 class MultiWindowResizeControllerTest; |
30 class WorkspaceWindowResizer; | 28 class WorkspaceWindowResizer; |
31 | 29 |
32 // Two directions resizes happen in. | 30 // Two directions resizes happen in. |
33 enum Direction { | 31 enum Direction { |
34 TOP_BOTTOM, | 32 TOP_BOTTOM, |
35 LEFT_RIGHT, | 33 LEFT_RIGHT, |
36 }; | 34 }; |
37 | 35 |
38 // MultiWindowResizeController is responsible for determining and showing a | 36 // MultiWindowResizeController is responsible for determining and showing a |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 gfx::Rect show_bounds_in_screen_; | 171 gfx::Rect show_bounds_in_screen_; |
174 | 172 |
175 // Used to detect whether the mouse is over the windows. While | 173 // Used to detect whether the mouse is over the windows. While |
176 // |resize_widget_| is non-NULL (ie the widget is showing) we ignore calls | 174 // |resize_widget_| is non-NULL (ie the widget is showing) we ignore calls |
177 // to Show(). | 175 // to Show(). |
178 scoped_ptr<views::MouseWatcher> mouse_watcher_; | 176 scoped_ptr<views::MouseWatcher> mouse_watcher_; |
179 | 177 |
180 DISALLOW_COPY_AND_ASSIGN(MultiWindowResizeController); | 178 DISALLOW_COPY_AND_ASSIGN(MultiWindowResizeController); |
181 }; | 179 }; |
182 | 180 |
183 } // namespace internal | |
184 } // namespace ash | 181 } // namespace ash |
185 | 182 |
186 #endif // ASH_WM_WORKSPACE_MULTI_WINDOW_RESIZE_CONTROLLER_H_ | 183 #endif // ASH_WM_WORKSPACE_MULTI_WINDOW_RESIZE_CONTROLLER_H_ |
OLD | NEW |