summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authorkristianm@chromium.org <kristianm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-28 00:20:01 +0000
committerkristianm@chromium.org <kristianm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-28 00:20:01 +0000
commit383b54ba88bfe638c216833f0b1c4655ad781be7 (patch)
tree8380a084c7e85e7dea7b40246b4c5936b0eaa420 /content
parent66a9bcea247f9a2a857653e2c940801d3d1422a4 (diff)
downloadchromium_src-383b54ba88bfe638c216833f0b1c4655ad781be7.zip
chromium_src-383b54ba88bfe638c216833f0b1c4655ad781be7.tar.gz
chromium_src-383b54ba88bfe638c216833f0b1c4655ad781be7.tar.bz2
Merge 219716 "Adding source POINTER to the create events before ..."
> Adding source POINTER to the create events before sending them to the framework > > BUG=278445 > > Review URL: https://chromiumcodereview.appspot.com/22996011 TBR=kristianm@chromium.org Review URL: https://codereview.chromium.org/23619005 git-svn-id: svn://svn.chromium.org/chrome/branches/1599/src@219866 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/public/android/java/src/org/chromium/content/browser/ContentViewGestureHandler.java16
1 files changed, 6 insertions, 10 deletions
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewGestureHandler.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewGestureHandler.java
index 37fd170..0580af0 100644
--- a/content/public/android/java/src/org/chromium/content/browser/ContentViewGestureHandler.java
+++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewGestureHandler.java
@@ -9,6 +9,7 @@ import android.os.Bundle;
import android.os.Handler;
import android.os.SystemClock;
import android.util.Log;
+import android.view.InputDevice;
import android.view.MotionEvent;
import android.view.ViewConfiguration;
@@ -814,16 +815,11 @@ class ContentViewGestureHandler implements LongPressDelegate {
* FrameLoader::transitionToCommitted iff the page ever had touch handlers.
*/
void resetGestureHandlers() {
- {
- MotionEvent me = obtainActionCancelMotionEvent();
- mGestureDetector.onTouchEvent(me);
- me.recycle();
- }
- {
- MotionEvent me = obtainActionCancelMotionEvent();
- mZoomManager.processTouchEvent(me);
- me.recycle();
- }
+ MotionEvent me = obtainActionCancelMotionEvent();
+ me.setSource(InputDevice.SOURCE_CLASS_POINTER);
+ mGestureDetector.onTouchEvent(me);
+ mZoomManager.processTouchEvent(me);
+ me.recycle();
mLongPressDetector.cancelLongPress();
}