Chromium Code Reviews| 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 11 matching lines...) Expand all Loading... | |
| 22 | 22 |
| 23 // BrowserWindowGtk overrides | 23 // BrowserWindowGtk overrides |
| 24 virtual void Init() OVERRIDE; | 24 virtual void Init() OVERRIDE; |
| 25 | 25 |
| 26 // BrowserWindow overrides | 26 // BrowserWindow overrides |
| 27 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 27 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
| 28 | 28 |
| 29 protected: | 29 protected: |
| 30 // BrowserWindowGtk overrides | 30 // BrowserWindowGtk overrides |
| 31 virtual bool GetWindowEdge(int x, int y, GdkWindowEdge* edge) OVERRIDE; | 31 virtual bool GetWindowEdge(int x, int y, GdkWindowEdge* edge) OVERRIDE; |
| 32 virtual bool HandleTitleBarLeftMousePress( | 32 virtual bool HandleTitlebarLeftMousePress( |
|
jianli
2011/08/12 21:34:51
ditto.
prasadt
2011/08/12 21:59:30
Done.
| |
| 33 GdkEventButton* event, | 33 GdkEventButton* event, |
| 34 guint32 last_click_time, | 34 guint32 last_click_time, |
| 35 gfx::Point last_click_position) OVERRIDE; | 35 gfx::Point last_click_position) OVERRIDE; |
| 36 virtual void SaveWindowPosition() OVERRIDE; | 36 virtual void SaveWindowPosition() OVERRIDE; |
| 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; |
| 58 virtual void DrawAttention() OVERRIDE; | 58 virtual void DrawAttention() OVERRIDE; |
| 59 virtual bool IsDrawingAttention() const OVERRIDE; | 59 virtual bool IsDrawingAttention() const OVERRIDE; |
| 60 virtual Browser* GetPanelBrowser() const OVERRIDE; | 60 virtual Browser* GetPanelBrowser() const OVERRIDE; |
| 61 virtual void DestroyPanelBrowser() OVERRIDE; | 61 virtual void DestroyPanelBrowser() OVERRIDE; |
| 62 | 62 |
| 63 private: | 63 private: |
| 64 void SetBoundsImpl(); | 64 void SetBoundsImpl(); |
| (...skipping 48 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 |