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

Unified Diff: android_webview/javatests/src/org/chromium/android_webview/test/util/AwTestTouchUtils.java

Issue 1620053002: sync compositor: Merge input path with chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review Created 4 years, 9 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
Index: android_webview/javatests/src/org/chromium/android_webview/test/util/AwTestTouchUtils.java
diff --git a/android_webview/javatests/src/org/chromium/android_webview/test/util/AwTestTouchUtils.java b/android_webview/javatests/src/org/chromium/android_webview/test/util/AwTestTouchUtils.java
index bdae4ec3bf84a655b25184fae4ba2e65cd586777..c73307631c027e54f2e057fd19d87d71d12df210 100644
--- a/android_webview/javatests/src/org/chromium/android_webview/test/util/AwTestTouchUtils.java
+++ b/android_webview/javatests/src/org/chromium/android_webview/test/util/AwTestTouchUtils.java
@@ -8,8 +8,6 @@ import android.os.SystemClock;
import android.view.MotionEvent;
import android.view.View;
-import java.util.concurrent.CountDownLatch;
-
/**
* A touch utility class that injects the events directly into the view.
* TODO(mkosiba): Merge with TestTouchUtils.
@@ -59,20 +57,15 @@ public class AwTestTouchUtils {
* @param fromY The relative y-coordinate of the start point of the drag.
* @param toY The relative y-coordinate of the end point of the drag.
* @param stepCount The total number of motion events that should be generated during the drag.
- * @param completionLatch The .countDown method is called on this latch once the drag finishes.
*/
public static void dragCompleteView(final View view, final int fromX, final int toX,
- final int fromY, final int toY, final int stepCount,
- final CountDownLatch completionLatch) {
+ final int fromY, final int toY, final int stepCount) {
view.post(new Runnable() {
@Override
public void run() {
long downTime = dragStart(view, fromX, fromY);
dragTo(view, fromX, toX, fromY, toY, stepCount, downTime);
dragEnd(view, toX, toY, downTime);
- if (completionLatch != null) {
- completionLatch.countDown();
- }
}
});
}

Powered by Google App Engine
This is Rietveld 408576698