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 gfx::Point last_click_position) OVERRIDE; | 32 gfx::Point last_click_position) OVERRIDE; |
33 virtual void SaveWindowPosition() OVERRIDE; | 33 virtual void SaveWindowPosition() OVERRIDE; |
34 virtual void SetGeometryHints() OVERRIDE; | 34 virtual void SetGeometryHints() OVERRIDE; |
35 virtual bool UseCustomFrame() OVERRIDE; | 35 virtual bool UseCustomFrame() OVERRIDE; |
36 | 36 |
37 // Overridden from NativePanel: | 37 // Overridden from NativePanel: |
38 virtual void ShowPanel() OVERRIDE; | 38 virtual void ShowPanel() OVERRIDE; |
39 virtual void ShowPanelInactive() OVERRIDE; | 39 virtual void ShowPanelInactive() OVERRIDE; |
40 virtual gfx::Rect GetPanelBounds() const OVERRIDE; | 40 virtual gfx::Rect GetPanelBounds() const OVERRIDE; |
41 virtual void SetPanelBounds(const gfx::Rect& bounds) OVERRIDE; | 41 virtual void SetPanelBounds(const gfx::Rect& bounds) OVERRIDE; |
42 virtual void MinimizePanel() OVERRIDE; | 42 virtual void OnPanelExpansionStateChanged( |
43 virtual void RestorePanel() OVERRIDE; | 43 Panel::ExpansionState expansion_state) OVERRIDE; |
| 44 virtual bool ShouldBringUpPanelTitleBar(int mouse_x, |
| 45 int mouse_y) const OVERRIDE; |
44 virtual void ClosePanel() OVERRIDE; | 46 virtual void ClosePanel() OVERRIDE; |
45 virtual void ActivatePanel() OVERRIDE; | 47 virtual void ActivatePanel() OVERRIDE; |
46 virtual void DeactivatePanel() OVERRIDE; | 48 virtual void DeactivatePanel() OVERRIDE; |
47 virtual bool IsPanelActive() const OVERRIDE; | 49 virtual bool IsPanelActive() const OVERRIDE; |
48 virtual gfx::NativeWindow GetNativePanelHandle() OVERRIDE; | 50 virtual gfx::NativeWindow GetNativePanelHandle() OVERRIDE; |
49 virtual void UpdatePanelTitleBar() OVERRIDE; | 51 virtual void UpdatePanelTitleBar() OVERRIDE; |
50 virtual void ShowTaskManagerForPanel() OVERRIDE; | 52 virtual void ShowTaskManagerForPanel() OVERRIDE; |
51 virtual void NotifyPanelOnUserChangedTheme() OVERRIDE; | 53 virtual void NotifyPanelOnUserChangedTheme() OVERRIDE; |
52 virtual void FlashPanelFrame() OVERRIDE; | 54 virtual void FlashPanelFrame() OVERRIDE; |
53 virtual void DestroyPanelBrowser() OVERRIDE; | 55 virtual void DestroyPanelBrowser() OVERRIDE; |
54 | 56 |
55 private: | 57 private: |
56 void SetBoundsImpl(); | 58 void SetBoundsImpl(); |
57 | 59 |
58 scoped_ptr<Panel> panel_; | 60 scoped_ptr<Panel> panel_; |
59 gfx::Rect bounds_; | 61 gfx::Rect bounds_; |
60 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowGtk); | 62 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowGtk); |
61 }; | 63 }; |
62 | 64 |
63 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ | 65 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ |
OLD | NEW |