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

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: Initial upload 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..fdb3566db649f6239e420587a7445ec8b4873ca8 100644
--- a/extensions/common/api/app_runtime.idl
+++ b/extensions/common/api/app_runtime.idl
@@ -35,7 +35,22 @@ namespace app.runtime {
kiosk,
chrome_internal,
test,
- installed_notification
+ installed_notification,
+ action
Daniel Erat 2016/08/05 23:36:46 i left a high-level comment on the api proposal ab
jdufault 2016/08/10 22:01:17 I've removed the launch source for the time being,
+ };
+
+ // Enumeration of the different ways notes are launched/created. Possible
+ // other names include 'Action' or 'Workflow'. The idea is to encapsulate all
Daniel Erat 2016/08/05 23:36:46 i don't understand the "possible other names" sent
jdufault 2016/08/10 22:01:17 Blah, this is an accidental change that shouldn't
+ // launch sources where the user wants to complete some specific action /
+ // user-flow.
+ enum ActionType {
+ new_note
+ };
+
+ // Specifies the specific <code>ActionType</code> the app was launched with.
Daniel Erat 2016/08/05 23:36:45 nit: delete "specific" since "specifies" is alread
jdufault 2016/08/10 22:01:17 Done.
+ // This also contains any action-type specific data.
Daniel Erat 2016/08/05 23:36:46 nit: i'd delete this until such data has actually
jdufault 2016/08/10 22:01:17 Done.
+ dictionary ActionData {
+ ActionType action_type;
};
// Optional data for the launch. Either <code>items</code>, or
@@ -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 also contains any action specific data. This is only relevant
Daniel Erat 2016/08/05 23:36:45 nit: the second sentence seems extraneous since it
jdufault 2016/08/10 22:01:17 Done.
+ // if the <code>LaunchSource</code> is equal to <code>action</code>.
+ ActionData? action_data;
};
// This object specifies details and operations to perform on the embedding

Powered by Google App Engine
This is Rietveld 408576698