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

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

Issue 10332071: Pass command line arguments onto platform apps which provide the right intent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Compile fixed, postResult added Created 8 years, 7 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 | Annotate | Revision Log
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 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 #include "content/public/common/page_transition_types.h" 49 #include "content/public/common/page_transition_types.h"
50 #include "content/public/common/page_zoom.h" 50 #include "content/public/common/page_zoom.h"
51 #include "ui/base/ui_base_types.h" 51 #include "ui/base/ui_base_types.h"
52 #include "ui/gfx/rect.h" 52 #include "ui/gfx/rect.h"
53 53
54 class BrowserContentSettingBubbleModelDelegate; 54 class BrowserContentSettingBubbleModelDelegate;
55 class BrowserSyncedWindowDelegate; 55 class BrowserSyncedWindowDelegate;
56 class BrowserToolbarModelDelegate; 56 class BrowserToolbarModelDelegate;
57 class BrowserTabRestoreServiceDelegate; 57 class BrowserTabRestoreServiceDelegate;
58 class BrowserWindow; 58 class BrowserWindow;
59 class CommandLine;
59 class Extension; 60 class Extension;
60 class ExtensionWindowController; 61 class ExtensionWindowController;
61 class FindBarController; 62 class FindBarController;
62 class FullscreenController; 63 class FullscreenController;
63 class InstantController; 64 class InstantController;
64 class InstantUnloadHandler; 65 class InstantUnloadHandler;
65 class PrefService; 66 class PrefService;
66 class Profile; 67 class Profile;
67 class SkBitmap; 68 class SkBitmap;
68 class StatusBubble; 69 class StatusBubble;
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 // Opens a new window with the tabs from |profile|'s TabRestoreService. 281 // Opens a new window with the tabs from |profile|'s TabRestoreService.
281 static void OpenWindowWithRestoredTabs(Profile* profile); 282 static void OpenWindowWithRestoredTabs(Profile* profile);
282 283
283 // Opens the specified URL in a new browser window in an incognito session. 284 // Opens the specified URL in a new browser window in an incognito session.
284 // If there is already an existing active incognito session for the specified 285 // If there is already an existing active incognito session for the specified
285 // |profile|, that session is re-used. 286 // |profile|, that session is re-used.
286 static void OpenURLOffTheRecord(Profile* profile, const GURL& url); 287 static void OpenURLOffTheRecord(Profile* profile, const GURL& url);
287 288
288 // Open |extension| in |container|, using |disposition| if container type is 289 // Open |extension| in |container|, using |disposition| if container type is
289 // TAB. Returns the WebContents* that was created or NULL. If non-empty, 290 // TAB. Returns the WebContents* that was created or NULL. If non-empty,
290 // |override_url| is used in place of the app launch url. 291 // |override_url| is used in place of the app launch url. Pass relevant
292 // information in |command_line| onto platform app as launch data.
293 // |command_line| can be NULL, indicating there is no launch data to pass on.
294 // TODO(benwells): Put the parameters to this into an ApplicationLaunchParams
295 // struct.
291 static content::WebContents* OpenApplication( 296 static content::WebContents* OpenApplication(
292 Profile* profile, 297 Profile* profile,
293 const Extension* extension, 298 const Extension* extension,
294 extension_misc::LaunchContainer container, 299 extension_misc::LaunchContainer container,
295 const GURL& override_url, 300 const GURL& override_url,
296 WindowOpenDisposition disposition); 301 WindowOpenDisposition disposition,
302 const CommandLine* command_line);
297 303
298 #if defined(USE_ASH) 304 #if defined(USE_ASH)
299 // Opens |url| in a new application panel window for the specified url. 305 // Opens |url| in a new application panel window for the specified url.
300 static content::WebContents* OpenApplicationPanel( 306 static content::WebContents* OpenApplicationPanel(
301 Profile* profile, 307 Profile* profile,
302 const Extension* extension, 308 const Extension* extension,
303 const GURL& url); 309 const GURL& url);
304 #endif 310 #endif
305 311
306 // Opens a new application window for the specified url. If |as_panel| 312 // Opens a new application window for the specified url. If |as_panel|
(...skipping 1152 matching lines...) Expand 10 before | Expand all | Expand 10 after
1459 bool window_has_shown_; 1465 bool window_has_shown_;
1460 1466
1461 // Currently open color chooser. Non-NULL after OpenColorChooser is called and 1467 // Currently open color chooser. Non-NULL after OpenColorChooser is called and
1462 // before DidEndColorChooser is called. 1468 // before DidEndColorChooser is called.
1463 scoped_ptr<content::ColorChooser> color_chooser_; 1469 scoped_ptr<content::ColorChooser> color_chooser_;
1464 1470
1465 DISALLOW_COPY_AND_ASSIGN(Browser); 1471 DISALLOW_COPY_AND_ASSIGN(Browser);
1466 }; 1472 };
1467 1473
1468 #endif // CHROME_BROWSER_UI_BROWSER_H_ 1474 #endif // CHROME_BROWSER_UI_BROWSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698