Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: chrome/browser/ui/panels/panel_browser_window_gtk.h

Issue 9129013: Panel Overflow on Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cr feedback Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 virtual void FullScreenModeChanged(bool is_full_screen) OVERRIDE; 89 virtual void FullScreenModeChanged(bool is_full_screen) OVERRIDE;
90 virtual Browser* GetPanelBrowser() const OVERRIDE; 90 virtual Browser* GetPanelBrowser() const OVERRIDE;
91 virtual void DestroyPanelBrowser() OVERRIDE; 91 virtual void DestroyPanelBrowser() OVERRIDE;
92 virtual gfx::Size WindowSizeFromContentSize( 92 virtual gfx::Size WindowSizeFromContentSize(
93 const gfx::Size& content_size) const OVERRIDE; 93 const gfx::Size& content_size) const OVERRIDE;
94 virtual gfx::Size ContentSizeFromWindowSize( 94 virtual gfx::Size ContentSizeFromWindowSize(
95 const gfx::Size& window_size) const OVERRIDE; 95 const gfx::Size& window_size) const OVERRIDE;
96 virtual int TitleOnlyHeight() const OVERRIDE; 96 virtual int TitleOnlyHeight() const OVERRIDE;
97 virtual gfx::Size IconOnlySize() const OVERRIDE; 97 virtual gfx::Size IconOnlySize() const OVERRIDE;
98 virtual void EnsurePanelFullyVisible() OVERRIDE; 98 virtual void EnsurePanelFullyVisible() OVERRIDE;
99 virtual void ApplyVisualStyleForStrip(PanelStripType newPanelStrip) OVERRIDE;
99 virtual void SetPanelAppIconVisibility(bool visible) OVERRIDE; 100 virtual void SetPanelAppIconVisibility(bool visible) OVERRIDE;
100 101
101 private: 102 private:
102 friend class NativePanelTestingGtk; 103 friend class NativePanelTestingGtk;
103 104
104 void StartBoundsAnimation(const gfx::Rect& from_bounds, 105 void StartBoundsAnimation(const gfx::Rect& from_bounds,
105 const gfx::Rect& to_bounds); 106 const gfx::Rect& to_bounds);
106 bool IsAnimatingBounds() const; 107 bool IsAnimatingBounds() const;
107 108
108 // MessageLoop::Observer implementation: 109 // MessageLoop::Observer implementation:
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 // This records the bounds set on the last animation progress notification. 194 // This records the bounds set on the last animation progress notification.
194 // We need this for the case where a new bounds animation starts before the 195 // We need this for the case where a new bounds animation starts before the
195 // current one completes. In this case, we want to start the new animation 196 // current one completes. In this case, we want to start the new animation
196 // from where the last one left. 197 // from where the last one left.
197 gfx::Rect last_animation_progressed_bounds_; 198 gfx::Rect last_animation_progressed_bounds_;
198 199
199 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowGtk); 200 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowGtk);
200 }; 201 };
201 202
202 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ 203 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698