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 21 matching lines...) Expand all Loading... |
32 GdkEventButton* event, | 32 GdkEventButton* event, |
33 guint32 last_click_time, | 33 guint32 last_click_time, |
34 gfx::Point last_click_position) OVERRIDE; | 34 gfx::Point last_click_position) OVERRIDE; |
35 virtual void SaveWindowPosition() OVERRIDE; | 35 virtual void SaveWindowPosition() OVERRIDE; |
36 virtual void SetGeometryHints() OVERRIDE; | 36 virtual void SetGeometryHints() OVERRIDE; |
37 virtual bool UseCustomFrame() OVERRIDE; | 37 virtual bool UseCustomFrame() OVERRIDE; |
38 | 38 |
39 // Overridden from NativePanel: | 39 // Overridden from NativePanel: |
40 virtual void ShowPanel() OVERRIDE; | 40 virtual void ShowPanel() OVERRIDE; |
41 virtual void ShowPanelInactive() OVERRIDE; | 41 virtual void ShowPanelInactive() OVERRIDE; |
| 42 virtual gfx::Rect GetPanelRestoredBounds() const OVERRIDE; |
42 virtual gfx::Rect GetPanelBounds() const OVERRIDE; | 43 virtual gfx::Rect GetPanelBounds() const OVERRIDE; |
| 44 virtual void SetPanelRestoredBounds(const gfx::Rect& bounds) OVERRIDE; |
43 virtual void SetPanelBounds(const gfx::Rect& bounds) OVERRIDE; | 45 virtual void SetPanelBounds(const gfx::Rect& bounds) OVERRIDE; |
44 virtual void OnPanelExpansionStateChanged( | 46 virtual void OnPanelExpansionStateChanged( |
45 Panel::ExpansionState expansion_state) OVERRIDE; | 47 Panel::ExpansionState expansion_state) OVERRIDE; |
46 virtual bool ShouldBringUpPanelTitleBar(int mouse_x, | 48 virtual bool ShouldBringUpPanelTitleBar(int mouse_x, |
47 int mouse_y) const OVERRIDE; | 49 int mouse_y) const OVERRIDE; |
48 virtual void ClosePanel() OVERRIDE; | 50 virtual void ClosePanel() OVERRIDE; |
49 virtual void ActivatePanel() OVERRIDE; | 51 virtual void ActivatePanel() OVERRIDE; |
50 virtual void DeactivatePanel() OVERRIDE; | 52 virtual void DeactivatePanel() OVERRIDE; |
51 virtual bool IsPanelActive() const OVERRIDE; | 53 virtual bool IsPanelActive() const OVERRIDE; |
52 virtual gfx::NativeWindow GetNativePanelHandle() OVERRIDE; | 54 virtual gfx::NativeWindow GetNativePanelHandle() OVERRIDE; |
53 virtual void UpdatePanelTitleBar() OVERRIDE; | 55 virtual void UpdatePanelTitleBar() OVERRIDE; |
54 virtual void ShowTaskManagerForPanel() OVERRIDE; | 56 virtual void ShowTaskManagerForPanel() OVERRIDE; |
55 virtual void NotifyPanelOnUserChangedTheme() OVERRIDE; | 57 virtual void NotifyPanelOnUserChangedTheme() OVERRIDE; |
56 virtual void DrawAttention() OVERRIDE; | 58 virtual void DrawAttention() OVERRIDE; |
57 virtual bool IsDrawingAttention() const OVERRIDE; | 59 virtual bool IsDrawingAttention() const OVERRIDE; |
58 virtual Browser* GetPanelBrowser() const OVERRIDE; | 60 virtual Browser* GetPanelBrowser() const OVERRIDE; |
59 virtual void DestroyPanelBrowser() OVERRIDE; | 61 virtual void DestroyPanelBrowser() OVERRIDE; |
| 62 virtual gfx::Size GetNonClientAreaSize() const OVERRIDE; |
60 virtual NativePanelTesting* GetNativePanelTesting() OVERRIDE; | 63 virtual NativePanelTesting* GetNativePanelTesting() OVERRIDE; |
61 | 64 |
62 private: | 65 private: |
63 void SetBoundsImpl(); | 66 void SetBoundsImpl(); |
64 | 67 |
65 // MessageLoop::Observer implementation: | 68 // MessageLoop::Observer implementation: |
66 virtual void WillProcessEvent(GdkEvent* event) OVERRIDE; | 69 virtual void WillProcessEvent(GdkEvent* event) OVERRIDE; |
67 virtual void DidProcessEvent(GdkEvent* event) OVERRIDE; | 70 virtual void DidProcessEvent(GdkEvent* event) OVERRIDE; |
68 | 71 |
69 void CreateDragWidget(); | 72 void CreateDragWidget(); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 // a task to end the drag and only run it if GTK+ didn't send us the | 115 // a task to end the drag and only run it if GTK+ didn't send us the |
113 // drag-failed event. | 116 // drag-failed event. |
114 ScopedRunnableMethodFactory<PanelBrowserWindowGtk> drag_end_factory_; | 117 ScopedRunnableMethodFactory<PanelBrowserWindowGtk> drag_end_factory_; |
115 | 118 |
116 scoped_ptr<Panel> panel_; | 119 scoped_ptr<Panel> panel_; |
117 gfx::Rect bounds_; | 120 gfx::Rect bounds_; |
118 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowGtk); | 121 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowGtk); |
119 }; | 122 }; |
120 | 123 |
121 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ | 124 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ |
OLD | NEW |