| 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..08542f1d80eab6542c471843bc4fafaadc2a009e
|
| --- /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').style.display =
|
| + isLastPage ? 'none' : 'block';
|
| +}
|
|
|