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

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

Issue 8425008: PrintPreview:[MAC] Added "Open PDF In Preview" option to open the pdf in native preview app. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Added a check to fix the TestErrorMessage unit test Created 9 years, 1 month 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/app/generated_resources.grd ('k') | chrome/browser/resources/print_preview/print_preview.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/print_preview/preview_area.js
diff --git a/chrome/browser/resources/print_preview/preview_area.js b/chrome/browser/resources/print_preview/preview_area.js
index 3a86cefac7d2ab132693e655127a022bd3ab005d..37d665c4fc7d3c0bba912f2ae1e18f7bc2aba12f 100644
--- a/chrome/browser/resources/print_preview/preview_area.js
+++ b/chrome/browser/resources/print_preview/preview_area.js
@@ -195,6 +195,14 @@ cr.define('print_preview', function() {
},
/**
+ * Clears the custom message with dots animation.
+ */
+ clearCustomMessageWithDots: function() {
+ this.customMessageWithDots_.innerHTML = '';
+ this.customMessageWithDots_.hidden = true;
+ },
+
+ /**
* Display an error message in the center of the preview area.
* @param {string} errorMessage The error message to be displayed.
*/
@@ -227,6 +235,8 @@ cr.define('print_preview', function() {
this.errorButton.hidden = false;
$('system-dialog-throbber').hidden = true;
$('native-print-dialog-throbber').hidden = true;
+ if (cr.isMac)
+ $('open-preview-app-throbber').hidden = true;
this.displayErrorMessageAndNotify(errorMessage);
}
};
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/resources/print_preview/print_preview.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698