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

Unified Diff: components/dom_distiller/webui/resources/dom_distiller_viewer.js

Issue 105723002: Add the scheme chrome-distiller:// and hook up data source. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years 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: components/dom_distiller/webui/resources/dom_distiller_viewer.js
diff --git a/chrome/common/extensions/api/test_presubmit/valid_json.json b/components/dom_distiller/webui/resources/dom_distiller_viewer.js
similarity index 56%
copy from chrome/common/extensions/api/test_presubmit/valid_json.json
copy to components/dom_distiller/webui/resources/dom_distiller_viewer.js
index 615ea28d4bea44520eaacd7834304f5d01c3a639..f0bca1a8ae8ee98841468eb6ef08e934a0c2de35 100644
--- a/chrome/common/extensions/api/test_presubmit/valid_json.json
+++ b/components/dom_distiller/webui/resources/dom_distiller_viewer.js
@@ -2,10 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Tests a valid IDL file.
-
-// This is a comment.
-{
- "key1": ["value1", "value2"],
- "key2": 3 // This is an inline comment.
+var domDistillerViewer = {
+ onReceivedTitle: function(title) {
+ document.getElementById('viewerTitle').innerText = title;
+ },
}

Powered by Google App Engine
This is Rietveld 408576698