Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ContentViewGestureHandler.java

Issue 12114040: Add state INPUT_EVENT_ACK_STATE_UNKNOWN (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/android/java/src/org/chromium/content/browser/ContentViewGestureHandler.java
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 5d32f4b55af8f1431bc81c3c546f33c6b12a5dc2..eac7492aac0ca5448273660dcca0cff886877843 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
@@ -172,9 +172,10 @@ class ContentViewGestureHandler implements LongPressDelegate {
static final int GESTURE_LONG_TAP = 14;
// These have to be kept in sync with content/port/common/input_event_ack_state.h
- static final int INPUT_EVENT_ACK_STATE_CONSUMED = 0;
- static final int INPUT_EVENT_ACK_STATE_NOT_CONSUMED = 1;
- static final int INPUT_EVENT_ACK_STATE_NO_CONSUMER_EXISTS = 2;
+ static final int INPUT_EVENT_ACK_STATE_UNKNOWN = 0;
+ static final int INPUT_EVENT_ACK_STATE_CONSUMED = 1;
+ static final int INPUT_EVENT_ACK_STATE_NOT_CONSUMED = 2;
+ static final int INPUT_EVENT_ACK_STATE_NO_CONSUMER_EXISTS = 3;
/**
* This is an interface to handle MotionEvent related communication with the native side also
@@ -788,6 +789,10 @@ class ContentViewGestureHandler implements LongPressDelegate {
MotionEvent ackedEvent = mPendingMotionEvents.removeFirst();
MotionEvent nextEvent = mPendingMotionEvents.peekFirst();
switch (ackResult) {
+ case INPUT_EVENT_ACK_STATE_UNKNOWN:
+ // This should never get sent.
+ assert(false);
+ break;
case INPUT_EVENT_ACK_STATE_CONSUMED:
mJavaScriptIsConsumingGesture = true;
mZoomManager.passTouchEventThrough(ackedEvent);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698