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

Side by Side Diff: android_webview/javatests/src/org/chromium/android_webview/test/AndroidScrollIntegrationTest.java

Issue 120513005: [Android] Perform eager gesture recognition on MotionEvents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code review and test cleanup 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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.test; 5 package org.chromium.android_webview.test;
6 6
7 import android.content.Context; 7 import android.content.Context;
8 import android.test.suitebuilder.annotation.SmallTest; 8 import android.test.suitebuilder.annotation.SmallTest;
9 import android.view.View; 9 import android.view.View;
10 10
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 678
679 @Override 679 @Override
680 public void onPinchGestureStart() { 680 public void onPinchGestureStart() {
681 } 681 }
682 682
683 @Override 683 @Override
684 public void onPinchGestureEnd() { 684 public void onPinchGestureEnd() {
685 } 685 }
686 686
687 @Override 687 @Override
688 public void onFlingStartGesture(int velocityX, int velocityY) {
689 }
690
691 @Override
692 public void onFlingCancelGesture() { 688 public void onFlingCancelGesture() {
693 } 689 }
694 690
695 @Override 691 @Override
696 public void onUnhandledFlingStartEvent() { 692 public void onUnhandledFlingStartEvent(int velocityX, int velocityY) {
697 } 693 }
698 694
699 @Override 695 @Override
700 public void onScrollUpdateGestureConsumed() { 696 public void onScrollUpdateGestureConsumed() {
701 mOnScrollUpdateGestureConsumedHelper.notifyCalled(); 697 mOnScrollUpdateGestureConsumedHelper.notifyCalled();
702 } 698 }
703 } 699 }
704 700
705 @SmallTest 701 @SmallTest
706 @Feature({"AndroidWebView"}) 702 @Feature({"AndroidWebView"})
(...skipping 28 matching lines...) Expand all
735 731
736 final int callCount = onScrollUpdateGestureConsumedHelper.getCallCount() ; 732 final int callCount = onScrollUpdateGestureConsumedHelper.getCallCount() ;
737 AwTestTouchUtils.dragCompleteView(testContainerView, 733 AwTestTouchUtils.dragCompleteView(testContainerView,
738 0, -targetScrollXPix, // these need to be negative as we're scro lling down. 734 0, -targetScrollXPix, // these need to be negative as we're scro lling down.
739 0, -targetScrollYPix, 735 0, -targetScrollYPix,
740 dragSteps, 736 dragSteps,
741 null /* completionLatch */); 737 null /* completionLatch */);
742 onScrollUpdateGestureConsumedHelper.waitForCallback(callCount); 738 onScrollUpdateGestureConsumedHelper.waitForCallback(callCount);
743 } 739 }
744 } 740 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698