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

Unified Diff: chrome/browser/resources/print_preview.js

Issue 6899051: Print Preview: Get rid of the loading div on failure. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/print_preview.js
===================================================================
--- chrome/browser/resources/print_preview.js (revision 82758)
+++ chrome/browser/resources/print_preview.js (working copy)
@@ -307,6 +307,7 @@
* Asks the browser to generate a preview PDF based on current print settings.
*/
function requestPrintPreview() {
+ $('dancing-dots').classList.remove('hidden');
$('dancing-dots').classList.remove('invisible');
chrome.send('getPreview', [getSettingsJSON()]);
}
@@ -360,6 +361,7 @@
* Called from PrintPreviewMessageHandler::OnPrintPreviewFailed().
*/
function printPreviewFailed() {
+ $('dancing-dots').classList.add('hidden');
$('preview-failed').classList.remove('hidden');
var pdfViewer = $('pdf-viewer');
@@ -441,6 +443,7 @@
if (!pdfPlugin.onload) {
hasCompatiblePDFPlugin = false;
mainView.removeChild(pdfPlugin);
+ $('dancing-dots').classList.add('hidden');
$('no-plugin').classList.remove('hidden');
return;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698