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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 base::CommandLine command_line; | 62 base::CommandLine command_line; |
63 | 63 |
64 // If non-empty, the current directory from which any relative paths on the | 64 // If non-empty, the current directory from which any relative paths on the |
65 // command line should be expanded from. | 65 // command line should be expanded from. |
66 base::FilePath current_directory; | 66 base::FilePath current_directory; |
67 | 67 |
68 // Record where the app is launched from for tracking purpose. | 68 // Record where the app is launched from for tracking purpose. |
69 // Different app may have their own enumeration of sources. | 69 // Different app may have their own enumeration of sources. |
70 extensions::AppLaunchSource source; | 70 extensions::AppLaunchSource source; |
71 | 71 |
72 // Status of ARC++ on this device. | 72 // Status of ARC on this device. |
73 extensions::api::app_runtime::PlayStoreStatus play_store_status; | 73 extensions::api::app_runtime::PlayStoreStatus play_store_status; |
74 }; | 74 }; |
75 | 75 |
76 // Helper to create AppLaunchParams using extensions::GetLaunchContainer with | 76 // Helper to create AppLaunchParams using extensions::GetLaunchContainer with |
77 // LAUNCH_TYPE_REGULAR to check for a user-configured container. | 77 // LAUNCH_TYPE_REGULAR to check for a user-configured container. |
78 AppLaunchParams CreateAppLaunchParamsUserContainer( | 78 AppLaunchParams CreateAppLaunchParamsUserContainer( |
79 Profile* profile, | 79 Profile* profile, |
80 const extensions::Extension* extension, | 80 const extensions::Extension* extension, |
81 WindowOpenDisposition disposition, | 81 WindowOpenDisposition disposition, |
82 extensions::AppLaunchSource source); | 82 extensions::AppLaunchSource source); |
83 | 83 |
84 // Helper to create AppLaunchParams using event flags that allows user to | 84 // Helper to create AppLaunchParams using event flags that allows user to |
85 // override the user-configured container using modifier keys, falling back to | 85 // override the user-configured container using modifier keys, falling back to |
86 // extensions::GetLaunchContainer() with no modifiers. | 86 // extensions::GetLaunchContainer() with no modifiers. |
87 AppLaunchParams CreateAppLaunchParamsWithEventFlags( | 87 AppLaunchParams CreateAppLaunchParamsWithEventFlags( |
88 Profile* profile, | 88 Profile* profile, |
89 const extensions::Extension* extension, | 89 const extensions::Extension* extension, |
90 int event_flags, | 90 int event_flags, |
91 extensions::AppLaunchSource source); | 91 extensions::AppLaunchSource source); |
92 | 92 |
93 #endif // CHROME_BROWSER_UI_EXTENSIONS_APP_LAUNCH_PARAMS_H_ | 93 #endif // CHROME_BROWSER_UI_EXTENSIONS_APP_LAUNCH_PARAMS_H_ |
OLD | NEW |