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

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

Issue 260073009: [dom_distiller] Add support for incremental viewer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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: components/dom_distiller/content/resources/dom_distiller_viewer.js
diff --git a/components/dom_distiller/content/resources/dom_distiller_viewer.js b/components/dom_distiller/content/resources/dom_distiller_viewer.js
new file mode 100644
index 0000000000000000000000000000000000000000..854e1d0152a6486791b3b643fbfaec78379e4836
--- /dev/null
+++ b/components/dom_distiller/content/resources/dom_distiller_viewer.js
@@ -0,0 +1,14 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+function addToPage(html) {
+ var div = document.createElement('div');
+ div.innerHTML = html;
+ document.getElementById('content').appendChild(div);
+}
+
+function showLoadingIndicator(isLastPage) {
+ document.getElementById('loadingIndicator').className =
+ isLastPage ? 'hidden' : 'visible';
+}

Powered by Google App Engine
This is Rietveld 408576698