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

Unified Diff: content/public/test/android/javatests/src/org/chromium/content/browser/test/util/DOMUtils.java

Issue 2556573003: Media: lock orientation when <video> goes fullscreen. (Closed)
Patch Set: review comments Created 4 years 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: content/public/test/android/javatests/src/org/chromium/content/browser/test/util/DOMUtils.java
diff --git a/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/DOMUtils.java b/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/DOMUtils.java
index 014f9ee27f8ccffc93d4086a86a9427f3fd2e67c..6bd6e0d557b94264054b9d5ecee6590eede6aa11 100644
--- a/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/DOMUtils.java
+++ b/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/DOMUtils.java
@@ -255,6 +255,18 @@ public class DOMUtils {
}
/**
+ * Click a given rect in the page. Does not move the rect into view.
+ * @param viewCore The ContentViewCore in which the node lives.
+ * @param rect The rect to click.
+ */
+ public static boolean clickRect(final ContentViewCore viewCore, Rect rect)
+ throws InterruptedException, TimeoutException {
+ int[] clickTarget = getClickTargetForBounds(viewCore, rect);
+ return TouchCommon.singleClickView(
+ viewCore.getContainerView(), clickTarget[0], clickTarget[1]);
+ }
+
+ /**
* Long-press a DOM node by its id, scrolling it into view first.
* @param activityTestCase The ActivityInstrumentationTestCase2 to instrument.
* @param viewCore The ContentViewCore in which the node lives.

Powered by Google App Engine
This is Rietveld 408576698