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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_BROWSER_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_H_
6 #define CHROME_BROWSER_UI_BROWSER_H_ 6 #define CHROME_BROWSER_UI_BROWSER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 // The bounds of the window to open. 179 // The bounds of the window to open.
180 gfx::Rect initial_bounds; 180 gfx::Rect initial_bounds;
181 181
182 // The workspace the window should open in, if the platform supports it. 182 // The workspace the window should open in, if the platform supports it.
183 std::string initial_workspace; 183 std::string initial_workspace;
184 184
185 ui::WindowShowState initial_show_state; 185 ui::WindowShowState initial_show_state;
186 186
187 bool is_session_restore; 187 bool is_session_restore;
188 188
189 // Whether this browser was created by a user gesture.
Mr4D (OOO till 08-26) 2017/02/13 23:57:39 Please add a comment towards why this is&needed -
Elliot Glaysher 2017/02/15 22:15:02 Done.
190 bool user_gesture;
Mr4D (OOO till 08-26) 2017/02/13 23:57:39 The name "user_gesture" suggests that there must h
Elliot Glaysher 2017/02/15 22:15:02 I disagree. The name "user_gesture" predates touch
191
189 // Supply a custom BrowserWindow implementation, to be used instead of the 192 // Supply a custom BrowserWindow implementation, to be used instead of the
190 // default. Intended for testing. 193 // default. Intended for testing.
191 BrowserWindow* window; 194 BrowserWindow* window;
192 195
193 private: 196 private:
194 friend class Browser; 197 friend class Browser;
195 198
196 // The application name that is also the name of the window to the shell. 199 // The application name that is also the name of the window to the shell.
197 // Do not set this value directly, use CreateForApp. 200 // Do not set this value directly, use CreateForApp.
198 // This name will be set for: 201 // This name will be set for:
(...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 // The following factory is used for chrome update coalescing. 1020 // The following factory is used for chrome update coalescing.
1018 base::WeakPtrFactory<Browser> chrome_updater_factory_; 1021 base::WeakPtrFactory<Browser> chrome_updater_factory_;
1019 1022
1020 // The following factory is used to close the frame at a later time. 1023 // The following factory is used to close the frame at a later time.
1021 base::WeakPtrFactory<Browser> weak_factory_; 1024 base::WeakPtrFactory<Browser> weak_factory_;
1022 1025
1023 DISALLOW_COPY_AND_ASSIGN(Browser); 1026 DISALLOW_COPY_AND_ASSIGN(Browser);
1024 }; 1027 };
1025 1028
1026 #endif // CHROME_BROWSER_UI_BROWSER_H_ 1029 #endif // CHROME_BROWSER_UI_BROWSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698