Index: chrome/browser/resources/print_preview/print_header.js |
=================================================================== |
--- chrome/browser/resources/print_preview/print_header.js (revision 110055) |
+++ 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 |
*/ |