Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Unified Diff: extensions/common/api/app_runtime.idl

Issue 2212303003: Implement app launch changes for app runtime extension proposal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tool-screenshot
Patch Set: Rebase Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698