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

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

Issue 343073003: Files.app: Provide detailed change information on onDirectoryChanged event (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed the comments Created 6 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 | Annotate | Revision Log
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 // fileBrowserPrivate API. 5 // fileBrowserPrivate 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_browser_pr ivate_api_functions.h"] 8 implemented_in="chrome/browser/chromeos/extensions/file_manager/file_browser_pr ivate_api_functions.h"]
9 namespace fileBrowserPrivate { 9 namespace fileBrowserPrivate {
10 // Type of the mounted volume. 10 // Type of the mounted volume.
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // "success" is fired after all entries are copied. 68 // "success" is fired after all entries are copied.
69 success, 69 success,
70 70
71 // "error" is fired when an error occurs. 71 // "error" is fired when an error occurs.
72 error 72 error
73 }; 73 };
74 74
75 // Specifies type of event that is raised. 75 // Specifies type of event that is raised.
76 enum FileWatchEventType { changed, error }; 76 enum FileWatchEventType { changed, error };
77 77
78 // Specifies type of change in file watch event.
79 enum ChangeType { add_or_update, delete };
80
78 // The type of entry that is needed. Default to ALL. 81 // The type of entry that is needed. Default to ALL.
79 enum SearchType { EXCLUDE_DIRECTORIES, SHARED_WITH_ME, OFFLINE, ALL }; 82 enum SearchType { EXCLUDE_DIRECTORIES, SHARED_WITH_ME, OFFLINE, ALL };
80 83
81 // Zooming mode. 84 // Zooming mode.
82 enum ZoomOperationType { in, out, reset }; 85 enum ZoomOperationType { in, out, reset };
83 86
84 // Specifies how to open inspector. 87 // Specifies how to open inspector.
85 enum InspectionType { 88 enum InspectionType {
86 // Open inspector for foreground page. 89 // Open inspector for foreground page.
87 normal, 90 normal,
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 357
355 // Payload data for file transfer cancel response. 358 // Payload data for file transfer cancel response.
356 dictionary FileTransferCancelStatus { 359 dictionary FileTransferCancelStatus {
357 // URL of file that is being transfered. 360 // URL of file that is being transfered.
358 DOMString fileUrl; 361 DOMString fileUrl;
359 362
360 // True if ongoing transfer operation was found and canceled. 363 // True if ongoing transfer operation was found and canceled.
361 boolean canceled; 364 boolean canceled;
362 }; 365 };
363 366
367 // Detailed information of change.
368 dictionary FileChange {
369 // URL of changed file (or directory).
370 DOMString url;
371
372 // Type of change, which may be multiple.
373 ChangeType[] changes;
374 };
375
364 // Directory change notification details. 376 // Directory change notification details.
365 dictionary FileWatchEvent { 377 dictionary FileWatchEvent {
366 // Specifies type of event that is raised. 378 // Specifies type of event that is raised.
367 FileWatchEventType eventType; 379 FileWatchEventType eventType;
368 380
369 // An Entry object which represents a changed directory. The conversion into a 381 // An Entry object which represents a changed directory. The conversion into a
370 // kind of FileEntry object is done in 382 // kind of FileEntry object is done in
371 // file_browser_handler_custom_bindings.cc. For filesystem API's Entry 383 // file_browser_handler_custom_bindings.cc. For filesystem API's Entry
372 // interface, see <a 384 // interface, see <a
373 // href='http://www.w3.org/TR/file-system-api/#the-entry-interface'>The Entry 385 // href='http://www.w3.org/TR/file-system-api/#the-entry-interface'>The Entry
374 // interface</a>. 386 // interface</a>.
375 [instanceOf=Entry] object entry; 387 [instanceOf=Entry] object entry;
388
389 // Detailed change information of change. It would be null if the detailed
390 // information is not available.
391 FileChange[]? changedFiles;
376 }; 392 };
377 393
378 dictionary Preferences { 394 dictionary Preferences {
379 boolean driveEnabled; 395 boolean driveEnabled;
380 boolean cellularDisabled; 396 boolean cellularDisabled;
381 boolean hostedFilesDisabled; 397 boolean hostedFilesDisabled;
382 boolean use24hourClock; 398 boolean use24hourClock;
383 boolean allowRedeemOffers; 399 boolean allowRedeemOffers;
384 }; 400 };
385 401
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
797 static void onDriveSyncError(DriveSyncErrorEvent event); 813 static void onDriveSyncError(DriveSyncErrorEvent event);
798 814
799 // Dispatched when a profile is added. 815 // Dispatched when a profile is added.
800 static void onProfileAdded(); 816 static void onProfileAdded();
801 817
802 // Dispatched when any window moves another desktop. 818 // Dispatched when any window moves another desktop.
803 // TODO(hirono): Add information which window is moved. 819 // TODO(hirono): Add information which window is moved.
804 static void onDesktopChanged(); 820 static void onDesktopChanged();
805 }; 821 };
806 }; 822 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698