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

Unified Diff: android_webview/java/src/org/chromium/android_webview/AwContents.java

Issue 120513005: [Android] Perform eager gesture recognition on MotionEvents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More testing Created 6 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 | android_webview/java/src/org/chromium/android_webview/AwScrollOffsetManager.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/java/src/org/chromium/android_webview/AwContents.java
diff --git a/android_webview/java/src/org/chromium/android_webview/AwContents.java b/android_webview/java/src/org/chromium/android_webview/AwContents.java
index 3a48355c0110b40112de4e3b5ef7fdf8f7af1141..d8c1708e4753d5293474702bdffb943f786f91b5 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwContents.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwContents.java
@@ -385,7 +385,7 @@ public class AwContents {
//--------------------------------------------------------------------------------------------
private class AwGestureStateListener extends GestureStateListener {
@Override
- public void onPinchGestureStart() {
+ public void onPinchStarted() {
// While it's possible to re-layout the view during a pinch gesture, the effect is very
// janky (especially that the page scale update notification comes from the renderer
// main thread, not from the impl thread, so it's usually out of sync with what's on
@@ -396,24 +396,18 @@ public class AwContents {
}
@Override
- public void onPinchGestureEnd() {
+ public void onPinchEnded() {
mLayoutSizer.unfreezeLayoutRequests();
}
@Override
- public void onFlingStartGesture(
- int velocityX, int velocityY, int scrollOffsetY, int scrollExtentY) {
- mScrollOffsetManager.onFlingStartGesture(velocityX, velocityY);
- }
-
- @Override
public void onFlingCancelGesture() {
mScrollOffsetManager.onFlingCancelGesture();
}
@Override
- public void onUnhandledFlingStartEvent() {
- mScrollOffsetManager.onUnhandledFlingStartEvent();
+ public void onUnhandledFlingStartEvent(int velocityX, int velocityY) {
+ mScrollOffsetManager.onUnhandledFlingStartEvent(velocityX, velocityY);
}
@Override
« no previous file with comments | « no previous file | android_webview/java/src/org/chromium/android_webview/AwScrollOffsetManager.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698