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 25 matching lines...) Expand all Loading... |
36 WindowOpenDisposition disposition, | 36 WindowOpenDisposition disposition, |
37 extensions::AppLaunchSource source); | 37 extensions::AppLaunchSource source); |
38 | 38 |
39 // Helper to create AppLaunchParams using event flags that allows user to | 39 // Helper to create AppLaunchParams using event flags that allows user to |
40 // override the user-configured container using modifier keys, falling back to | 40 // override the user-configured container using modifier keys, falling back to |
41 // extensions::GetLaunchContainer() with no modifiers. |desktop_type| | 41 // extensions::GetLaunchContainer() with no modifiers. |desktop_type| |
42 // indicates the desktop upon which to launch (Ash or Native). | 42 // indicates the desktop upon which to launch (Ash or Native). |
43 AppLaunchParams(Profile* profile, | 43 AppLaunchParams(Profile* profile, |
44 const extensions::Extension* extension, | 44 const extensions::Extension* extension, |
45 WindowOpenDisposition disposition, | 45 WindowOpenDisposition disposition, |
46 chrome::HostDesktopType desktop_type, | 46 ui::HostDesktopType desktop_type, |
47 extensions::AppLaunchSource source); | 47 extensions::AppLaunchSource source); |
48 | 48 |
49 ~AppLaunchParams(); | 49 ~AppLaunchParams(); |
50 | 50 |
51 // The profile to load the application from. | 51 // The profile to load the application from. |
52 Profile* profile; | 52 Profile* profile; |
53 | 53 |
54 // The extension to load. | 54 // The extension to load. |
55 std::string extension_id; | 55 std::string extension_id; |
56 | 56 |
57 // The container type to launch the application in. | 57 // The container type to launch the application in. |
58 extensions::LaunchContainer container; | 58 extensions::LaunchContainer container; |
59 | 59 |
60 // If container is TAB, this field controls how the tab is opened. | 60 // If container is TAB, this field controls how the tab is opened. |
61 WindowOpenDisposition disposition; | 61 WindowOpenDisposition disposition; |
62 | 62 |
63 // The desktop type to launch on. Uses GetActiveDesktop() if unspecified. | 63 // The desktop type to launch on. Uses GetActiveDesktop() if unspecified. |
64 chrome::HostDesktopType desktop_type; | 64 ui::HostDesktopType desktop_type; |
65 | 65 |
66 // If non-empty, use override_url in place of the application's launch url. | 66 // If non-empty, use override_url in place of the application's launch url. |
67 GURL override_url; | 67 GURL override_url; |
68 | 68 |
69 // If non-empty, use override_boudns in place of the application's default | 69 // If non-empty, use override_boudns in place of the application's default |
70 // position and dimensions. | 70 // position and dimensions. |
71 gfx::Rect override_bounds; | 71 gfx::Rect override_bounds; |
72 | 72 |
73 // If non-empty, information from the command line may be passed on to the | 73 // If non-empty, information from the command line may be passed on to the |
74 // application. | 74 // application. |
75 base::CommandLine command_line; | 75 base::CommandLine command_line; |
76 | 76 |
77 // If non-empty, the current directory from which any relative paths on the | 77 // If non-empty, the current directory from which any relative paths on the |
78 // command line should be expanded from. | 78 // command line should be expanded from. |
79 base::FilePath current_directory; | 79 base::FilePath current_directory; |
80 | 80 |
81 // Record where the app is launched from for tracking purpose. | 81 // Record where the app is launched from for tracking purpose. |
82 // Different app may have their own enumeration of sources. | 82 // Different app may have their own enumeration of sources. |
83 extensions::AppLaunchSource source; | 83 extensions::AppLaunchSource source; |
84 }; | 84 }; |
85 | 85 |
86 #endif // CHROME_BROWSER_UI_EXTENSIONS_APP_LAUNCH_PARAMS_H_ | 86 #endif // CHROME_BROWSER_UI_EXTENSIONS_APP_LAUNCH_PARAMS_H_ |
OLD | NEW |