| 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 28 matching lines...) Expand all Loading... |
| 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 chrome::HostDesktopType desktop_type, |
| 47 extensions::AppLaunchSource source); | 47 extensions::AppLaunchSource source); |
| 48 | 48 |
| 49 AppLaunchParams(const AppLaunchParams& other); |
| 50 |
| 49 ~AppLaunchParams(); | 51 ~AppLaunchParams(); |
| 50 | 52 |
| 51 // The profile to load the application from. | 53 // The profile to load the application from. |
| 52 Profile* profile; | 54 Profile* profile; |
| 53 | 55 |
| 54 // The extension to load. | 56 // The extension to load. |
| 55 std::string extension_id; | 57 std::string extension_id; |
| 56 | 58 |
| 57 // The container type to launch the application in. | 59 // The container type to launch the application in. |
| 58 extensions::LaunchContainer container; | 60 extensions::LaunchContainer container; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 77 // If non-empty, the current directory from which any relative paths on the | 79 // If non-empty, the current directory from which any relative paths on the |
| 78 // command line should be expanded from. | 80 // command line should be expanded from. |
| 79 base::FilePath current_directory; | 81 base::FilePath current_directory; |
| 80 | 82 |
| 81 // Record where the app is launched from for tracking purpose. | 83 // Record where the app is launched from for tracking purpose. |
| 82 // Different app may have their own enumeration of sources. | 84 // Different app may have their own enumeration of sources. |
| 83 extensions::AppLaunchSource source; | 85 extensions::AppLaunchSource source; |
| 84 }; | 86 }; |
| 85 | 87 |
| 86 #endif // CHROME_BROWSER_UI_EXTENSIONS_APP_LAUNCH_PARAMS_H_ | 88 #endif // CHROME_BROWSER_UI_EXTENSIONS_APP_LAUNCH_PARAMS_H_ |
| OLD | NEW |