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 |
+ // 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 |
+ // instance. |
+ enum ActionType { |
+ // The user wants to quickly take a new note. |
+ new_note |
+ }; |
+ |
+ // Specifies the <code>ActionType</code> the app was launched with. |
+ dictionary ActionData { |
+ ActionType action_type; |
+ }; |
+ |
// 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; |
}; |
// This object specifies details and operations to perform on the embedding |