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

Unified Diff: chrome/browser/ui/browser.h

Issue 11085053: Improving window auto management between workspaces (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Created 8 years, 2 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/browser.h
diff --git a/chrome/browser/ui/browser.h b/chrome/browser/ui/browser.h
index c07215a8dc6bc0ba5dffe73993f56372b4242aac..ab660fbc867390cb7dce4b6debae58ba248cd2db 100644
--- a/chrome/browser/ui/browser.h
+++ b/chrome/browser/ui/browser.h
@@ -196,6 +196,10 @@ class Browser : public TabStripModelObserver,
ui::WindowShowState initial_show_state;
+ // If |is_session_restore| is set upon restoration and this flag is true,
+ // the window will get marked as user hand positioned.
+ bool initial_user_has_changed_window_or_position;
+
bool is_session_restore;
// Supply a custom BrowserWindow implementation, to be used instead of the
@@ -213,6 +217,9 @@ class Browser : public TabStripModelObserver,
override_bounds_ = bounds;
}
ui::WindowShowState initial_show_state() const { return initial_show_state_; }
+ bool initial_user_has_changed_window_or_position() const {
+ return initial_user_has_changed_window_or_position_;
+ }
void set_initial_show_state(ui::WindowShowState initial_show_state) {
initial_show_state_ = initial_show_state;
}
@@ -882,6 +889,7 @@ class Browser : public TabStripModelObserver,
// shell shortcut's startup info.
gfx::Rect override_bounds_;
ui::WindowShowState initial_show_state_;
+ bool initial_user_has_changed_window_or_position_;
// Tracks when this browser is being created by session restore.
bool is_session_restore_;

Powered by Google App Engine
This is Rietveld 408576698