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

Unified Diff: chrome/browser/ui/panels/panel_browser_view.h

Issue 7537030: Make panel adjust bounds per preferred size change notification on Windows. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/panels/panel_browser_view.h
===================================================================
--- chrome/browser/ui/panels/panel_browser_view.h (revision 95921)
+++ chrome/browser/ui/panels/panel_browser_view.h (working copy)
@@ -88,6 +88,9 @@
virtual void NotifyPanelOnUserChangedTheme() OVERRIDE;
virtual void DrawAttention() OVERRIDE;
virtual bool IsDrawingAttention() const OVERRIDE;
+ virtual gfx::Size GetNonClientAreaSize() const OVERRIDE;
+ virtual int GetRestoredHeight() const OVERRIDE;
+ virtual void SetRestoredHeight(int height) OVERRIDE;
virtual Browser* GetPanelBrowser() const OVERRIDE;
virtual void DestroyPanelBrowser() OVERRIDE;
virtual NativePanelTesting* GetNativePanelTesting() OVERRIDE;
@@ -102,9 +105,9 @@
scoped_ptr<Panel> panel_;
gfx::Rect bounds_;
- // Stores the original height of the panel so we can restore it after it's
+ // Stores the full height of the panel so we can restore it after it's
// been minimized.
- int original_height_;
+ int restored_height_;
// Is the panel being closed? Do not use it when it is closed.
bool closed_;

Powered by Google App Engine
This is Rietveld 408576698