OLD | NEW |
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 Loading... |
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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 | 360 |
358 // Payload data for file transfer cancel response. | 361 // Payload data for file transfer cancel response. |
359 dictionary FileTransferCancelStatus { | 362 dictionary FileTransferCancelStatus { |
360 // URL of file that is being transfered. | 363 // URL of file that is being transfered. |
361 DOMString fileUrl; | 364 DOMString fileUrl; |
362 | 365 |
363 // True if ongoing transfer operation was found and canceled. | 366 // True if ongoing transfer operation was found and canceled. |
364 boolean canceled; | 367 boolean canceled; |
365 }; | 368 }; |
366 | 369 |
| 370 // Detailed information of change. |
| 371 dictionary FileChange { |
| 372 // URL of changed file (or directory). |
| 373 DOMString url; |
| 374 |
| 375 // Type of change, which may be multiple. |
| 376 ChangeType[] changes; |
| 377 }; |
| 378 |
367 // Directory change notification details. | 379 // Directory change notification details. |
368 dictionary FileWatchEvent { | 380 dictionary FileWatchEvent { |
369 // Specifies type of event that is raised. | 381 // Specifies type of event that is raised. |
370 FileWatchEventType eventType; | 382 FileWatchEventType eventType; |
371 | 383 |
372 // An Entry object which represents a changed directory. The conversion into a | 384 // An Entry object which represents a changed directory. The conversion into a |
373 // kind of FileEntry object is done in | 385 // kind of FileEntry object is done in |
374 // file_browser_handler_custom_bindings.cc. For filesystem API's Entry | 386 // file_browser_handler_custom_bindings.cc. For filesystem API's Entry |
375 // interface, see <a | 387 // interface, see <a |
376 // href='http://www.w3.org/TR/file-system-api/#the-entry-interface'>The Entry | 388 // href='http://www.w3.org/TR/file-system-api/#the-entry-interface'>The Entry |
377 // interface</a>. | 389 // interface</a>. |
378 [instanceOf=Entry] object entry; | 390 [instanceOf=Entry] object entry; |
| 391 |
| 392 // Detailed change information of change. It would be null if the detailed |
| 393 // information is not available. |
| 394 FileChange[]? changedFiles; |
379 }; | 395 }; |
380 | 396 |
381 dictionary Preferences { | 397 dictionary Preferences { |
382 boolean driveEnabled; | 398 boolean driveEnabled; |
383 boolean cellularDisabled; | 399 boolean cellularDisabled; |
384 boolean hostedFilesDisabled; | 400 boolean hostedFilesDisabled; |
385 boolean use24hourClock; | 401 boolean use24hourClock; |
386 boolean allowRedeemOffers; | 402 boolean allowRedeemOffers; |
387 }; | 403 }; |
388 | 404 |
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
798 static void onDriveSyncError(DriveSyncErrorEvent event); | 814 static void onDriveSyncError(DriveSyncErrorEvent event); |
799 | 815 |
800 // Dispatched when a profile is added. | 816 // Dispatched when a profile is added. |
801 static void onProfileAdded(); | 817 static void onProfileAdded(); |
802 | 818 |
803 // Dispatched when any window moves another desktop. | 819 // Dispatched when any window moves another desktop. |
804 // TODO(hirono): Add information which window is moved. | 820 // TODO(hirono): Add information which window is moved. |
805 static void onDesktopChanged(); | 821 static void onDesktopChanged(); |
806 }; | 822 }; |
807 }; | 823 }; |
OLD | NEW |