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..ef0f6e0cf89f4ff49b0e0af5fb0f559e635635cc 100644 |
| --- a/extensions/common/api/app_runtime.idl |
| +++ b/extensions/common/api/app_runtime.idl |
| @@ -38,6 +38,21 @@ namespace app.runtime { |
| installed_notification |
| }; |
| + // An app can be launched with a specific action in mind, for example, to |
| + // create a new note. If action data is present, a special UI should be shown |
|
Devlin
2016/08/11 20:51:21
Do we need to dictate that a "special UI should be
jdufault
2016/08/12 18:56:55
Done.
|
| + // that is optimized for the flow. The type of action the app was launched |
| + // with is available inside of the |action_data| field from the LaunchData |
|
Devlin
2016/08/11 20:51:21
actionData
jdufault
2016/08/12 18:56:55
Done.
|
| + // instance. |
| + enum ActionType { |
| + // The user wants to quickly take a new note. |
| + new_note |
| + }; |
| + |
| + // Specifies the <code>ActionType</code> the app was launched with. |
|
Devlin
2016/08/11 20:51:21
This should go over actionType, rather than here.
jdufault
2016/08/12 18:56:55
Done.
|
| + dictionary ActionData { |
| + ActionType action_type; |
|
Devlin
2016/08/11 20:51:21
actionType
jdufault
2016/08/12 18:56:55
Done.
|
| + }; |
| + |
| // 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 +86,11 @@ namespace app.runtime { |
| // Where the app is launched from. |
| LaunchSource? source; |
| + |
| + // Contains data that specifies what type of action this app was launched |
| + // with. This is null if the app was not launched with a specific action in |
| + // mind. |
| + ActionData? action_data; |
|
Devlin
2016/08/11 20:51:21
actionData
jdufault
2016/08/12 18:56:55
Done.
|
| }; |
| // This object specifies details and operations to perform on the embedding |