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 af50532b6375159ed83ca38273ff1604a33ca353..9ecdf0f91c671d449a739f5536f4b9e0f808c8fd 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 |
@@ -1205,9 +1205,8 @@ public class ContentViewCore |
*/ |
@CalledByNative |
public boolean isScrollInProgress() { |
- return mTouchScrollInProgress |
- || mPotentiallyActiveFlingCount > 0 |
- || getContentViewClient().isExternalFlingActive(); |
+ return mTouchScrollInProgress || mPotentiallyActiveFlingCount > 0 |
+ || getContentViewClient().isExternalScrollActive(); |
} |
@SuppressWarnings("unused") |
@@ -1226,10 +1225,6 @@ public class ContentViewCore |
@CalledByNative |
private void onFlingStartEventHadNoConsumer(int vx, int vy) { |
mTouchScrollInProgress = false; |
- for (mGestureStateListenersIterator.rewind(); |
- mGestureStateListenersIterator.hasNext();) { |
- mGestureStateListenersIterator.next().onUnhandledFlingStartEvent(vx, vy); |
- } |
} |
@SuppressWarnings("unused") |
@@ -1313,8 +1308,7 @@ public class ContentViewCore |
nativeDoubleTap(mNativeContentViewCore, timeMs, x, y); |
} |
- @VisibleForTesting |
- public void flingForTest(long timeMs, int x, int y, int velocityX, int velocityY) { |
+ public void fling(long timeMs, int x, int y, int velocityX, int velocityY) { |
if (mNativeContentViewCore == 0) return; |
nativeFlingCancel(mNativeContentViewCore, timeMs); |
nativeScrollBegin(mNativeContentViewCore, timeMs, x, y, velocityX, velocityY); |