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

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

Issue 2685333005: ash: fix regression where ctrl+n put new window on wrong desktop (Closed)
Patch Set: Rebase to ToT Created 3 years, 10 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 | « chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser.h
diff --git a/chrome/browser/ui/browser.h b/chrome/browser/ui/browser.h
index 59da0950995703000b7478c54ec6e1acb1660bc1..cd6244a52a458cbb5b432b05a1942619d9021894 100644
--- a/chrome/browser/ui/browser.h
+++ b/chrome/browser/ui/browser.h
@@ -156,14 +156,15 @@ class Browser : public TabStripModelObserver,
};
struct CreateParams {
- explicit CreateParams(Profile* profile);
- CreateParams(Type type, Profile* profile);
+ explicit CreateParams(Profile* profile, bool user_gesture);
+ CreateParams(Type type, Profile* profile, bool user_gesture);
CreateParams(const CreateParams& other);
static CreateParams CreateForApp(const std::string& app_name,
bool trusted_source,
const gfx::Rect& window_bounds,
- Profile* profile);
+ Profile* profile,
+ bool user_gesture);
static CreateParams CreateForDevTools(Profile* profile);
@@ -186,6 +187,12 @@ class Browser : public TabStripModelObserver,
bool is_session_restore;
+ // Whether this browser was created by a user gesture. We track this
+ // specifically for the multi-user case in chromeos where we can place
+ // windows generated by user gestures differently from ones
+ // programmatically created.
+ bool user_gesture;
+
// Supply a custom BrowserWindow implementation, to be used instead of the
// default. Intended for testing.
BrowserWindow* window;
« no previous file with comments | « chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698