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

Unified Diff: components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/ValidationMessageBubble.java

Issue 2106753004: Introduce bottom controls to CC and let it respond to scrolling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: content-offset -> top-controls-shown renaming and respond to bokan's comments Created 4 years, 6 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: components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/ValidationMessageBubble.java
diff --git a/components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/ValidationMessageBubble.java b/components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/ValidationMessageBubble.java
index 3359280263cd8bc5cb5bf00ff62eb54d04966dcf..ac826984a4b4fbb43d03abc5b0452159f31351a0 100644
--- a/components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/ValidationMessageBubble.java
+++ b/components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/ValidationMessageBubble.java
@@ -103,7 +103,7 @@ class ValidationMessageBubble {
private static float getWebViewOffsetYPixInScreen(ContentViewCore contentViewCore) {
int[] location = new int[2];
contentViewCore.getContainerView().getLocationOnScreen(location);
- return location[1] + contentViewCore.getRenderCoordinates().getContentOffsetYPix();
+ return location[1] + contentViewCore.getRenderCoordinates().getTopControlsShownYPix();
}
private static void updateTextViews(ViewGroup root, String mainText, String subText) {

Powered by Google App Engine
This is Rietveld 408576698