| 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_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 "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "chrome/browser/ui/gtk/browser_window_gtk.h" | 10 #include "chrome/browser/ui/gtk/browser_window_gtk.h" |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 virtual Browser* GetPanelBrowser() const OVERRIDE; | 100 virtual Browser* GetPanelBrowser() const OVERRIDE; |
| 101 virtual void DestroyPanelBrowser() OVERRIDE; | 101 virtual void DestroyPanelBrowser() OVERRIDE; |
| 102 virtual gfx::Size WindowSizeFromContentSize( | 102 virtual gfx::Size WindowSizeFromContentSize( |
| 103 const gfx::Size& content_size) const OVERRIDE; | 103 const gfx::Size& content_size) const OVERRIDE; |
| 104 virtual gfx::Size ContentSizeFromWindowSize( | 104 virtual gfx::Size ContentSizeFromWindowSize( |
| 105 const gfx::Size& window_size) const OVERRIDE; | 105 const gfx::Size& window_size) const OVERRIDE; |
| 106 virtual int TitleOnlyHeight() const OVERRIDE; | 106 virtual int TitleOnlyHeight() const OVERRIDE; |
| 107 virtual gfx::Size IconOnlySize() const OVERRIDE; | 107 virtual gfx::Size IconOnlySize() const OVERRIDE; |
| 108 virtual void EnsurePanelFullyVisible() OVERRIDE; | 108 virtual void EnsurePanelFullyVisible() OVERRIDE; |
| 109 virtual void SetPanelAppIconVisibility(bool visible) OVERRIDE; | 109 virtual void SetPanelAppIconVisibility(bool visible) OVERRIDE; |
| 110 virtual void SetPanelAlwaysOnTop(bool on_top) OVERRIDE; |
| 110 | 111 |
| 111 private: | 112 private: |
| 112 friend class NativePanelTestingGtk; | 113 friend class NativePanelTestingGtk; |
| 113 | 114 |
| 114 void StartBoundsAnimation(const gfx::Rect& from_bounds, | 115 void StartBoundsAnimation(const gfx::Rect& from_bounds, |
| 115 const gfx::Rect& to_bounds); | 116 const gfx::Rect& to_bounds); |
| 116 bool IsAnimatingBounds() const; | 117 bool IsAnimatingBounds() const; |
| 117 | 118 |
| 118 // MessageLoop::Observer implementation: | 119 // MessageLoop::Observer implementation: |
| 119 virtual void WillProcessEvent(GdkEvent* event) OVERRIDE; | 120 virtual void WillProcessEvent(GdkEvent* event) OVERRIDE; |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 | 221 |
| 221 // The close button is not shown when panel is in icon only mode in overflow. | 222 // The close button is not shown when panel is in icon only mode in overflow. |
| 222 bool show_close_button_; | 223 bool show_close_button_; |
| 223 | 224 |
| 224 content::NotificationRegistrar registrar_; | 225 content::NotificationRegistrar registrar_; |
| 225 | 226 |
| 226 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowGtk); | 227 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowGtk); |
| 227 }; | 228 }; |
| 228 | 229 |
| 229 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ | 230 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ |
| OLD | NEW |