| 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 0f29638937d97ae92300dc06ee9ef87ebcd6d3f2..443c05d52591271a1ae901e5ee43715717b36c5d 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
|
| @@ -1694,6 +1694,10 @@ public class ContentViewCore implements AccessibilityStateChangeListener, Screen
|
| */
|
| public boolean dispatchKeyEvent(KeyEvent event) {
|
| if (GamepadList.dispatchKeyEvent(event)) return true;
|
| + if (event.getKeyCode() == KeyEvent.KEYCODE_BUTTON_A) {
|
| + nativeSimulateClick(mNativeContentViewCore);
|
| + return true;
|
| + }
|
| if (getContentViewClient().shouldOverrideKeyEvent(event)) {
|
| return mContainerViewInternals.super_dispatchKeyEvent(event);
|
| }
|
| @@ -3441,6 +3445,8 @@ public class ContentViewCore implements AccessibilityStateChangeListener, Screen
|
| private native int nativeSendMouseWheelEvent(long nativeContentViewCoreImpl, long timeMs,
|
| float x, float y, float ticksX, float ticksY, float pixelsPerTick);
|
|
|
| + private native void nativeSimulateClick(long nativeContentViewCoreImpl);
|
| +
|
| private native void nativeScrollBegin(long nativeContentViewCoreImpl, long timeMs, float x,
|
| float y, float hintX, float hintY, boolean targetViewport);
|
|
|
|
|