| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_CHROMEOS_PANEL_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_PANEL_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_PANEL_CONTROLLER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_PANEL_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 | 9 |
| 10 #include "views/controls/button/button.h" | 10 #include "views/controls/button/button.h" |
| 11 | 11 |
| 12 #if defined(TOOLKIT_VIEWS) | 12 #if defined(TOOLKIT_VIEWS) |
| 13 class BrowserView; | 13 class BrowserView; |
| 14 #else | 14 #else |
| 15 class BrowserWindowGtk; | 15 class BrowserWindowGtk; |
| 16 #endif | 16 #endif |
| 17 typedef unsigned long XID; | 17 typedef unsigned long XID; |
| 18 | 18 |
| 19 namespace views { | 19 namespace views { |
| 20 class ImageButton; | 20 class ImageButton; |
| 21 class ImageView; | 21 class ImageView; |
| 22 class Label; | 22 class Label; |
| 23 class MouseEvent; | 23 class MouseEvent; |
| 24 class WidgetGtk; | 24 class WidgetGtk; |
| 25 } | 25 } |
| 26 | 26 |
| 27 namespace chromeos { |
| 28 |
| 27 // Controls interactions with the WM for popups / panels. | 29 // Controls interactions with the WM for popups / panels. |
| 28 class PanelController : public views::ButtonListener { | 30 class PanelController : public views::ButtonListener { |
| 29 public: | 31 public: |
| 30 #if defined(TOOLKIT_VIEWS) | 32 #if defined(TOOLKIT_VIEWS) |
| 31 explicit PanelController(BrowserView* browser_window); | 33 explicit PanelController(BrowserView* browser_window); |
| 32 #else | 34 #else |
| 33 explicit PanelController(BrowserWindowGtk* browser_window); | 35 explicit PanelController(BrowserWindowGtk* browser_window); |
| 34 #endif | 36 #endif |
| 35 virtual ~PanelController() {} | 37 virtual ~PanelController() {} |
| 36 | 38 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 int mouse_down_offset_x_; | 118 int mouse_down_offset_x_; |
| 117 int mouse_down_offset_y_; | 119 int mouse_down_offset_y_; |
| 118 | 120 |
| 119 // Is the titlebar currently being dragged? That is, has the cursor | 121 // Is the titlebar currently being dragged? That is, has the cursor |
| 120 // moved more than kDragThreshold away from its starting position? | 122 // moved more than kDragThreshold away from its starting position? |
| 121 bool dragging_; | 123 bool dragging_; |
| 122 | 124 |
| 123 DISALLOW_COPY_AND_ASSIGN(PanelController); | 125 DISALLOW_COPY_AND_ASSIGN(PanelController); |
| 124 }; | 126 }; |
| 125 | 127 |
| 128 } // namespace chromeos |
| 129 |
| 126 #endif // CHROME_BROWSER_CHROMEOS_PANEL_CONTROLLER_H_ | 130 #endif // CHROME_BROWSER_CHROMEOS_PANEL_CONTROLLER_H_ |
| 127 | 131 |
| OLD | NEW |