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

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

Issue 1263053002: Move JNI annotations to annotations package. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 9b6d7a3896dde99dd96fd82b0f4381b5bf7b2e89..d2c0f31919a84e33ffd8644521629b5431d74749 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
@@ -15,7 +15,7 @@ import android.widget.RelativeLayout;
import android.widget.TextView;
import org.chromium.base.ApiCompatibilityUtils;
-import org.chromium.base.CalledByNative;
+import org.chromium.base.annotations.CalledByNative;
import org.chromium.content.browser.ContentViewCore;
import org.chromium.content.browser.RenderCoordinates;
@@ -134,8 +134,8 @@ class ValidationMessageBubble {
final View root = mPopup.getContentView();
final int width = root.getMeasuredWidth();
final int arrowWidth = root.findViewById(R.id.arrow_image).getMeasuredWidth();
- return ApiCompatibilityUtils.isLayoutRtl(root) ?
- (width * 3 / 4 - arrowWidth / 2) : (width / 4 + arrowWidth / 2);
+ return ApiCompatibilityUtils.isLayoutRtl(root)
+ ? (width * 3 / 4 - arrowWidth / 2) : (width / 4 + arrowWidth / 2);
}
/**
@@ -144,8 +144,8 @@ class ValidationMessageBubble {
private Point adjustWindowPosition(ContentViewCore contentViewCore, int x, int y) {
final RenderCoordinates coordinates = contentViewCore.getRenderCoordinates();
final int viewWidth = coordinates.getLastFrameViewportWidthPixInt();
- final int viewBottom = (int) getWebViewOffsetYPixInScreen(contentViewCore) +
- coordinates.getLastFrameViewportHeightPixInt();
+ final int viewBottom = (int) getWebViewOffsetYPixInScreen(contentViewCore)
+ + coordinates.getLastFrameViewportHeightPixInt();
final int width = mPopup.getContentView().getMeasuredWidth();
final int height = mPopup.getContentView().getMeasuredHeight();
if (x < 0) {

Powered by Google App Engine
This is Rietveld 408576698