Index: content/public/android/java/src/org/chromium/content/browser/input/HandleViewResources.java |
diff --git a/content/public/android/java/src/org/chromium/content/browser/input/HandleViewResources.java b/content/public/android/java/src/org/chromium/content/browser/input/HandleViewResources.java |
index 926cfceeb2fb12065ef956cb40cc11e7884cfdeb..6f4203d2a74d25bcbf36a0d90cbcf64d1f541557 100644 |
--- a/content/public/android/java/src/org/chromium/content/browser/input/HandleViewResources.java |
+++ b/content/public/android/java/src/org/chromium/content/browser/input/HandleViewResources.java |
@@ -21,6 +21,9 @@ import org.chromium.base.JNINamespace; |
*/ |
@JNINamespace("content") |
public class HandleViewResources { |
jdduke (slow)
2015/06/19 14:33:58
For now, I don't think there's any advantage to ha
AviD
2015/06/19 15:25:29
Acknowledged.
|
+ private static float sHandleVerticalPadding; |
+ private static float sHandleHorizontalPadding; |
+ |
private static final int[] LEFT_HANDLE_ATTRS = { |
android.R.attr.textSelectHandleLeft, |
}; |
@@ -95,6 +98,21 @@ public class HandleViewResources { |
return canvasBitmap; |
} |
+ public static void setHandlePadding(float verticalPadding, float horizontalPadding) { |
+ sHandleVerticalPadding = verticalPadding; |
+ sHandleHorizontalPadding = horizontalPadding; |
+ } |
+ |
+ @CalledByNative |
+ public static float getHandleVerticalPadding() { |
+ return sHandleVerticalPadding; |
+ } |
+ |
+ @CalledByNative |
+ public static float getHandleHorizontalPadding() { |
+ return sHandleHorizontalPadding; |
+ } |
+ |
@CalledByNative |
private static Bitmap getLeftHandleBitmap(Context context) { |
return getHandleBitmap(context, LEFT_HANDLE_ATTRS); |