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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 // The path of the entry to be not observed anymore. | 342 // The path of the entry to be not observed anymore. |
343 DOMString entryPath; | 343 DOMString entryPath; |
hirono
2014/10/24 04:34:54
recursive is needed?
mtomasz
2014/10/24 05:37:50
Good catch. Added. Unfortunately we don't have bro
| |
344 }; | 344 }; |
345 | 345 |
346 // Information about a change happened to an entry within the observed | 346 // Information about a change happened to an entry within the observed |
347 // directory. | 347 // directory (including the entry itself). |
348 dictionary ChildChange { | 348 dictionary Change { |
349 // The path of the changed entry. | 349 // The path of the changed entry. |
350 DOMString entryPath; | 350 DOMString entryPath; |
351 | 351 |
352 // The type of the change which happened to the entry. | 352 // The type of the change which happened to the entry. |
353 ChangeType changeType; | 353 ChangeType changeType; |
354 }; | 354 }; |
355 | 355 |
356 // Options for the <code>Notify()</code> method. | 356 // Options for the <code>Notify()</code> method. |
357 dictionary NotifyOptions { | 357 dictionary NotifyOptions { |
358 // The identifier of the file system related to this change. | 358 // The identifier of the file system related to this change. |
359 DOMString fileSystemId; | 359 DOMString fileSystemId; |
360 | 360 |
361 // The path of the observed entry. | 361 // The path of the observed entry. |
362 DOMString observedPath; | 362 DOMString observedPath; |
hirono
2014/10/24 04:34:54
Now we cannot identify an observer by using observ
mtomasz
2014/10/24 05:37:50
Right. I'd like to do it separately, after committ
| |
363 | 363 |
364 // Mode of the observed entry. | |
365 boolean recursive; | |
366 | |
364 // The type of the change which happened to the observed entry. If it is | 367 // 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 | 368 // DELETED, then the observed entry will be automatically removed from the |
366 // list of observed entries. | 369 // list of observed entries. |
367 ChangeType changeType; | 370 ChangeType changeType; |
368 | 371 |
369 // List of changes to entries within the observed directory. | 372 // List of changes to entries within the observed directory (including the |
370 ChildChange[]? childChanges; | 373 // entry itself) |
374 Change[]? changes; | |
371 | 375 |
372 // Tag for the notification. Required if the file system was mounted with | 376 // Tag for the notification. Required if the file system was mounted with |
373 // the <code>supportsNotifyTag</code> option. Note, that this flag is | 377 // the <code>supportsNotifyTag</code> option. Note, that this flag is |
374 // necessary to provide notifications about changes which changed even | 378 // necessary to provide notifications about changes which changed even |
375 // when the system was shutdown. | 379 // when the system was shutdown. |
376 DOMString? tag; | 380 DOMString? tag; |
377 }; | 381 }; |
378 | 382 |
379 // Callback to receive the result of mount() function. | 383 // Callback to receive the result of mount() function. |
380 callback MountCallback = void([nodoc, instanceOf=DOMError] object error); | 384 callback MountCallback = void([nodoc, instanceOf=DOMError] object error); |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
587 | 591 |
588 // Raised when the entry should no longer be observed. If an error occurs, | 592 // Raised when the entry should no longer be observed. If an error occurs, |
589 // then <code>errorCallback</code> must be called. | 593 // then <code>errorCallback</code> must be called. |
590 [maxListeners=1, nodoc] static void onUnobserveEntryRequested( | 594 [maxListeners=1, nodoc] static void onUnobserveEntryRequested( |
591 UnobserveEntryRequestedOptions options, | 595 UnobserveEntryRequestedOptions options, |
592 ProviderSuccessCallback successCallback, | 596 ProviderSuccessCallback successCallback, |
593 ProviderErrorCallback errorCallback); | 597 ProviderErrorCallback errorCallback); |
594 }; | 598 }; |
595 }; | 599 }; |
596 | 600 |
OLD | NEW |