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

Unified Diff: chrome/browser/resources/chromeos/drive_internals.js

Issue 10821051: gdata: Add File System Contents section to chrome:drive-internals (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 8 years, 5 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/browser/resources/chromeos/drive_internals.js
diff --git a/chrome/browser/resources/chromeos/drive_internals.js b/chrome/browser/resources/chromeos/drive_internals.js
index 1490f922359b1d110be9b6d4e841586fd03ae8fe..fb9f8d3d063b3dc508b940192d1f1d6ab8f1d416 100644
--- a/chrome/browser/resources/chromeos/drive_internals.js
+++ b/chrome/browser/resources/chromeos/drive_internals.js
@@ -44,6 +44,17 @@ function updateGCacheContents(gcacheContents) {
}
/**
+ * Updates the File System Contents section. The function is called from the
+ * C++ side repeatedly with contents of a directory.
+ * @param {string} directoryContentsAsText Pre-formatted string representation
+ * of contents a directory in the file system.
+ */
+function updateFileSystemContents(directoryContentsAsText) {
+ var div = $('file-system-contents');
+ div.appendChild(createElementFromText('pre', directoryContentsAsText));
+}
+
+/**
* Creates an element named |elementName| containing the content |text|.
* @param {string} elementName Name of the new element to be created.
* @param {string} text Text to be contained in the new element.
« no previous file with comments | « chrome/browser/resources/chromeos/drive_internals.html ('k') | chrome/browser/ui/webui/chromeos/drive_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698