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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 virtual bool IsPanelActive() const OVERRIDE; | 51 virtual bool IsPanelActive() const OVERRIDE; |
52 virtual gfx::NativeWindow GetNativePanelHandle() OVERRIDE; | 52 virtual gfx::NativeWindow GetNativePanelHandle() OVERRIDE; |
53 virtual void UpdatePanelTitleBar() OVERRIDE; | 53 virtual void UpdatePanelTitleBar() OVERRIDE; |
54 virtual void ShowTaskManagerForPanel() OVERRIDE; | 54 virtual void ShowTaskManagerForPanel() OVERRIDE; |
55 virtual FindBar* CreatePanelFindBar() OVERRIDE; | 55 virtual FindBar* CreatePanelFindBar() OVERRIDE; |
56 virtual void NotifyPanelOnUserChangedTheme() OVERRIDE; | 56 virtual void NotifyPanelOnUserChangedTheme() OVERRIDE; |
57 virtual void DrawAttention() OVERRIDE; | 57 virtual void DrawAttention() OVERRIDE; |
58 virtual bool IsDrawingAttention() const OVERRIDE; | 58 virtual bool IsDrawingAttention() const OVERRIDE; |
59 virtual Browser* GetPanelBrowser() const OVERRIDE; | 59 virtual Browser* GetPanelBrowser() const OVERRIDE; |
60 virtual void DestroyPanelBrowser() OVERRIDE; | 60 virtual void DestroyPanelBrowser() OVERRIDE; |
| 61 virtual gfx::Size GetNonClientAreaExtent() const OVERRIDE; |
| 62 virtual int GetRestoredHeight() const OVERRIDE; |
| 63 virtual void SetRestoredHeight(int height) OVERRIDE; |
61 virtual NativePanelTesting* GetNativePanelTesting() OVERRIDE; | 64 virtual NativePanelTesting* GetNativePanelTesting() OVERRIDE; |
62 | 65 |
63 private: | 66 private: |
64 void SetBoundsImpl(); | 67 void SetBoundsImpl(); |
65 | 68 |
66 // MessageLoop::Observer implementation: | 69 // MessageLoop::Observer implementation: |
67 virtual void WillProcessEvent(GdkEvent* event) OVERRIDE; | 70 virtual void WillProcessEvent(GdkEvent* event) OVERRIDE; |
68 virtual void DidProcessEvent(GdkEvent* event) OVERRIDE; | 71 virtual void DidProcessEvent(GdkEvent* event) OVERRIDE; |
69 | 72 |
70 void CreateDragWidget(); | 73 void CreateDragWidget(); |
(...skipping 42 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 | 116 // a task to end the drag and only run it if GTK+ didn't send us the |
114 // drag-failed event. | 117 // drag-failed event. |
115 ScopedRunnableMethodFactory<PanelBrowserWindowGtk> drag_end_factory_; | 118 ScopedRunnableMethodFactory<PanelBrowserWindowGtk> drag_end_factory_; |
116 | 119 |
117 scoped_ptr<Panel> panel_; | 120 scoped_ptr<Panel> panel_; |
118 gfx::Rect bounds_; | 121 gfx::Rect bounds_; |
119 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowGtk); | 122 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowGtk); |
120 }; | 123 }; |
121 | 124 |
122 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ | 125 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ |
OLD | NEW |