| 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 // Use the <code>chrome.fileSystemProvider</code> API to create file systems, | 5 // Use the <code>chrome.fileSystemProvider</code> API to create file systems, |
| 6 // that can be accessible from the file manager on Chrome OS. | 6 // that can be accessible from the file manager on Chrome OS. |
| 7 [platforms=("chromeos"), | 7 [platforms=("chromeos"), |
| 8 implemented_in="chrome/browser/chromeos/extensions/file_system_provider/file_sy
stem_provider_api.h"] | 8 implemented_in="chrome/browser/chromeos/extensions/file_system_provider/file_sy
stem_provider_api.h"] |
| 9 namespace fileSystemProvider { | 9 namespace fileSystemProvider { |
| 10 // Error codes used by providing extensions in response to requests. For | 10 // Error codes used by providing extensions in response to requests. For |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 }; | 332 }; |
| 333 | 333 |
| 334 // Options for the <code>onUnobserveEntryRequested()</code> event. | 334 // Options for the <code>onUnobserveEntryRequested()</code> event. |
| 335 dictionary UnobserveEntryRequestedOptions { | 335 dictionary UnobserveEntryRequestedOptions { |
| 336 // The identifier of the file system related to this operation. | 336 // The identifier of the file system related to this operation. |
| 337 DOMString fileSystemId; | 337 DOMString fileSystemId; |
| 338 | 338 |
| 339 // The unique identifier of this request. | 339 // The unique identifier of this request. |
| 340 long requestId; | 340 long requestId; |
| 341 | 341 |
| 342 // Mode of the observed entry. |
| 343 boolean recursive; |
| 344 |
| 342 // The path of the entry to be not observed anymore. | 345 // The path of the entry to be not observed anymore. |
| 343 DOMString entryPath; | 346 DOMString entryPath; |
| 344 }; | 347 }; |
| 345 | 348 |
| 346 // Information about a change happened to an entry within the observed | 349 // Information about a change happened to an entry within the observed |
| 347 // directory. | 350 // directory (including the entry itself). |
| 348 dictionary ChildChange { | 351 dictionary Change { |
| 349 // The path of the changed entry. | 352 // The path of the changed entry. |
| 350 DOMString entryPath; | 353 DOMString entryPath; |
| 351 | 354 |
| 352 // The type of the change which happened to the entry. | 355 // The type of the change which happened to the entry. |
| 353 ChangeType changeType; | 356 ChangeType changeType; |
| 354 }; | 357 }; |
| 355 | 358 |
| 356 // Options for the <code>Notify()</code> method. | 359 // Options for the <code>Notify()</code> method. |
| 357 dictionary NotifyOptions { | 360 dictionary NotifyOptions { |
| 358 // The identifier of the file system related to this change. | 361 // The identifier of the file system related to this change. |
| 359 DOMString fileSystemId; | 362 DOMString fileSystemId; |
| 360 | 363 |
| 361 // The path of the observed entry. | 364 // The path of the observed entry. |
| 362 DOMString observedPath; | 365 DOMString observedPath; |
| 363 | 366 |
| 367 // Mode of the observed entry. |
| 368 boolean recursive; |
| 369 |
| 364 // The type of the change which happened to the observed entry. If it is | 370 // The type of the change which happened to the observed entry. If it is |
| 365 // DELETED, then the observed entry will be automatically removed from the | 371 // DELETED, then the observed entry will be automatically removed from the |
| 366 // list of observed entries. | 372 // list of observed entries. |
| 367 ChangeType changeType; | 373 ChangeType changeType; |
| 368 | 374 |
| 369 // List of changes to entries within the observed directory. | 375 // List of changes to entries within the observed directory (including the |
| 370 ChildChange[]? childChanges; | 376 // entry itself) |
| 377 Change[]? changes; |
| 371 | 378 |
| 372 // Tag for the notification. Required if the file system was mounted with | 379 // Tag for the notification. Required if the file system was mounted with |
| 373 // the <code>supportsNotifyTag</code> option. Note, that this flag is | 380 // the <code>supportsNotifyTag</code> option. Note, that this flag is |
| 374 // necessary to provide notifications about changes which changed even | 381 // necessary to provide notifications about changes which changed even |
| 375 // when the system was shutdown. | 382 // when the system was shutdown. |
| 376 DOMString? tag; | 383 DOMString? tag; |
| 377 }; | 384 }; |
| 378 | 385 |
| 379 // Callback to receive the result of mount() function. | 386 // Callback to receive the result of mount() function. |
| 380 callback MountCallback = void([nodoc, instanceOf=DOMError] object error); | 387 callback MountCallback = void([nodoc, instanceOf=DOMError] object error); |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 587 | 594 |
| 588 // Raised when the entry should no longer be observed. If an error occurs, | 595 // Raised when the entry should no longer be observed. If an error occurs, |
| 589 // then <code>errorCallback</code> must be called. | 596 // then <code>errorCallback</code> must be called. |
| 590 [maxListeners=1, nodoc] static void onUnobserveEntryRequested( | 597 [maxListeners=1, nodoc] static void onUnobserveEntryRequested( |
| 591 UnobserveEntryRequestedOptions options, | 598 UnobserveEntryRequestedOptions options, |
| 592 ProviderSuccessCallback successCallback, | 599 ProviderSuccessCallback successCallback, |
| 593 ProviderErrorCallback errorCallback); | 600 ProviderErrorCallback errorCallback); |
| 594 }; | 601 }; |
| 595 }; | 602 }; |
| 596 | 603 |
| OLD | NEW |