Chromium Code Reviews| Index: extensions/common/api/app_runtime.idl |
| diff --git a/extensions/common/api/app_runtime.idl b/extensions/common/api/app_runtime.idl |
| index 4a848f808ec6bcc39b5faec38c43eab0a9d06726..901c1ad8c143330504a0e133750c438f0aa6e975 100644 |
| --- a/extensions/common/api/app_runtime.idl |
| +++ b/extensions/common/api/app_runtime.idl |
| @@ -38,6 +38,20 @@ namespace app.runtime { |
| installed_notification |
| }; |
| + // An app can be launched with a specific action in mind, for example, to |
| + // create a new note. The type of action the app was launched |
| + // with is available inside of the |actionData| field from the LaunchData |
| + // instance. |
| + enum ActionType { |
| + // The user wants to quickly take a new note. |
| + new_note |
| + }; |
| + |
| + // Optional data that includes action-specific launch information. |
| + dictionary ActionData { |
| + ActionType actionType; |
| + }; |
| + |
| // Optional data for the launch. Either <code>items</code>, or |
| // the pair (<code>url, referrerUrl</code>) can be present for any given |
| // launch. |
| @@ -71,6 +85,11 @@ namespace app.runtime { |
| // Where the app is launched from. |
| LaunchSource? source; |
| + |
| + // Contains data that specifies what the <code>ActionType</code> this app |
|
Devlin
2016/08/16 00:20:09
remove "what"
jdufault
2016/08/16 21:30:57
Done.
|
| + // was launched with. This is null if the app was not launched with a |
| + // specific action in mind. |
|
Devlin
2016/08/16 00:20:09
"in mind" is kind of weird phrasing here. Maybe s
jdufault
2016/08/16 21:30:57
Done.
|
| + ActionData? actionData; |
| }; |
| // This object specifies details and operations to perform on the embedding |