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

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: Nits 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..bd3f78f9a579f89f55cddf315c9a1916c15d507d 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 the <code>ActionType</code> this app was
+ // launched with. This is null if the app was not launched with a specific
+ // action intent.
+ 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