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

Side by Side 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: Remove ZoomManager 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.android_webview; 5 package org.chromium.android_webview;
6 6
7 import android.app.Activity; 7 import android.app.Activity;
8 import android.content.ComponentCallbacks2; 8 import android.content.ComponentCallbacks2;
9 import android.content.Context; 9 import android.content.Context;
10 import android.content.res.Configuration; 10 import android.content.res.Configuration;
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 // WebViewClassic does. 393 // WebViewClassic does.
394 mLayoutSizer.freezeLayoutRequests(); 394 mLayoutSizer.freezeLayoutRequests();
395 } 395 }
396 396
397 @Override 397 @Override
398 public void onPinchGestureEnd() { 398 public void onPinchGestureEnd() {
399 mLayoutSizer.unfreezeLayoutRequests(); 399 mLayoutSizer.unfreezeLayoutRequests();
400 } 400 }
401 401
402 @Override 402 @Override
403 public void onFlingStartGesture(int velocityX, int velocityY) {
404 mScrollOffsetManager.onFlingStartGesture(velocityX, velocityY);
405 }
406
407 @Override
408 public void onFlingCancelGesture() { 403 public void onFlingCancelGesture() {
409 mScrollOffsetManager.onFlingCancelGesture(); 404 mScrollOffsetManager.onFlingCancelGesture();
410 } 405 }
411 406
412 @Override 407 @Override
413 public void onUnhandledFlingStartEvent() { 408 public void onUnhandledFlingStartEvent(int velocityX, int velocityY) {
414 mScrollOffsetManager.onUnhandledFlingStartEvent(); 409 mScrollOffsetManager.onUnhandledFlingStartEvent(velocityX, velocityY );
415 } 410 }
416 411
417 @Override 412 @Override
418 public void onScrollUpdateGestureConsumed() { 413 public void onScrollUpdateGestureConsumed() {
419 mScrollAccessibilityHelper.postViewScrolledAccessibilityEventCallbac k(); 414 mScrollAccessibilityHelper.postViewScrolledAccessibilityEventCallbac k();
420 } 415 }
421 } 416 }
422 417
423 //-------------------------------------------------------------------------- ------------------ 418 //-------------------------------------------------------------------------- ------------------
424 private class AwComponentCallbacks implements ComponentCallbacks2 { 419 private class AwComponentCallbacks implements ComponentCallbacks2 {
(...skipping 1649 matching lines...) Expand 10 before | Expand all | Expand 10 after
2074 2069
2075 private native void nativeInvokeGeolocationCallback( 2070 private native void nativeInvokeGeolocationCallback(
2076 long nativeAwContents, boolean value, String requestingFrame); 2071 long nativeAwContents, boolean value, String requestingFrame);
2077 2072
2078 private native void nativeSetJsOnlineProperty(long nativeAwContents, boolean networkUp); 2073 private native void nativeSetJsOnlineProperty(long nativeAwContents, boolean networkUp);
2079 2074
2080 private native void nativeTrimMemory(long nativeAwContents, int level); 2075 private native void nativeTrimMemory(long nativeAwContents, int level);
2081 2076
2082 private native void nativeCreatePdfExporter(long nativeAwContents, AwPdfExpo rter awPdfExporter); 2077 private native void nativeCreatePdfExporter(long nativeAwContents, AwPdfExpo rter awPdfExporter);
2083 } 2078 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698