Chromium Code Reviews| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 34 const base::CommandLine& command_line, | 34 const base::CommandLine& command_line, |
| 35 const base::FilePath& current_directory, | 35 const base::FilePath& current_directory, |
| 36 extensions::AppLaunchSource source); | 36 extensions::AppLaunchSource source); |
| 37 | 37 |
| 38 // Launches the platform app |extension| by issuing an onLaunched event | 38 // Launches the platform app |extension| by issuing an onLaunched event |
| 39 // with the contents of |file_path| available through the launch data. | 39 // with the contents of |file_path| available through the launch data. |
| 40 void LaunchPlatformAppWithPath(Profile* profile, | 40 void LaunchPlatformAppWithPath(Profile* profile, |
| 41 const extensions::Extension* extension, | 41 const extensions::Extension* extension, |
| 42 const base::FilePath& file_path); | 42 const base::FilePath& file_path); |
| 43 | 43 |
| 44 // Launches the platform app |extension| with the specific |action_data|. | |
| 45 void LaunchPlatformAppWithAction(Profile* profile, | |
| 46 const extensions::Extension* extension, | |
| 47 extensions::ActionData action_data); | |
|
Daniel Erat
2016/08/05 23:36:45
make this also take an optional const base::FilePa
jdufault
2016/08/10 22:01:17
Done.
| |
| 48 | |
| 44 // Launches the platform app |extension|. |source| tells us how the app is | 49 // Launches the platform app |extension|. |source| tells us how the app is |
| 45 // launched. | 50 // launched. |
| 46 void LaunchPlatformApp(Profile* profile, | 51 void LaunchPlatformApp(Profile* profile, |
| 47 const extensions::Extension* extension, | 52 const extensions::Extension* extension, |
| 48 extensions::AppLaunchSource source); | 53 extensions::AppLaunchSource source); |
| 49 | 54 |
| 50 // Launches the platform app |extension| with |handler_id| and the contents of | 55 // Launches the platform app |extension| with |handler_id| and the contents of |
| 51 // |file_paths| available through the launch data. |handler_id| corresponds to | 56 // |file_paths| available through the launch data. |handler_id| corresponds to |
| 52 // the id of the file_handlers item in the manifest that resulted in a match | 57 // the id of the file_handlers item in the manifest that resulted in a match |
| 53 // that triggered this launch. | 58 // that triggered this launch. |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 66 const std::string& handler_id, | 71 const std::string& handler_id, |
| 67 const GURL& url, | 72 const GURL& url, |
| 68 const GURL& referrer_url); | 73 const GURL& referrer_url); |
| 69 | 74 |
| 70 void RestartPlatformApp(Profile* profile, | 75 void RestartPlatformApp(Profile* profile, |
| 71 const extensions::Extension* extension); | 76 const extensions::Extension* extension); |
| 72 | 77 |
| 73 } // namespace apps | 78 } // namespace apps |
| 74 | 79 |
| 75 #endif // APPS_LAUNCHER_H_ | 80 #endif // APPS_LAUNCHER_H_ |
| OLD | NEW |