OLD | NEW |
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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/common/extensions/extension_constants.h" | 9 #include "chrome/common/extensions/extension_constants.h" |
10 #include "webkit/glue/window_open_disposition.h" | 10 #include "webkit/glue/window_open_disposition.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 // |command_line| can be NULL, indicating there is no launch data to pass on. | 31 // |command_line| can be NULL, indicating there is no launch data to pass on. |
32 // TODO(benwells): Put the parameters to this into an ApplicationLaunchParams | 32 // TODO(benwells): Put the parameters to this into an ApplicationLaunchParams |
33 // struct. | 33 // struct. |
34 content::WebContents* OpenApplication(Profile* profile, | 34 content::WebContents* OpenApplication(Profile* profile, |
35 const extensions::Extension* extension, | 35 const extensions::Extension* extension, |
36 extension_misc::LaunchContainer container, | 36 extension_misc::LaunchContainer container, |
37 const GURL& override_url, | 37 const GURL& override_url, |
38 WindowOpenDisposition disposition, | 38 WindowOpenDisposition disposition, |
39 const CommandLine* command_line); | 39 const CommandLine* command_line); |
40 | 40 |
41 // Opens |url| in a new application panel window for the specified url. | |
42 content::WebContents* OpenApplicationPanel( | |
43 Profile* profile, | |
44 const extensions::Extension* extension, | |
45 const GURL& url); | |
46 | |
47 // Opens a new application window for the specified url. If |as_panel| is true, | 41 // Opens a new application window for the specified url. If |as_panel| is true, |
48 // the application will be opened as a Browser::Type::APP_PANEL in app panel | 42 // the application will be opened as a Browser::Type::APP_PANEL in app panel |
49 // window, otherwise it will be opened as as either Browser::Type::APP a.k.a. | 43 // window, otherwise it will be opened as as either Browser::Type::APP a.k.a. |
50 // "thin frame" (if |extension| is NULL) or Browser::Type::EXTENSION_APP (if | 44 // "thin frame" (if |extension| is NULL) or Browser::Type::EXTENSION_APP (if |
51 // |extension| is non-NULL)./ If |app_browser| is not NULL, it is set to the | 45 // |extension| is non-NULL)./ If |app_browser| is not NULL, it is set to the |
52 // browser that hosts the returned tab. | 46 // browser that hosts the returned tab. |
53 content::WebContents* OpenApplicationWindow( | 47 content::WebContents* OpenApplicationWindow( |
54 Profile* profile, | 48 Profile* profile, |
55 const extensions::Extension* extension, | 49 const extensions::Extension* extension, |
56 extension_misc::LaunchContainer container, | 50 extension_misc::LaunchContainer container, |
(...skipping 14 matching lines...) Expand all Loading... |
71 // there are no appropriate existing browser windows for |profile|. If | 65 // there are no appropriate existing browser windows for |profile|. If |
72 // non-empty, |override_url| is used in place of the app launch url. | 66 // non-empty, |override_url| is used in place of the app launch url. |
73 content::WebContents* OpenApplicationTab(Profile* profile, | 67 content::WebContents* OpenApplicationTab(Profile* profile, |
74 const extensions::Extension* extension, | 68 const extensions::Extension* extension, |
75 const GURL& override_url, | 69 const GURL& override_url, |
76 WindowOpenDisposition disposition); | 70 WindowOpenDisposition disposition); |
77 | 71 |
78 } // namespace application_launch | 72 } // namespace application_launch |
79 | 73 |
80 #endif // CHROME_BROWSER_UI_EXTENSIONS_APPLICATION_LAUNCH_H_ | 74 #endif // CHROME_BROWSER_UI_EXTENSIONS_APPLICATION_LAUNCH_H_ |
OLD | NEW |