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

Unified Diff: views/widget/widget.h

Issue 7790010: Revert 98679 - 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
« no previous file with comments | « views/widget/native_widget_win.cc ('k') | views/widget/widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/widget.h
===================================================================
--- views/widget/widget.h (revision 98697)
+++ views/widget/widget.h (working copy)
@@ -12,7 +12,6 @@
#include "base/memory/scoped_ptr.h"
#include "base/observer_list.h"
#include "ui/base/accessibility/accessibility_types.h"
-#include "ui/base/ui_base_types.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/gfx/rect.h"
#include "views/focus/focus_manager.h"
@@ -145,8 +144,8 @@
Ownership ownership;
bool mirror_origin_in_rtl;
bool has_dropshadow;
- // Whether the widget should be maximized or minimized.
- ui::WindowShowState show_state;
+ // Whether the widget should be maximized.
+ bool maximize;
// Should the widget be double buffered? Default is false.
bool double_buffer;
gfx::NativeView parent;
@@ -636,17 +635,16 @@
// Returns whether capture should be released on mouse release.
virtual bool ShouldReleaseCaptureOnMouseReleased() const;
- // Persists the window's restored position and "show" state using the
+ // Persists the window's restored position and maximized state using the
// window delegate.
- void SaveWindowPlacement();
+ void SaveWindowPosition();
// Sizes and positions the window just after it is created.
void SetInitialBounds(const gfx::Rect& bounds);
- // Returns the bounds and "show" state from the delegate. Returns true if
+ // Returns the bounds and maximized state from the delegate. Returns true if
// the delegate wants to use a specified bounds.
- bool GetSavedWindowPlacement(gfx::Rect* bounds,
- ui::WindowShowState* show_state);
+ bool GetSavedBounds(gfx::Rect* bounds, bool* maximize);
// Sets a different InputMethod instance to this widget. The instance
// must not be initialized, the ownership will be assumed by the widget.
@@ -705,12 +703,12 @@
// Set to true if the widget is in the process of closing.
bool widget_closed_;
- // The saved "show" state for this window. See note in SetInitialBounds
+ // The saved maximized state for this window. See note in SetInitialBounds
// that explains why we save this.
- ui::WindowShowState saved_show_state_;
+ bool saved_maximized_state_;
// The restored bounds used for the initial show. This is only used if
- // |saved_show_state_| is maximized.
+ // |saved_maximized_state_| is true.
gfx::Rect initial_restored_bounds_;
// The smallest size the window can be.
@@ -729,9 +727,6 @@
// Factory used to create Compositors. Settable by tests.
static ui::Compositor*(*compositor_factory_)();
- // Tracks whether native widget has been created.
- bool native_widget_created_;
-
DISALLOW_COPY_AND_ASSIGN(Widget);
};
Property changes on: views/widget/widget.h
___________________________________________________________________
Added: svn:mergeinfo
« no previous file with comments | « views/widget/native_widget_win.cc ('k') | views/widget/widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698