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

Side by Side Diff: chrome/browser/ui/browser.h

Issue 8526017: Append parameters to webstore URL to indicate launch source. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile fixes Created 9 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/resources/shared/js/util.js ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 256
257 // Opens a new window with the tabs from |profile|'s TabRestoreService. 257 // Opens a new window with the tabs from |profile|'s TabRestoreService.
258 static void OpenWindowWithRestoredTabs(Profile* profile); 258 static void OpenWindowWithRestoredTabs(Profile* profile);
259 259
260 // Opens the specified URL in a new browser window in an incognito session. 260 // Opens the specified URL in a new browser window in an incognito session.
261 // If there is already an existing active incognito session for the specified 261 // If there is already an existing active incognito session for the specified
262 // |profile|, that session is re-used. 262 // |profile|, that session is re-used.
263 static void OpenURLOffTheRecord(Profile* profile, const GURL& url); 263 static void OpenURLOffTheRecord(Profile* profile, const GURL& url);
264 264
265 // Open |extension| in |container|, using |disposition| if container type is 265 // Open |extension| in |container|, using |disposition| if container type is
266 // TAB. Returns the TabContents* that was created or NULL. 266 // TAB. Returns the TabContents* that was created or NULL. If non-empty,
267 // |override_url| is used in place of the app launch url.
267 static TabContents* OpenApplication( 268 static TabContents* OpenApplication(
268 Profile* profile, 269 Profile* profile,
269 const Extension* extension, 270 const Extension* extension,
270 extension_misc::LaunchContainer container, 271 extension_misc::LaunchContainer container,
272 const GURL& override_url,
271 WindowOpenDisposition disposition); 273 WindowOpenDisposition disposition);
272 274
273 // Opens a new application window for the specified url. If |as_panel| 275 // Opens a new application window for the specified url. If |as_panel|
274 // is true, the application will be opened as a Browser::Type::APP_PANEL in 276 // is true, the application will be opened as a Browser::Type::APP_PANEL in
275 // app panel window, otherwise it will be opened as as either 277 // app panel window, otherwise it will be opened as as either
276 // Browser::Type::APP a.k.a. "thin frame" (if |extension| is NULL) or 278 // Browser::Type::APP a.k.a. "thin frame" (if |extension| is NULL) or
277 // Browser::Type::EXTENSION_APP (if |extension| is non-NULL). 279 // Browser::Type::EXTENSION_APP (if |extension| is non-NULL).
278 // If |app_browser| is not NULL, it is set to the browser that hosts the 280 // If |app_browser| is not NULL, it is set to the browser that hosts the
279 // returned tab. 281 // returned tab.
280 static TabContents* OpenApplicationWindow( 282 static TabContents* OpenApplicationWindow(
281 Profile* profile, 283 Profile* profile,
282 const Extension* extension, 284 const Extension* extension,
283 extension_misc::LaunchContainer container, 285 extension_misc::LaunchContainer container,
284 const GURL& url, 286 const GURL& url,
285 Browser** app_browser); 287 Browser** app_browser);
286 288
287 // Open |url| in an app shortcut window. If |update_shortcut| is true, 289 // Open |url| in an app shortcut window. If |update_shortcut| is true,
288 // update the name, description, and favicon of the shortcut. 290 // update the name, description, and favicon of the shortcut.
289 // There are two kinds of app shortcuts: Shortcuts to a URL, 291 // There are two kinds of app shortcuts: Shortcuts to a URL,
290 // and shortcuts that open an installed application. This function 292 // and shortcuts that open an installed application. This function
291 // is used to open the former. To open the latter, use 293 // is used to open the former. To open the latter, use
292 // Browser::OpenApplicationWindow(). 294 // Browser::OpenApplicationWindow().
293 static TabContents* OpenAppShortcutWindow(Profile* profile, 295 static TabContents* OpenAppShortcutWindow(Profile* profile,
294 const GURL& url, 296 const GURL& url,
295 bool update_shortcut); 297 bool update_shortcut);
296 298
297 // Open an application for |extension| using |disposition|. Returns NULL if 299 // Open an application for |extension| using |disposition|. Returns NULL if
298 // there are no appropriate existing browser windows for |profile|. 300 // there are no appropriate existing browser windows for |profile|. If
301 // non-empty, |override_url| is used in place of the app launch url.
299 static TabContents* OpenApplicationTab(Profile* profile, 302 static TabContents* OpenApplicationTab(Profile* profile,
300 const Extension* extension, 303 const Extension* extension,
304 const GURL& override_url,
301 WindowOpenDisposition disposition); 305 WindowOpenDisposition disposition);
302 306
303 // Opens a new window and opens the bookmark manager. 307 // Opens a new window and opens the bookmark manager.
304 static void OpenBookmarkManagerWindow(Profile* profile); 308 static void OpenBookmarkManagerWindow(Profile* profile);
305 309
306 #if defined(OS_MACOSX) 310 #if defined(OS_MACOSX)
307 // Open a new window with history/downloads/help/options (needed on Mac when 311 // Open a new window with history/downloads/help/options (needed on Mac when
308 // there are no windows). 312 // there are no windows).
309 static void OpenHistoryWindow(Profile* profile); 313 static void OpenHistoryWindow(Profile* profile);
310 static void OpenDownloadsWindow(Profile* profile); 314 static void OpenDownloadsWindow(Profile* profile);
(...skipping 1155 matching lines...) Expand 10 before | Expand all | Expand 10 after
1466 1470
1467 MouseLockState mouse_lock_state_; 1471 MouseLockState mouse_lock_state_;
1468 1472
1469 // True if the browser window has been shown at least once. 1473 // True if the browser window has been shown at least once.
1470 bool window_has_shown_; 1474 bool window_has_shown_;
1471 1475
1472 DISALLOW_COPY_AND_ASSIGN(Browser); 1476 DISALLOW_COPY_AND_ASSIGN(Browser);
1473 }; 1477 };
1474 1478
1475 #endif // CHROME_BROWSER_UI_BROWSER_H_ 1479 #endif // CHROME_BROWSER_UI_BROWSER_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/shared/js/util.js ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698