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

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: Keep only Verb enum in file_manager_private.js. 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 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 };
194
187 // A file task represents an action that the file manager can perform over the 195 // A file task represents an action that the file manager can perform over the
188 // currently selected files. See 196 // currently selected files. See
189 // chrome/browser/chromeos/extensions/file_manager/file_tasks.h for details 197 // chrome/browser/chromeos/extensions/file_manager/file_tasks.h for details
190 // about how file tasks are handled. 198 // about how file tasks are handled.
191 dictionary FileTask { 199 dictionary FileTask {
192 // The unique identifier of the task. 200 // The unique identifier of the task.
193 DOMString taskId; 201 DOMString taskId;
194 202
195 // Task title (ex. App name). 203 // Task title (ex. App name).
196 DOMString title; 204 DOMString title;
197 205
206 // Task verb (ex. Open With). Can be empty string in case of no verb
Devlin 2016/05/20 21:08:16 It can't be empty anymore, right? It could just b
cmihail 2016/05/23 02:46:13 Done. Though instead of empy, I did use Verb::VERB
207 // (i.e. for FileBrowserHandler).
208 Verb? verb;
209
198 // Task icon url (from chrome://extension-icon/...) 210 // Task icon url (from chrome://extension-icon/...)
199 DOMString iconUrl; 211 DOMString iconUrl;
200 212
201 // True if this task is a default task for the selected files. 213 // True if this task is a default task for the selected files.
202 boolean isDefault; 214 boolean isDefault;
203 215
204 // True if this task is from generic file handler. Generic file handler is a 216 // 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: ["*"], 217 // file handler which handles any type of files (e.g. extensions: ["*"],
206 // types: ["*/*"]). Partial wild card (e.g. types: ["image/*"]) is not 218 // types: ["*/*"]). Partial wild card (e.g. types: ["image/*"]) is not
207 // generic file handler. 219 // generic file handler.
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after
969 981
970 static void onPreferencesChanged(); 982 static void onPreferencesChanged();
971 983
972 static void onDriveConnectionStatusChanged(); 984 static void onDriveConnectionStatusChanged();
973 985
974 static void onDeviceChanged(DeviceEvent event); 986 static void onDeviceChanged(DeviceEvent event);
975 987
976 static void onDriveSyncError(DriveSyncErrorEvent event); 988 static void onDriveSyncError(DriveSyncErrorEvent event);
977 }; 989 };
978 }; 990 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698