summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-17 20:03:38 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-17 20:03:38 +0000
commitac0baca7da455868d80d1b1322d8dff1edf66288 (patch)
tree8dcdfe8b34c00362808cfca59013bf9e01a9a7f2 /chrome/browser/resources
parentebd286c9b8830a393aeceeea303335cf8440db6a (diff)
downloadchromium_src-ac0baca7da455868d80d1b1322d8dff1edf66288.zip
chromium_src-ac0baca7da455868d80d1b1322d8dff1edf66288.tar.gz
chromium_src-ac0baca7da455868d80d1b1322d8dff1edf66288.tar.bz2
Print Preview: Hook up the print button to initiate a normal print operation.
BUG=none TEST=Enable print preview on Mac, make sure print button in print preview works. Review URL: http://codereview.chromium.org/6479004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75302 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources')
-rw-r--r--chrome/browser/resources/print_preview.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/resources/print_preview.js b/chrome/browser/resources/print_preview.js
index 2856989..6c3aee2 100644
--- a/chrome/browser/resources/print_preview.js
+++ b/chrome/browser/resources/print_preview.js
@@ -9,6 +9,9 @@ var hasPDFPlugin = true;
* 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();
});