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 CHROME_BROWSER_UI_PANELS_PANEL_RESIZE_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_RESIZE_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_PANELS_PANEL_RESIZE_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_PANELS_PANEL_RESIZE_CONTROLLER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "chrome/browser/ui/panels/panel_constants.h" | 10 #include "chrome/browser/ui/panels/panel_constants.h" |
11 #include "ui/gfx/point.h" | 11 #include "ui/gfx/geometry/point.h" |
12 #include "ui/gfx/rect.h" | 12 #include "ui/gfx/rect.h" |
13 | 13 |
14 class Panel; | 14 class Panel; |
15 class PanelManager; | 15 class PanelManager; |
16 namespace gfx { | 16 namespace gfx { |
17 class Rect; | 17 class Rect; |
18 } | 18 } |
19 | 19 |
20 // Responsible for handling resize operations initiated for all panels. | 20 // Responsible for handling resize operations initiated for all panels. |
21 class PanelResizeController { | 21 class PanelResizeController { |
(...skipping 28 matching lines...) Expand all Loading... |
50 // previously called. | 50 // previously called. |
51 gfx::Point mouse_location_at_start_; | 51 gfx::Point mouse_location_at_start_; |
52 | 52 |
53 // Bounds to restore the panel to if resize is cancelled. | 53 // Bounds to restore the panel to if resize is cancelled. |
54 gfx::Rect bounds_at_start_; | 54 gfx::Rect bounds_at_start_; |
55 | 55 |
56 DISALLOW_COPY_AND_ASSIGN(PanelResizeController); | 56 DISALLOW_COPY_AND_ASSIGN(PanelResizeController); |
57 }; | 57 }; |
58 | 58 |
59 #endif // CHROME_BROWSER_UI_PANELS_PANEL_RESIZE_CONTROLLER_H_ | 59 #endif // CHROME_BROWSER_UI_PANELS_PANEL_RESIZE_CONTROLLER_H_ |
OLD | NEW |