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

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: fix flaky browser tests Created 9 years, 2 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
Index: chrome/browser/resources/print_preview/print_header.js
===================================================================
--- chrome/browser/resources/print_preview/print_header.js (revision 105666)
+++ chrome/browser/resources/print_preview/print_header.js (working copy)
@@ -51,6 +51,14 @@
},
/**
+ * Enables the cancel button and attaches its keydown event listener.
+ */
+ enableCancelButton: function() {
+ window.onkeydown = onKeyDown;
+ this.cancelButton_.disabled = false;
+ },
+
+ /**
* Disables the cancel button and removes its keydown event listener.
*/
disableCancelButton: function() {

Powered by Google App Engine
This is Rietveld 408576698