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

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

Issue 1927203003: Add support for X11 workspaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Implemented GetRestoredWorkspace, fix some formatting Created 4 years, 8 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 5c698601fcd821a579356d1b2d8a60e99a2f0e44..64d8a8e59f79292f18d5148abd9b5fe7a8be8460 100644
--- a/chrome/browser/ui/browser.h
+++ b/chrome/browser/ui/browser.h
@@ -185,6 +185,9 @@ class Browser : public TabStripModelObserver,
// The bounds of the window to open.
gfx::Rect initial_bounds;
+ // The workspace the window should open in, if the platform supports it.
+ int initial_workspace;
+
ui::WindowShowState initial_show_state;
bool is_session_restore;
@@ -239,6 +242,7 @@ class Browser : public TabStripModelObserver,
bool is_trusted_source() const { return is_trusted_source_; }
Profile* profile() const { return profile_; }
gfx::Rect override_bounds() const { return override_bounds_; }
+ int initial_workspace() const { return initial_workspace_; }
// |window()| will return NULL if called before |CreateBrowserWindow()|
// is done.
@@ -949,6 +953,7 @@ class Browser : public TabStripModelObserver,
// shell shortcut's startup info.
gfx::Rect override_bounds_;
ui::WindowShowState initial_show_state_;
+ int initial_workspace_;
// Tracks when this browser is being created by session restore.
bool is_session_restore_;

Powered by Google App Engine
This is Rietveld 408576698