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

Unified Diff: chrome/browser/ui/panels/native_panel.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/native_panel.h
===================================================================
--- chrome/browser/ui/panels/native_panel.h (revision 94932)
+++ chrome/browser/ui/panels/native_panel.h (working copy)
@@ -34,7 +34,12 @@
virtual void ShowPanel() = 0;
virtual void ShowPanelInactive() = 0;
+
+ // The restored bounds are the original bounds when the panel is in expanded
+ // state.
+ virtual gfx::Rect GetPanelRestoredBounds() const = 0;
Dmitry Titov 2011/08/05 19:02:20 As discussed, lets replace RestoredBounds with Res
jianli 2011/08/09 19:56:16 Done.
virtual gfx::Rect GetPanelBounds() const = 0;
+ virtual void SetPanelRestoredBounds(const gfx::Rect& bounds) = 0;
virtual void SetPanelBounds(const gfx::Rect& bounds) = 0;
// The native panel needs to update the bounds. In addition, it needs to watch
@@ -62,6 +67,10 @@
virtual Browser* GetPanelBrowser() const = 0;
virtual void DestroyPanelBrowser() = 0;
+ // Returns the size of the non-client area, that is, the window size minus
+ // the size of the client area.
+ virtual gfx::Size GetNonClientAreaSize() const = 0;
+
// Returns a pointer to the testing interface to the native panel.
virtual NativePanelTesting* GetNativePanelTesting() = 0;
};

Powered by Google App Engine
This is Rietveld 408576698