OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_GTK_PANELS_PANEL_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_PANELS_PANEL_GTK_H_ |
6 #define CHROME_BROWSER_UI_GTK_PANELS_PANEL_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_PANELS_PANEL_GTK_H_ |
7 | 7 |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 virtual gfx::Size ContentSizeFromWindowSize( | 76 virtual gfx::Size ContentSizeFromWindowSize( |
77 const gfx::Size& window_size) const OVERRIDE; | 77 const gfx::Size& window_size) const OVERRIDE; |
78 virtual int TitleOnlyHeight() const OVERRIDE; | 78 virtual int TitleOnlyHeight() const OVERRIDE; |
79 virtual bool IsPanelAlwaysOnTop() const OVERRIDE; | 79 virtual bool IsPanelAlwaysOnTop() const OVERRIDE; |
80 virtual void SetPanelAlwaysOnTop(bool on_top) OVERRIDE; | 80 virtual void SetPanelAlwaysOnTop(bool on_top) OVERRIDE; |
81 virtual void EnableResizeByMouse(bool enable) OVERRIDE; | 81 virtual void EnableResizeByMouse(bool enable) OVERRIDE; |
82 virtual void UpdatePanelMinimizeRestoreButtonVisibility() OVERRIDE; | 82 virtual void UpdatePanelMinimizeRestoreButtonVisibility() OVERRIDE; |
83 virtual void SetWindowCornerStyle(panel::CornerStyle corner_style) OVERRIDE; | 83 virtual void SetWindowCornerStyle(panel::CornerStyle corner_style) OVERRIDE; |
84 virtual void MinimizePanelBySystem() OVERRIDE; | 84 virtual void MinimizePanelBySystem() OVERRIDE; |
85 virtual bool IsPanelMinimizedBySystem() const OVERRIDE; | 85 virtual bool IsPanelMinimizedBySystem() const OVERRIDE; |
| 86 virtual void SetPanelHasShadow(bool has_shadow) OVERRIDE; |
86 | 87 |
87 virtual NativePanelTesting* CreateNativePanelTesting() OVERRIDE; | 88 virtual NativePanelTesting* CreateNativePanelTesting() OVERRIDE; |
88 | 89 |
89 // Overridden from ActiveWindowWatcherXObserver. | 90 // Overridden from ActiveWindowWatcherXObserver. |
90 virtual void ActiveWindowChanged(GdkWindow* active_window) OVERRIDE; | 91 virtual void ActiveWindowChanged(GdkWindow* active_window) OVERRIDE; |
91 | 92 |
92 Panel* panel() const { return panel_.get(); } | 93 Panel* panel() const { return panel_.get(); } |
93 PaintState paint_state() const { return paint_state_; } | 94 PaintState paint_state() const { return paint_state_; } |
94 PanelTitlebarGtk* titlebar() const { return titlebar_.get(); } | 95 PanelTitlebarGtk* titlebar() const { return titlebar_.get(); } |
95 | 96 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 // The container for the titlebar. | 207 // The container for the titlebar. |
207 scoped_ptr<PanelTitlebarGtk> titlebar_; | 208 scoped_ptr<PanelTitlebarGtk> titlebar_; |
208 | 209 |
209 // Indicates how the window corner should be rendered, rounded or not. | 210 // Indicates how the window corner should be rendered, rounded or not. |
210 panel::CornerStyle corner_style_; | 211 panel::CornerStyle corner_style_; |
211 | 212 |
212 DISALLOW_COPY_AND_ASSIGN(PanelGtk); | 213 DISALLOW_COPY_AND_ASSIGN(PanelGtk); |
213 }; | 214 }; |
214 | 215 |
215 #endif // CHROME_BROWSER_UI_GTK_PANELS_PANEL_GTK_H_ | 216 #endif // CHROME_BROWSER_UI_GTK_PANELS_PANEL_GTK_H_ |
OLD | NEW |