OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BROWSER_WINDOW_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ |
6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ | 6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ |
7 | 7 |
8 #include "chrome/browser/ui/gtk/browser_window_gtk.h" | 8 #include "chrome/browser/ui/gtk/browser_window_gtk.h" |
9 #include "chrome/browser/ui/panels/native_panel.h" | 9 #include "chrome/browser/ui/panels/native_panel.h" |
10 | 10 |
(...skipping 26 matching lines...) Expand all Loading... |
37 virtual void SetGeometryHints() OVERRIDE; | 37 virtual void SetGeometryHints() OVERRIDE; |
38 virtual bool UseCustomFrame() OVERRIDE; | 38 virtual bool UseCustomFrame() OVERRIDE; |
39 | 39 |
40 // Overridden from NativePanel: | 40 // Overridden from NativePanel: |
41 virtual void ShowPanel() OVERRIDE; | 41 virtual void ShowPanel() OVERRIDE; |
42 virtual void ShowPanelInactive() OVERRIDE; | 42 virtual void ShowPanelInactive() OVERRIDE; |
43 virtual gfx::Rect GetPanelBounds() const OVERRIDE; | 43 virtual gfx::Rect GetPanelBounds() const OVERRIDE; |
44 virtual void SetPanelBounds(const gfx::Rect& bounds) OVERRIDE; | 44 virtual void SetPanelBounds(const gfx::Rect& bounds) OVERRIDE; |
45 virtual void OnPanelExpansionStateChanged( | 45 virtual void OnPanelExpansionStateChanged( |
46 Panel::ExpansionState expansion_state) OVERRIDE; | 46 Panel::ExpansionState expansion_state) OVERRIDE; |
47 virtual bool ShouldBringUpPanelTitleBar(int mouse_x, | 47 virtual bool ShouldBringUpPanelTitlebar(int mouse_x, |
48 int mouse_y) const OVERRIDE; | 48 int mouse_y) const OVERRIDE; |
49 virtual void ClosePanel() OVERRIDE; | 49 virtual void ClosePanel() OVERRIDE; |
50 virtual void ActivatePanel() OVERRIDE; | 50 virtual void ActivatePanel() OVERRIDE; |
51 virtual void DeactivatePanel() OVERRIDE; | 51 virtual void DeactivatePanel() OVERRIDE; |
52 virtual bool IsPanelActive() const OVERRIDE; | 52 virtual bool IsPanelActive() const OVERRIDE; |
53 virtual gfx::NativeWindow GetNativePanelHandle() OVERRIDE; | 53 virtual gfx::NativeWindow GetNativePanelHandle() OVERRIDE; |
54 virtual void UpdatePanelTitleBar() OVERRIDE; | 54 virtual void UpdatePanelTitleBar() OVERRIDE; |
55 virtual void ShowTaskManagerForPanel() OVERRIDE; | 55 virtual void ShowTaskManagerForPanel() OVERRIDE; |
56 virtual FindBar* CreatePanelFindBar() OVERRIDE; | 56 virtual FindBar* CreatePanelFindBar() OVERRIDE; |
57 virtual void NotifyPanelOnUserChangedTheme() OVERRIDE; | 57 virtual void NotifyPanelOnUserChangedTheme() OVERRIDE; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 // a task to end the drag and only run it if GTK+ didn't send us the | 113 // a task to end the drag and only run it if GTK+ didn't send us the |
114 // drag-failed event. | 114 // drag-failed event. |
115 ScopedRunnableMethodFactory<PanelBrowserWindowGtk> drag_end_factory_; | 115 ScopedRunnableMethodFactory<PanelBrowserWindowGtk> drag_end_factory_; |
116 | 116 |
117 scoped_ptr<Panel> panel_; | 117 scoped_ptr<Panel> panel_; |
118 gfx::Rect bounds_; | 118 gfx::Rect bounds_; |
119 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowGtk); | 119 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowGtk); |
120 }; | 120 }; |
121 | 121 |
122 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ | 122 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ |
OLD | NEW |