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