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_APP_LAUNCH_PARAMS_H_ | 5 #ifndef CHROME_BROWSER_UI_EXTENSIONS_APP_LAUNCH_PARAMS_H_ |
6 #define CHROME_BROWSER_UI_EXTENSIONS_APP_LAUNCH_PARAMS_H_ | 6 #define CHROME_BROWSER_UI_EXTENSIONS_APP_LAUNCH_PARAMS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 AppLaunchParams(const AppLaunchParams& other); | 33 AppLaunchParams(const AppLaunchParams& other); |
34 | 34 |
35 ~AppLaunchParams(); | 35 ~AppLaunchParams(); |
36 | 36 |
37 // The profile to load the application from. | 37 // The profile to load the application from. |
38 Profile* profile; | 38 Profile* profile; |
39 | 39 |
40 // The extension to load. | 40 // The extension to load. |
41 std::string extension_id; | 41 std::string extension_id; |
42 | 42 |
| 43 // An id that can be passed to an app when launched in order to support |
| 44 // multiple shelf items per app. |
| 45 std::string launch_id; |
| 46 |
43 // The container type to launch the application in. | 47 // The container type to launch the application in. |
44 extensions::LaunchContainer container; | 48 extensions::LaunchContainer container; |
45 | 49 |
46 // If container is TAB, this field controls how the tab is opened. | 50 // If container is TAB, this field controls how the tab is opened. |
47 WindowOpenDisposition disposition; | 51 WindowOpenDisposition disposition; |
48 | 52 |
49 // If non-empty, use override_url in place of the application's launch url. | 53 // If non-empty, use override_url in place of the application's launch url. |
50 GURL override_url; | 54 GURL override_url; |
51 | 55 |
52 // If non-empty, use override_boudns in place of the application's default | 56 // If non-empty, use override_boudns in place of the application's default |
(...skipping 27 matching lines...) Expand all Loading... |
80 // Helper to create AppLaunchParams using event flags that allows user to | 84 // Helper to create AppLaunchParams using event flags that allows user to |
81 // override the user-configured container using modifier keys, falling back to | 85 // override the user-configured container using modifier keys, falling back to |
82 // extensions::GetLaunchContainer() with no modifiers. | 86 // extensions::GetLaunchContainer() with no modifiers. |
83 AppLaunchParams CreateAppLaunchParamsWithEventFlags( | 87 AppLaunchParams CreateAppLaunchParamsWithEventFlags( |
84 Profile* profile, | 88 Profile* profile, |
85 const extensions::Extension* extension, | 89 const extensions::Extension* extension, |
86 int event_flags, | 90 int event_flags, |
87 extensions::AppLaunchSource source); | 91 extensions::AppLaunchSource source); |
88 | 92 |
89 #endif // CHROME_BROWSER_UI_EXTENSIONS_APP_LAUNCH_PARAMS_H_ | 93 #endif // CHROME_BROWSER_UI_EXTENSIONS_APP_LAUNCH_PARAMS_H_ |
OLD | NEW |