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

Unified 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: rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/extensions/file_manager/event_router.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/file_browser_private.idl
diff --git a/chrome/common/extensions/api/file_browser_private.idl b/chrome/common/extensions/api/file_browser_private.idl
index 5cd3c4c00466734bfce8fd3fc85df25a2e962464..173d16445fd0ac3841a271b31908e3ea93cee1e6 100644
--- a/chrome/common/extensions/api/file_browser_private.idl
+++ b/chrome/common/extensions/api/file_browser_private.idl
@@ -75,6 +75,9 @@ enum CopyProgressStatusType {
// Specifies type of event that is raised.
enum FileWatchEventType { changed, error };
+// Specifies type of change in file watch event.
+enum ChangeType { add_or_update, delete };
+
// The type of entry that is needed. Default to ALL.
enum SearchType { EXCLUDE_DIRECTORIES, SHARED_WITH_ME, OFFLINE, ALL };
@@ -364,6 +367,15 @@ dictionary FileTransferCancelStatus {
boolean canceled;
};
+// Detailed information of change.
+dictionary FileChange {
+ // URL of changed file (or directory).
+ DOMString url;
+
+ // Type of change, which may be multiple.
+ ChangeType[] changes;
+};
+
// Directory change notification details.
dictionary FileWatchEvent {
// Specifies type of event that is raised.
@@ -376,6 +388,10 @@ dictionary FileWatchEvent {
// href='http://www.w3.org/TR/file-system-api/#the-entry-interface'>The Entry
// interface</a>.
[instanceOf=Entry] object entry;
+
+ // Detailed change information of change. It would be null if the detailed
+ // information is not available.
+ FileChange[]? changedFiles;
};
dictionary Preferences {
« no previous file with comments | « chrome/browser/chromeos/extensions/file_manager/event_router.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698