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

Side by Side Diff: chrome/common/extensions/api/file_manager_private.idl

Issue 1137383002: Show the eject button only for removabled and file handlers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplified. Created 5 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.
hirono 2015/05/14 10:43:09 Please update third_party/closure_compiler/externs
mtomasz 2015/05/15 02:03:37 Done.
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.
11 enum VolumeType { drive, downloads, removable, archive, provided, mtp, 11 enum VolumeType { drive, downloads, removable, archive, provided, mtp,
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 shared, 167 shared,
168 externalFileUrl 168 externalFileUrl
169 }; 169 };
170 170
171 // Entry property visibility for setEntryTag(); 171 // Entry property visibility for setEntryTag();
172 enum EntryTagVisibility { 172 enum EntryTagVisibility {
173 private, 173 private,
174 public 174 public
175 }; 175 };
176 176
177 // Source of the volume data.
178 enum Source {
179 file,
180 device,
181 network,
182 system
183 };
184
177 // A file task represents an action that the file manager can perform over the 185 // A file task represents an action that the file manager can perform over the
178 // currently selected files. See 186 // currently selected files. See
179 // chrome/browser/chromeos/extensions/file_manager/file_tasks.h for details 187 // chrome/browser/chromeos/extensions/file_manager/file_tasks.h for details
180 // about how file tasks are handled. 188 // about how file tasks are handled.
181 dictionary FileTask { 189 dictionary FileTask {
182 // The unique identifier of the task. 190 // The unique identifier of the task.
183 DOMString taskId; 191 DOMString taskId;
184 192
185 // Task title (ex. App name). 193 // Task title (ex. App name).
186 DOMString title; 194 DOMString title;
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 dictionary VolumeMetadata { 291 dictionary VolumeMetadata {
284 // ID of the disk volume. 292 // ID of the disk volume.
285 DOMString volumeId; 293 DOMString volumeId;
286 294
287 // Id the provided file system (for provided file systems). 295 // Id the provided file system (for provided file systems).
288 DOMString? fileSystemId; 296 DOMString? fileSystemId;
289 297
290 // Extension providing this volume (for provided file systems). 298 // Extension providing this volume (for provided file systems).
291 DOMString? extensionId; 299 DOMString? extensionId;
292 300
301 // Source of the volume's data.
302 Source source;
303
293 // Label of the volume (if available). 304 // Label of the volume (if available).
294 DOMString? volumeLabel; 305 DOMString? volumeLabel;
295 306
296 // Description of the profile where the volume belongs. 307 // Description of the profile where the volume belongs.
297 // TODO(hirono): Remove the property because of the design change of 308 // TODO(hirono): Remove the property because of the design change of
298 // multi-profile support. 309 // multi-profile support.
299 ProfileInfo profile; 310 ProfileInfo profile;
300 311
301 // The path to the mounted device, archive file or network resource. 312 // The path to the mounted device, archive file or network resource.
302 DOMString? sourcePath; 313 DOMString? sourcePath;
(...skipping 10 matching lines...) Expand all
313 324
314 // Whether the device is parent or not (i.e. sdb rather than sdb1). 325 // Whether the device is parent or not (i.e. sdb rather than sdb1).
315 boolean? isParentDevice; 326 boolean? isParentDevice;
316 327
317 // Flag that specifies if volume is mounted in read-only mode. 328 // Flag that specifies if volume is mounted in read-only mode.
318 boolean isReadOnly; 329 boolean isReadOnly;
319 330
320 // Flag that specifies whether the volume contains media. 331 // Flag that specifies whether the volume contains media.
321 boolean hasMedia; 332 boolean hasMedia;
322 333
334 // Flag that specifies whether the volume is configurable.
335 boolean configurable;
336
323 // Additional data about mount, for example, that the filesystem is not 337 // Additional data about mount, for example, that the filesystem is not
324 // supported. 338 // supported.
325 MountCondition? mountCondition; 339 MountCondition? mountCondition;
326 340
327 // Context in which the volume has been mounted. 341 // Context in which the volume has been mounted.
328 MountContext? mountContext; 342 MountContext? mountContext;
329 }; 343 };
330 344
331 // Payload data for mount event. 345 // Payload data for mount event.
332 dictionary MountCompletedEvent { 346 dictionary MountCompletedEvent {
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 DOMString extensionId; 525 DOMString extensionId;
512 526
513 // Name of the providing extension. 527 // Name of the providing extension.
514 DOMString name; 528 DOMString name;
515 529
516 // Whether supports configuration dialog. 530 // Whether supports configuration dialog.
517 boolean configurable; 531 boolean configurable;
518 532
519 // Whether supports mounting multiple instances. 533 // Whether supports mounting multiple instances.
520 boolean multipleMounts; 534 boolean multipleMounts;
521 535
522 // Source of file systems' data. 536 // Source of file systems' data.
523 manifestTypes.FileSystemProviderSource source; 537 manifestTypes.FileSystemProviderSource source;
524 }; 538 };
525 539
526 // Callback that does not take arguments. 540 // Callback that does not take arguments.
527 callback SimpleCallback = void(); 541 callback SimpleCallback = void();
528 542
529 // |result| Boolean result returned by the invoked function. 543 // |result| Boolean result returned by the invoked function.
530 callback BooleanCallback = void(boolean result); 544 callback BooleanCallback = void(boolean result);
531 545
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
922 936
923 static void onPreferencesChanged(); 937 static void onPreferencesChanged();
924 938
925 static void onDriveConnectionStatusChanged(); 939 static void onDriveConnectionStatusChanged();
926 940
927 static void onDeviceChanged(DeviceEvent event); 941 static void onDeviceChanged(DeviceEvent event);
928 942
929 static void onDriveSyncError(DriveSyncErrorEvent event); 943 static void onDriveSyncError(DriveSyncErrorEvent event);
930 }; 944 };
931 }; 945 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698