Index: chrome/browser/resources/pdf/viewport.js |
diff --git a/chrome/browser/resources/pdf/viewport.js b/chrome/browser/resources/pdf/viewport.js |
index f382b2c6d3e861e6f6ede78db1eca490c14dcc8b..7da0143bacb2290ea475a212026e6b7261c408eb 100644 |
--- a/chrome/browser/resources/pdf/viewport.js |
+++ b/chrome/browser/resources/pdf/viewport.js |
@@ -54,6 +54,14 @@ Viewport.FittingType = { |
}; |
/** |
+ * The increment to scroll a page by in pixels when up/down/left/right arrow |
Lei Zhang
2014/05/28 22:23:54
Does this matter if we are on a hidpi screen?
raymes
2014/05/30 07:10:37
No it shouldn't. All the measurements are in devic
|
+ * keys are pressed. Usually we just let the browser handle scrolling on the |
+ * window when these keys are pressed but in certain cases we need to simulate |
+ * these events. |
+ */ |
+Viewport.SCROLL_INCREMENT = 40; |
+ |
+/** |
* Predefined zoom factors to be used when zooming in/out. These are in |
* ascending order. |
*/ |