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; |
}; |