OOP PDF: Allow print preview to handle key events when the plugin has focus
commit85b3edeac5068d95fc4ebeea92f1cbc1c0b27a3f
authorraymes <raymes@chromium.org>
Tue, 3 Feb 2015 23:40:46 +0000 (3 15:40 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 3 Feb 2015 23:43:24 +0000 (3 23:43 +0000)
tree2922c13e069c24228b441fdb85a77026f09803e6
parentb5197d32a840efc4be760c99e2308b10cd466336
OOP PDF: Allow print preview to handle key events when the plugin has focus

Since the plugin is inside an iframe, key events that are sent to it when it is focussed do not propagate to the parent frame. We pass these on to the parent frame in the same way that we pass key events to the plugin when they are not handled by the print preview UI.

BUG=449903

Review URL: https://codereview.chromium.org/885813003

Cr-Commit-Position: refs/heads/master@{#314438}
chrome/browser/resources/pdf/pdf.js
chrome/browser/resources/pdf/pdf_scripting_api.js
chrome/browser/resources/print_preview/previewarea/preview_area.js
chrome/browser/resources/print_preview/print_preview.js