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

Unified Diff: chrome/browser/resources/file_manager/js/mock_chrome.js

Issue 8461009: Fixing exit on 'X' icon in Photo Editor (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 1 month 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/resources/file_manager/js/file_manager.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/file_manager/js/mock_chrome.js
diff --git a/chrome/browser/resources/file_manager/js/mock_chrome.js b/chrome/browser/resources/file_manager/js/mock_chrome.js
index d5c71bdfcc079f915f5aabc997b551b85a30e4f3..403a2f81b1cb7532bb9d0223193355e46fc1951c 100644
--- a/chrome/browser/resources/file_manager/js/mock_chrome.js
+++ b/chrome/browser/resources/file_manager/js/mock_chrome.js
@@ -59,6 +59,21 @@ chrome.fileBrowserPrivate = {
},
/**
+ * File system change notification.
+ */
+ onFileChanged: {
+ callbacks: [],
+ addListener: function(cb) { this.callbacks.push(cb) }
+ },
+
+ /**
+ * File watchers.
+ */
+ addFileWatch: function(path, callback) { callback(true) },
+
+ removeFileWatch: function(path, callback) { callback(true) },
+
+ /**
* Returns common tasks for a given list of files.
*/
getFileTasks: function(urlList, callback) {
« no previous file with comments | « chrome/browser/resources/file_manager/js/file_manager.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698