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

Unified Diff: chrome/common/extensions/api/file_manager_private.idl

Issue 1872223002: Add verbs API to file handlers. Modify the Chrome OS UI so that it displayes the internationalized … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move back to "open-with" for the id of the more actions dialog, as it breaks some browsers tests, a… Created 4 years, 7 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: chrome/common/extensions/api/file_manager_private.idl
diff --git a/chrome/common/extensions/api/file_manager_private.idl b/chrome/common/extensions/api/file_manager_private.idl
index 1f9248643aabee8e8274ca0fe20cb77682eb7c3f..fef52e9315c013a05d6fff747551f23beb21ab54 100644
--- a/chrome/common/extensions/api/file_manager_private.idl
+++ b/chrome/common/extensions/api/file_manager_private.idl
@@ -184,6 +184,15 @@ enum Source {
system
};
+// File handler verbs used to describe the action that an extension performs
+// over a file or directory.
+enum Verb {
+ open_with,
+ add_to,
+ pack_with,
+ share_with
+};
+
// A file task represents an action that the file manager can perform over the
// currently selected files. See
// chrome/browser/chromeos/extensions/file_manager/file_tasks.h for details
@@ -195,6 +204,10 @@ dictionary FileTask {
// Task title (ex. App name).
DOMString title;
+ // The verb that will be used to indicate the action a task performs over
+ // a file (ex. "open_with").
+ Verb? verb;
+
// Task icon url (from chrome://extension-icon/...)
DOMString iconUrl;

Powered by Google App Engine
This is Rietveld 408576698