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

Unified Diff: views/views_delegate.h

Issue 7748036: Restoring a session should restore window minimization state on Windows (Closed) Base URL: svn://svn.chromium.org/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: views/views_delegate.h
diff --git a/views/views_delegate.h b/views/views_delegate.h
index 13baff03a640a0b6680cc83b21d33880decd9dd7..1f3d98ac5ab947692fed7a0be0e03e9aecc9fd6f 100644
--- a/views/views_delegate.h
+++ b/views/views_delegate.h
@@ -12,6 +12,7 @@
#endif
#include "ui/base/accessibility/accessibility_types.h"
+#include "ui/base/ui_base_types.h"
#include "views/views_export.h"
namespace gfx {
@@ -46,22 +47,23 @@ class VIEWS_EXPORT ViewsDelegate {
// TODO(beng): perhaps this should be a Widget.
virtual View* GetDefaultParentView() = 0;
- // Saves the position, size and maximized state for the window with the
+ // Saves the position, size and "show" state for the window with the
// specified name.
virtual void SaveWindowPlacement(const Widget* widget,
const std::wstring& window_name,
const gfx::Rect& bounds,
- bool maximized) = 0;
+ ui::WindowShowState show_state) = 0;
// Retrieves the saved position and size for the window with the specified
// name.
virtual bool GetSavedWindowBounds(const std::wstring& window_name,
gfx::Rect* bounds) const = 0;
- // Retrieves the saved maximized state for the window with the specified
+ // Retrieves the saved "show" state for the window with the specified
// name.
- virtual bool GetSavedMaximizedState(const std::wstring& window_name,
- bool* maximized) const = 0;
+ virtual bool GetSavedWindowShowState(
sky 2011/08/26 16:26:20 Since you're here, is it possible to combine GetSa
dhollowa 2011/08/26 22:13:50 Done. I've gone with |GetSavedWindowPlacement| th
+ const std::wstring& window_name,
+ ui::WindowShowState* show_state) const = 0;
virtual void NotifyAccessibilityEvent(
views::View* view, ui::AccessibilityTypes::Event event_type) = 0;

Powered by Google App Engine
This is Rietveld 408576698