| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 APPS_LAUNCHER_H_ | 5 #ifndef APPS_LAUNCHER_H_ |
| 6 #define APPS_LAUNCHER_H_ | 6 #define APPS_LAUNCHER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 void LaunchPlatformAppWithCommandLine( | 39 void LaunchPlatformAppWithCommandLine( |
| 40 Profile* profile, | 40 Profile* profile, |
| 41 const extensions::Extension* app, | 41 const extensions::Extension* app, |
| 42 const base::CommandLine& command_line, | 42 const base::CommandLine& command_line, |
| 43 const base::FilePath& current_directory, | 43 const base::FilePath& current_directory, |
| 44 extensions::AppLaunchSource source, | 44 extensions::AppLaunchSource source, |
| 45 extensions::api::app_runtime::PlayStoreStatus play_store_status = | 45 extensions::api::app_runtime::PlayStoreStatus play_store_status = |
| 46 extensions::api::app_runtime::PlayStoreStatus:: | 46 extensions::api::app_runtime::PlayStoreStatus:: |
| 47 PLAY_STORE_STATUS_UNKNOWN); | 47 PLAY_STORE_STATUS_UNKNOWN); |
| 48 | 48 |
| 49 // As above but includes |launch_id|, an id that can be passed to |
| 50 // an app when launched in order to support multiple shelf items per app. |
| 51 void LaunchPlatformAppWithCommandLineAndLaunchId( |
| 52 Profile* profile, |
| 53 const extensions::Extension* app, |
| 54 const std::string& launch_id, |
| 55 const base::CommandLine& command_line, |
| 56 const base::FilePath& current_directory, |
| 57 extensions::AppLaunchSource source, |
| 58 extensions::api::app_runtime::PlayStoreStatus play_store_status = |
| 59 extensions::api::app_runtime::PlayStoreStatus:: |
| 60 PLAY_STORE_STATUS_UNKNOWN); |
| 61 |
| 49 // Launches the platform app |app| by issuing an onLaunched event with the | 62 // Launches the platform app |app| by issuing an onLaunched event with the |
| 50 // contents of |file_path| available through the launch data. | 63 // contents of |file_path| available through the launch data. |
| 51 void LaunchPlatformAppWithPath(Profile* profile, | 64 void LaunchPlatformAppWithPath(Profile* profile, |
| 52 const extensions::Extension* app, | 65 const extensions::Extension* app, |
| 53 const base::FilePath& file_path); | 66 const base::FilePath& file_path); |
| 54 | 67 |
| 55 // Launches the platform app |app| with the specific |action_data|. |file_path| | 68 // Launches the platform app |app| with the specific |action_data|. |file_path| |
| 56 // is an optional argument and if present contains the file that the app should | 69 // is an optional argument and if present contains the file that the app should |
| 57 // open w.r.t. the given action. | 70 // open w.r.t. the given action. |
| 58 void LaunchPlatformAppWithAction( | 71 void LaunchPlatformAppWithAction( |
| (...skipping 25 matching lines...) Expand all Loading... |
| 84 const extensions::Extension* app, | 97 const extensions::Extension* app, |
| 85 const std::string& handler_id, | 98 const std::string& handler_id, |
| 86 const GURL& url, | 99 const GURL& url, |
| 87 const GURL& referrer_url); | 100 const GURL& referrer_url); |
| 88 | 101 |
| 89 void RestartPlatformApp(Profile* profile, const extensions::Extension* app); | 102 void RestartPlatformApp(Profile* profile, const extensions::Extension* app); |
| 90 | 103 |
| 91 } // namespace apps | 104 } // namespace apps |
| 92 | 105 |
| 93 #endif // APPS_LAUNCHER_H_ | 106 #endif // APPS_LAUNCHER_H_ |
| OLD | NEW |