| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 // These sizes are in screen coordinates. | 73 // These sizes are in screen coordinates. |
| 74 virtual gfx::Size WindowSizeFromContentSize( | 74 virtual gfx::Size WindowSizeFromContentSize( |
| 75 const gfx::Size& content_size) const OVERRIDE; | 75 const gfx::Size& content_size) const OVERRIDE; |
| 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 UpdatePanelStackingProperty() OVERRIDE; |
| 83 | 84 |
| 84 virtual NativePanelTesting* CreateNativePanelTesting() OVERRIDE; | 85 virtual NativePanelTesting* CreateNativePanelTesting() OVERRIDE; |
| 85 | 86 |
| 86 // Overridden from ActiveWindowWatcherXObserver. | 87 // Overridden from ActiveWindowWatcherXObserver. |
| 87 virtual void ActiveWindowChanged(GdkWindow* active_window) OVERRIDE; | 88 virtual void ActiveWindowChanged(GdkWindow* active_window) OVERRIDE; |
| 88 | 89 |
| 89 bool UsingDefaultTheme() const; | 90 bool UsingDefaultTheme() const; |
| 90 | 91 |
| 91 Panel* panel() const { return panel_.get(); } | 92 Panel* panel() const { return panel_.get(); } |
| 92 PaintState paint_state() const { return paint_state_; } | 93 PaintState paint_state() const { return paint_state_; } |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 // The accelerator group used to handle accelerators, owned by this object. | 205 // The accelerator group used to handle accelerators, owned by this object. |
| 205 GtkAccelGroup* accel_group_; | 206 GtkAccelGroup* accel_group_; |
| 206 | 207 |
| 207 // The container for the titlebar. | 208 // The container for the titlebar. |
| 208 scoped_ptr<PanelTitlebarGtk> titlebar_; | 209 scoped_ptr<PanelTitlebarGtk> titlebar_; |
| 209 | 210 |
| 210 DISALLOW_COPY_AND_ASSIGN(PanelGtk); | 211 DISALLOW_COPY_AND_ASSIGN(PanelGtk); |
| 211 }; | 212 }; |
| 212 | 213 |
| 213 #endif // CHROME_BROWSER_UI_GTK_PANELS_PANEL_GTK_H_ | 214 #endif // CHROME_BROWSER_UI_GTK_PANELS_PANEL_GTK_H_ |
| OLD | NEW |