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

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

Issue 8136027: Print Preview: Make print preview tab modal. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase, no renderer changes 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
Index: chrome/browser/resources/print_preview/print_header.js
===================================================================
--- chrome/browser/resources/print_preview/print_header.js (revision 108195)
+++ chrome/browser/resources/print_preview/print_header.js (working copy)
@@ -53,6 +53,14 @@
},
/**
+ * Enables the cancel button and attaches its keydown event listener.
+ */
+ enableCancelButton: function() {
+ window.onkeydown = onKeyDown;
+ this.cancelButton_.disabled = false;
+ },
+
+ /**
* Executes when a |customEvents.PDF_GENERATION_ERROR| event occurs.
* @private
*/

Powered by Google App Engine
This is Rietveld 408576698