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

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

Issue 196413016: Move CommandLine to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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_EXTENSIONS_APPLICATION_LAUNCH_H_ 5 #ifndef CHROME_BROWSER_UI_EXTENSIONS_APPLICATION_LAUNCH_H_
6 #define CHROME_BROWSER_UI_EXTENSIONS_APPLICATION_LAUNCH_H_ 6 #define CHROME_BROWSER_UI_EXTENSIONS_APPLICATION_LAUNCH_H_
7 7
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "chrome/browser/ui/host_desktop.h" 10 #include "chrome/browser/ui/host_desktop.h"
11 #include "chrome/common/extensions/extension_constants.h" 11 #include "chrome/common/extensions/extension_constants.h"
12 #include "ui/base/window_open_disposition.h" 12 #include "ui/base/window_open_disposition.h"
13 #include "ui/gfx/rect.h" 13 #include "ui/gfx/rect.h"
14 #include "url/gurl.h" 14 #include "url/gurl.h"
15 15
16 class Browser; 16 class Browser;
17 class Profile;
18
19 namespace base {
17 class CommandLine; 20 class CommandLine;
18 class Profile; 21 }
19 22
20 namespace content { 23 namespace content {
21 class WebContents; 24 class WebContents;
22 } 25 }
23 26
24 namespace extensions { 27 namespace extensions {
25 class Extension; 28 class Extension;
26 } 29 }
27 30
28 struct AppLaunchParams { 31 struct AppLaunchParams {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 68
66 // If non-empty, use override_url in place of the application's launch url. 69 // If non-empty, use override_url in place of the application's launch url.
67 GURL override_url; 70 GURL override_url;
68 71
69 // If non-empty, use override_boudns in place of the application's default 72 // If non-empty, use override_boudns in place of the application's default
70 // position and dimensions. 73 // position and dimensions.
71 gfx::Rect override_bounds; 74 gfx::Rect override_bounds;
72 75
73 // If non-empty, information from the command line may be passed on to the 76 // If non-empty, information from the command line may be passed on to the
74 // application. 77 // application.
75 CommandLine command_line; 78 base::CommandLine command_line;
76 79
77 // If non-empty, the current directory from which any relative paths on the 80 // If non-empty, the current directory from which any relative paths on the
78 // command line should be expanded from. 81 // command line should be expanded from.
79 base::FilePath current_directory; 82 base::FilePath current_directory;
80 }; 83 };
81 84
82 // Opens the application, possibly prompting the user to re-enable it. 85 // Opens the application, possibly prompting the user to re-enable it.
83 void OpenApplicationWithReenablePrompt(const AppLaunchParams& params); 86 void OpenApplicationWithReenablePrompt(const AppLaunchParams& params);
84 87
85 // Open the application in a way specified by |params|. 88 // Open the application in a way specified by |params|.
86 content::WebContents* OpenApplication(const AppLaunchParams& params); 89 content::WebContents* OpenApplication(const AppLaunchParams& params);
87 90
88 // Open |url| in an app shortcut window. |override_bounds| param is optional. 91 // Open |url| in an app shortcut window. |override_bounds| param is optional.
89 // There are two kinds of app shortcuts: Shortcuts to a URL, 92 // There are two kinds of app shortcuts: Shortcuts to a URL,
90 // and shortcuts that open an installed application. This function 93 // and shortcuts that open an installed application. This function
91 // is used to open the former. To open the latter, use 94 // is used to open the former. To open the latter, use
92 // application_launch::OpenApplication(). 95 // application_launch::OpenApplication().
93 content::WebContents* OpenAppShortcutWindow(Profile* profile, 96 content::WebContents* OpenAppShortcutWindow(Profile* profile,
94 const GURL& url, 97 const GURL& url,
95 const gfx::Rect& override_bounds); 98 const gfx::Rect& override_bounds);
96 99
97 #endif // CHROME_BROWSER_UI_EXTENSIONS_APPLICATION_LAUNCH_H_ 100 #endif // CHROME_BROWSER_UI_EXTENSIONS_APPLICATION_LAUNCH_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/app_list_service_impl.h ('k') | chrome/browser/ui/libgtk2ui/gtk2_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698