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

Unified Diff: chrome/common/extensions/api/file_system.idl

Issue 1135383002: Add the chrome.fileSystem.onVolumeListChanged event. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleaned up. 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/api/file_system.idl
diff --git a/chrome/common/extensions/api/file_system.idl b/chrome/common/extensions/api/file_system.idl
index a55a0b37d01c71536e4f7ff4a608fb272dd00933..6ea554a663153f884ead0320e2a15960e1e927f3 100644
--- a/chrome/common/extensions/api/file_system.idl
+++ b/chrome/common/extensions/api/file_system.idl
@@ -105,6 +105,11 @@ namespace fileSystem {
ChildChangeType type;
};
+ // Event notifying about an inserted or a removed volume from the system.
+ dictionary VolumeListChangedEvent {
+ Volume[] volumes;
+ };
+
// Event notifying about a change in a file or a directory, including its
// contents.
[nodoc] dictionary EntryChangedEvent {
@@ -217,6 +222,9 @@ namespace fileSystem {
};
interface Events {
+ // Called when a list of available volumes is changed.
+ static void onVolumeListChanged(VolumeListChangedEvent event);
+
// Called when an observed entry is changed.
[nodoc] static void onEntryChanged(EntryChangedEvent event);

Powered by Google App Engine
This is Rietveld 408576698