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

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

Issue 6479004: Print Preview: Hook up the print button to initiate a normal print operation.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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.js
===================================================================
--- chrome/browser/resources/print_preview.js (revision 74317)
+++ chrome/browser/resources/print_preview.js (working copy)
@@ -9,6 +9,9 @@
* Window onload handler, sets up the page.
*/
function load() {
+ $('print-button').addEventListener('click', function(e) {
+ chrome.send('print');
+ });
$('cancel-button').addEventListener('click', function(e) {
window.close();
});

Powered by Google App Engine
This is Rietveld 408576698