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

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

Issue 2443613002: Rename classes related to top controls (Closed)
Patch Set: fix test Created 4 years, 2 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
« no previous file with comments | « content/public/renderer/render_view.h ('k') | content/public/test/render_view_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4429cf7a93a2df2a3b5478b110f4f2ce1d78c7f2..014f9ee27f8ccffc93d4086a86a9427f3fd2e67c 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
@@ -463,11 +463,12 @@ public class DOMUtils {
* @return the click target of the node in the form of a [ x, y ] array.
*/
private static int[] getClickTargetForBounds(ContentViewCore viewCore, Rect bounds) {
- int topControlsLayoutHeight = viewCore.doTopControlsShrinkBlinkSize()
- ? viewCore.getTopControlsHeightPix() : 0;
+ int browserControlsLayoutHeight = viewCore.doBrowserControlsShrinkBlinkSize()
+ ? viewCore.getTopControlsHeightPix()
+ : 0;
int clickX = (int) viewCore.getRenderCoordinates().fromLocalCssToPix(bounds.exactCenterX());
int clickY = (int) viewCore.getRenderCoordinates().fromLocalCssToPix(bounds.exactCenterY())
- + topControlsLayoutHeight;
+ + browserControlsLayoutHeight;
return new int[] { clickX, clickY };
}
« no previous file with comments | « content/public/renderer/render_view.h ('k') | content/public/test/render_view_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698