| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |