diff options
Diffstat (limited to 'views/widget/widget_delegate.h')
-rw-r--r-- | views/widget/widget_delegate.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/views/widget/widget_delegate.h b/views/widget/widget_delegate.h index 85485e6..5c73d4d 100644 --- a/views/widget/widget_delegate.h +++ b/views/widget/widget_delegate.h @@ -10,6 +10,7 @@ #include "base/memory/scoped_ptr.h" #include "ui/base/accessibility/accessibility_types.h" +#include "ui/base/ui_base_types.h" #include "views/view.h" class SkBitmap; @@ -97,15 +98,16 @@ class VIEWS_EXPORT WidgetDelegate { // state restoration. virtual std::wstring GetWindowName() const; - // Saves the window's bounds and maximized states. By default this uses the + // Saves the window's bounds and "show" state. By default this uses the // process' local state keyed by window name (See GetWindowName above). This // behavior can be overridden to provide additional functionality. - virtual void SaveWindowPlacement(const gfx::Rect& bounds, bool maximized); + virtual void SaveWindowPlacement(const gfx::Rect& bounds, + ui::WindowShowState show_state); - // Retrieves the window's bounds and maximized states. + // Retrieves the window's bounds and "show" states. // This behavior can be overridden to provide additional functionality. - virtual bool GetSavedWindowBounds(gfx::Rect* bounds) const; - virtual bool GetSavedMaximizedState(bool* maximized) const; + virtual bool GetSavedWindowPlacement(gfx::Rect* bounds, + ui::WindowShowState* show_state) const; // Returns true if the window's size should be restored. If this is false, // only the window's origin is restored and the window is given its |