| 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 739a66ab7a2fb0074f31d921dd8aa60857e11c7b..b210229814770f7960c05b54957122e5514e1157 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
|
| @@ -459,6 +459,18 @@ public class ContentViewCore
|
|
|
| private ViewAndroid mViewAndroid;
|
|
|
| + public class UMAActionAfterDoubleTap {
|
| + public static final int NAVIGATE_BACK = 0;
|
| + public static final int NAVIGATE_STOP = 1;
|
| + public static final int NO_ACTION = 2;
|
| + public static final int COUNT = 3;
|
| + }
|
| +
|
| + public class UMASingleTapType {
|
| + public static final int DELAYED_TAP = 0;
|
| + public static final int UNDELAYED_TAP = 1;
|
| + public static final int COUNT = 2;
|
| + }
|
|
|
| /**
|
| * Constructs a new ContentViewCore. Embedders must call initialize() after constructing
|
| @@ -1323,6 +1335,10 @@ public class ContentViewCore
|
| }
|
| }
|
|
|
| + public void reportActionAfterDoubleTapUMA(int type) {
|
| + mContentViewGestureHandler.reportActionAfterDoubleTapUMA(type);
|
| + }
|
| +
|
| @Override
|
| public boolean sendGesture(int type, long timeMs, int x, int y, Bundle b) {
|
| if (offerGestureToEmbedder(type)) return false;
|
| @@ -1394,6 +1410,24 @@ public class ContentViewCore
|
| }
|
|
|
| @Override
|
| + public void sendSingleTapUMA(int type) {
|
| + nativeSendSingleTapUma(
|
| + mNativeContentViewCore,
|
| + type,
|
| + UMASingleTapType.COUNT);
|
| + }
|
| +
|
| + @Override
|
| + public void sendActionAfterDoubleTapUMA(int type,
|
| + boolean clickDelayEnabled) {
|
| + nativeSendActionAfterDoubleTapUma(
|
| + mNativeContentViewCore,
|
| + type,
|
| + clickDelayEnabled,
|
| + UMAActionAfterDoubleTap.COUNT);
|
| + }
|
| +
|
| + @Override
|
| public void onSentLastGestureForVSync(long eventTimeMs) {
|
| if (isVSyncNotificationEnabled()) {
|
| mDidSignalVSyncUsingInputEvent = true;
|
| @@ -3375,4 +3409,10 @@ public class ContentViewCore
|
|
|
| private native void nativeSetAccessibilityEnabled(
|
| int nativeContentViewCoreImpl, boolean enabled);
|
| +
|
| + private native void nativeSendSingleTapUma(int nativeContentViewCoreImpl,
|
| + int type, int count);
|
| +
|
| + private native void nativeSendActionAfterDoubleTapUma(int nativeContentViewCoreImpl,
|
| + int type, boolean hasDelay, int count);
|
| }
|
|
|