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

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..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
« no previous file with comments | « extensions/browser/api/app_runtime/app_runtime_api.cc ('k') | extensions/shell/browser/shell_extension_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698