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 // |file_path| is an optional argument and if present contains any files that | |
Daniel Erat
2016/08/10 22:19:24
nit: s/files/file/ (unless you meant to make this
jdufault
2016/08/10 22:33:35
Done.
| |
46 // the app should open w.r.t. the given action. | |
47 void LaunchPlatformAppWithAction(Profile* profile, | |
48 const extensions::Extension* extension, | |
49 extensions::ActionData action_data, | |
Daniel Erat
2016/08/10 22:19:24
should this be a const reference instead? i'm not
jdufault
2016/08/10 22:33:35
Done.
| |
50 const base::FilePath& file_path); | |
51 | |
44 // Launches the platform app |extension|. |source| tells us how the app is | 52 // Launches the platform app |extension|. |source| tells us how the app is |
45 // launched. | 53 // launched. |
46 void LaunchPlatformApp(Profile* profile, | 54 void LaunchPlatformApp(Profile* profile, |
47 const extensions::Extension* extension, | 55 const extensions::Extension* extension, |
48 extensions::AppLaunchSource source); | 56 extensions::AppLaunchSource source); |
49 | 57 |
50 // Launches the platform app |extension| with |handler_id| and the contents of | 58 // Launches the platform app |extension| with |handler_id| and the contents of |
51 // |file_paths| available through the launch data. |handler_id| corresponds to | 59 // |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 | 60 // the id of the file_handlers item in the manifest that resulted in a match |
53 // that triggered this launch. | 61 // that triggered this launch. |
(...skipping 12 matching lines...) Expand all Loading... | |
66 const std::string& handler_id, | 74 const std::string& handler_id, |
67 const GURL& url, | 75 const GURL& url, |
68 const GURL& referrer_url); | 76 const GURL& referrer_url); |
69 | 77 |
70 void RestartPlatformApp(Profile* profile, | 78 void RestartPlatformApp(Profile* profile, |
71 const extensions::Extension* extension); | 79 const extensions::Extension* extension); |
72 | 80 |
73 } // namespace apps | 81 } // namespace apps |
74 | 82 |
75 #endif // APPS_LAUNCHER_H_ | 83 #endif // APPS_LAUNCHER_H_ |
OLD | NEW |