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

Side by Side 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, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // fileManagerPrivate API. 5 // fileManagerPrivate API.
6 // This is a private API used by the file browser of ChromeOS. 6 // This is a private API used by the file browser of ChromeOS.
7 [platforms=("chromeos"), 7 [platforms=("chromeos"),
8 implemented_in="chrome/browser/chromeos/extensions/file_manager/file_manager_pr ivate_api_functions.h"] 8 implemented_in="chrome/browser/chromeos/extensions/file_manager/file_manager_pr ivate_api_functions.h"]
9 namespace fileManagerPrivate { 9 namespace fileManagerPrivate {
10 // Type of the mounted volume. 10 // Type of the mounted volume.
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 }; 177 };
178 178
179 // Source of the volume data. 179 // Source of the volume data.
180 enum Source { 180 enum Source {
181 file, 181 file,
182 device, 182 device,
183 network, 183 network,
184 system 184 system
185 }; 185 };
186 186
187 // File handler verbs used to describe the action that an extension performs
188 // over a file or directory.
189 enum Verb {
190 open_with,
191 add_to,
192 pack_with,
193 share_with
194 };
195
187 // A file task represents an action that the file manager can perform over the 196 // A file task represents an action that the file manager can perform over the
188 // currently selected files. See 197 // currently selected files. See
189 // chrome/browser/chromeos/extensions/file_manager/file_tasks.h for details 198 // chrome/browser/chromeos/extensions/file_manager/file_tasks.h for details
190 // about how file tasks are handled. 199 // about how file tasks are handled.
191 dictionary FileTask { 200 dictionary FileTask {
192 // The unique identifier of the task. 201 // The unique identifier of the task.
193 DOMString taskId; 202 DOMString taskId;
194 203
195 // Task title (ex. App name). 204 // Task title (ex. App name).
196 DOMString title; 205 DOMString title;
197 206
207 // The verb that will be used to indicate the action a task performs over
208 // a file (ex. "open_with").
209 Verb? verb;
210
198 // Task icon url (from chrome://extension-icon/...) 211 // Task icon url (from chrome://extension-icon/...)
199 DOMString iconUrl; 212 DOMString iconUrl;
200 213
201 // True if this task is a default task for the selected files. 214 // True if this task is a default task for the selected files.
202 boolean isDefault; 215 boolean isDefault;
203 216
204 // True if this task is from generic file handler. Generic file handler is a 217 // True if this task is from generic file handler. Generic file handler is a
205 // file handler which handles any type of files (e.g. extensions: ["*"], 218 // file handler which handles any type of files (e.g. extensions: ["*"],
206 // types: ["*/*"]). Partial wild card (e.g. types: ["image/*"]) is not 219 // types: ["*/*"]). Partial wild card (e.g. types: ["image/*"]) is not
207 // generic file handler. 220 // generic file handler.
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after
969 982
970 static void onPreferencesChanged(); 983 static void onPreferencesChanged();
971 984
972 static void onDriveConnectionStatusChanged(); 985 static void onDriveConnectionStatusChanged();
973 986
974 static void onDeviceChanged(DeviceEvent event); 987 static void onDeviceChanged(DeviceEvent event);
975 988
976 static void onDriveSyncError(DriveSyncErrorEvent event); 989 static void onDriveSyncError(DriveSyncErrorEvent event);
977 }; 990 };
978 }; 991 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698