| Index: content/public/android/java/src/org/chromium/content/browser/RenderCoordinates.java
|
| diff --git a/content/public/android/java/src/org/chromium/content/browser/RenderCoordinates.java b/content/public/android/java/src/org/chromium/content/browser/RenderCoordinates.java
|
| index 89faf913d6afc620b7a6ad89ba55b47df5f3318c..c56660c2c99ccbd48ac9face8ba7c9f2401ca017 100644
|
| --- a/content/public/android/java/src/org/chromium/content/browser/RenderCoordinates.java
|
| +++ b/content/public/android/java/src/org/chromium/content/browser/RenderCoordinates.java
|
| @@ -4,6 +4,8 @@
|
|
|
| package org.chromium.content.browser;
|
|
|
| +import org.chromium.base.VisibleForTesting;
|
| +
|
| /**
|
| * Cached copy of all positions and scales (CSS-to-DIP-to-physical pixels)
|
| * reported from the renderer.
|
| @@ -75,6 +77,18 @@ public class RenderCoordinates {
|
| }
|
|
|
| /**
|
| + * Sets several fields for unit test. (used by {@link CursorAnchorInfoControllerTest}).
|
| + * @param deviceScaleFactor Device scale factor (maps DIP pixels to physical pixels).
|
| + * @param contentOffsetYPix Physical on-screen Y offset amount below the top controls.
|
| + */
|
| + @VisibleForTesting
|
| + public void setFrameInfoForTest(float deviceScaleFactor, float contentOffsetYPix) {
|
| + reset();
|
| + mDeviceScaleFactor = deviceScaleFactor;
|
| + mContentOffsetYPix = contentOffsetYPix;
|
| + }
|
| +
|
| + /**
|
| * Handles conversion of a point from window-relative-local-dip or screen-pix
|
| * to document-absolute-CSS space and vice versa.
|
| */
|
|
|