| Index: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
|
| diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
|
| index ec613ea349f678a3136d0c25b83da3892a9e7f5f..3552f5018c474cb3d42affa930ecd481cbc9ea1c 100644
|
| --- a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
|
| +++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
|
| @@ -920,6 +920,15 @@ public class ContentViewCore implements AccessibilityStateChangeListener, Screen
|
| }
|
|
|
| /**
|
| + * Sets the device scale factor (maps DIP pixels to physical pixels).
|
| + */
|
| + public void setDeviceScaleFactor(float value) {
|
| + mRenderCoordinates.setDeviceScaleFactor(value);
|
| + if (mNativeContentViewCore == 0) return;
|
| + nativeSetDeviceScaleFactor(mNativeContentViewCore, value);
|
| + }
|
| +
|
| + /**
|
| * @return Current page scale factor (maps CSS pixels to DIP pixels).
|
| */
|
| @VisibleForTesting
|
| @@ -3278,6 +3287,8 @@ public class ContentViewCore implements AccessibilityStateChangeListener, Screen
|
|
|
| private native void nativeSetFocus(long nativeContentViewCoreImpl, boolean focused);
|
|
|
| + private native void nativeSetDeviceScaleFactor(long nativeContentViewCoreImpl, float value);
|
| +
|
| private native void nativeSendOrientationChangeEvent(
|
| long nativeContentViewCoreImpl, int orientation);
|
|
|
|
|