| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 virtual void DestroyPanelBrowser() OVERRIDE; | 109 virtual void DestroyPanelBrowser() OVERRIDE; |
| 110 virtual gfx::Size WindowSizeFromContentSize( | 110 virtual gfx::Size WindowSizeFromContentSize( |
| 111 const gfx::Size& content_size) const OVERRIDE; | 111 const gfx::Size& content_size) const OVERRIDE; |
| 112 virtual gfx::Size ContentSizeFromWindowSize( | 112 virtual gfx::Size ContentSizeFromWindowSize( |
| 113 const gfx::Size& window_size) const OVERRIDE; | 113 const gfx::Size& window_size) const OVERRIDE; |
| 114 virtual int TitleOnlyHeight() const OVERRIDE; | 114 virtual int TitleOnlyHeight() const OVERRIDE; |
| 115 virtual void EnsurePanelFullyVisible() OVERRIDE; | 115 virtual void EnsurePanelFullyVisible() OVERRIDE; |
| 116 virtual void SetPanelAlwaysOnTop(bool on_top) OVERRIDE; | 116 virtual void SetPanelAlwaysOnTop(bool on_top) OVERRIDE; |
| 117 virtual void EnableResizeByMouse(bool enable) OVERRIDE; | 117 virtual void EnableResizeByMouse(bool enable) OVERRIDE; |
| 118 virtual void UpdatePanelMinimizeRestoreButtonVisibility() OVERRIDE; | 118 virtual void UpdatePanelMinimizeRestoreButtonVisibility() OVERRIDE; |
| 119 virtual void PanelExpansionStateChanging( |
| 120 Panel::ExpansionState old_state, |
| 121 Panel::ExpansionState new_state) OVERRIDE; |
| 119 | 122 |
| 120 private: | 123 private: |
| 121 friend class NativePanelTestingGtk; | 124 friend class NativePanelTestingGtk; |
| 122 | 125 |
| 123 void StartBoundsAnimation(const gfx::Rect& from_bounds, | 126 void StartBoundsAnimation(const gfx::Rect& from_bounds, |
| 124 const gfx::Rect& to_bounds); | 127 const gfx::Rect& to_bounds); |
| 125 bool IsAnimatingBounds() const; | 128 bool IsAnimatingBounds() const; |
| 126 | 129 |
| 127 // Overridden from AnimationDelegate: | 130 // Overridden from AnimationDelegate: |
| 128 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; | 131 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 // current one completes. In this case, we want to start the new animation | 164 // current one completes. In this case, we want to start the new animation |
| 162 // from where the last one left. | 165 // from where the last one left. |
| 163 gfx::Rect last_animation_progressed_bounds_; | 166 gfx::Rect last_animation_progressed_bounds_; |
| 164 | 167 |
| 165 content::NotificationRegistrar registrar_; | 168 content::NotificationRegistrar registrar_; |
| 166 | 169 |
| 167 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowGtk); | 170 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowGtk); |
| 168 }; | 171 }; |
| 169 | 172 |
| 170 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ | 173 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ |
| OLD | NEW |