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

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

Issue 581913003: PDF Viewer - Add keyboard shortcuts for rotation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | pdf/instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/pdf/pdf.js
diff --git a/chrome/browser/resources/pdf/pdf.js b/chrome/browser/resources/pdf/pdf.js
index 0aa437aef03c7e1747929fe50925367d29164878..45afdadbc662beed9f2df202b98907b25caf40d5 100644
--- a/chrome/browser/resources/pdf/pdf.js
+++ b/chrome/browser/resources/pdf/pdf.js
@@ -258,6 +258,16 @@ PDFViewer.prototype = {
e.preventDefault();
}
return;
+ case 219: // left bracket.
Lei Zhang 2014/09/18 20:41:06 nit: 2 spaces before //
Nikhil 2014/09/19 14:12:47 Done.
+ this.plugin_.postMessage({
+ type: 'rotateCounterclockwise',
+ });
+ return;
+ case 221: // right bracket.
+ this.plugin_.postMessage({
+ type: 'rotateClockwise',
+ });
+ return;
}
},
« no previous file with comments | « no previous file | pdf/instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698