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

Unified Diff: chrome/browser/resources/sync_internals/sync_node_browser.html

Issue 6531038: [Sync] Split up about:sync html files to be more manageable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed john's comments Created 9 years, 10 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/resources/sync_internals/sync_index.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/sync_internals/sync_node_browser.html
diff --git a/chrome/browser/resources/sync_internals/sync_node_browser.html b/chrome/browser/resources/sync_internals/sync_node_browser.html
new file mode 100644
index 0000000000000000000000000000000000000000..bddc2a054c528370e91505f965aa61c8f6a556d2
--- /dev/null
+++ b/chrome/browser/resources/sync_internals/sync_node_browser.html
@@ -0,0 +1,34 @@
+<script>
+(function() {
+function onLoad() {
+ chrome.sync.getRootNode(updateNodeBrowser);
+}
+
+document.addEventListener("DOMContentLoaded", onLoad, false);
+})();
+
+function updateNodeBrowser(nodeInfo) {
+ var nodeBrowser = document.getElementById('nodeBrowser');
+ nodeInfo.specifics = JSON.stringify(nodeInfo.specifics);
+ jstProcess(new JsEvalContext(nodeInfo), nodeBrowser);
+}
+
+function processNodeLink(link) {
+ var id = link.text;
+ chrome.sync.getNodeById(id, updateNodeBrowser);
+}
+</script>
+<div class="desc"><h2> Node Browser </h2></div>
+<ul id='nodeBrowser'>
+ <li>ID: <span jscontent='id'></span></li>
+ <li>Modification Time: <span jscontent='modificationTime'></span></li>
+ <li>Parent: <a jscontent='parentId' href="#" onclick="processNodeLink(this); return false"></a></li>
+ <li>Is Folder: <span jscontent='isFolder'></span></li>
+ <li>Title: <span jscontent='title'></span></li>
+ <li>Type: <span jscontent='type'></span></li>
+ <li>Specifics: <span jscontent='specifics'></span></li>
+ <li>External ID: <span jscontent='externalId'></span></li>
+ <li>Predecessor: <a jscontent='predecessorId' href="#" onclick="processNodeLink(this); return false"></a></li>
+ <li>Successor: <a jscontent='successorId' href="#" onclick="processNodeLink(this); return false"></a></li>
+ <li>First Child: <a jscontent='firstChildId' href="#" onclick="processNodeLink(this); return false"></a></li>
+</ul>
« no previous file with comments | « chrome/browser/resources/sync_internals/sync_index.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698