| Index: chrome/browser/ui/android/validation_message_bubble_android.cc
|
| diff --git a/chrome/browser/ui/android/validation_message_bubble_android.cc b/chrome/browser/ui/android/validation_message_bubble_android.cc
|
| index 8e7048c25803dd80b0ba3481fc649e3d7a7928c5..dd8d9fc167ed4df1a21b3d3be0d63525f05cf4c8 100644
|
| --- a/chrome/browser/ui/android/validation_message_bubble_android.cc
|
| +++ b/chrome/browser/ui/android/validation_message_bubble_android.cc
|
| @@ -27,7 +27,7 @@ inline ContentViewCore* GetContentViewCoreFrom(RenderWidgetHost* widget_host) {
|
|
|
| ValidationMessageBubbleAndroid::ValidationMessageBubbleAndroid(
|
| RenderWidgetHost* widget_host,
|
| - const gfx::Rect& anchor_in_screen,
|
| + const gfx::Rect& anchor_in_root_view,
|
| const string16& main_text,
|
| const string16& sub_text) {
|
| JNIEnv* env = base::android::AttachCurrentThread();
|
| @@ -35,10 +35,10 @@ ValidationMessageBubbleAndroid::ValidationMessageBubbleAndroid(
|
| Java_ValidationMessageBubble_createAndShow(
|
| env,
|
| GetContentViewCoreFrom(widget_host)->GetJavaObject().obj(),
|
| - anchor_in_screen.x(),
|
| - anchor_in_screen.y(),
|
| - anchor_in_screen.width(),
|
| - anchor_in_screen.height(),
|
| + anchor_in_root_view.x(),
|
| + anchor_in_root_view.y(),
|
| + anchor_in_root_view.width(),
|
| + anchor_in_root_view.height(),
|
| ConvertUTF16ToJavaString(env, main_text).obj(),
|
| ConvertUTF16ToJavaString(env, sub_text).obj()));
|
| }
|
| @@ -49,15 +49,15 @@ ValidationMessageBubbleAndroid::~ValidationMessageBubbleAndroid() {
|
| }
|
|
|
| void ValidationMessageBubbleAndroid::MoveOnAnchor(
|
| - RenderWidgetHost* widget_host, const gfx::Rect& anchor_in_screen) {
|
| + RenderWidgetHost* widget_host, const gfx::Rect& anchor_in_root_view) {
|
| Java_ValidationMessageBubble_moveOnAnchor(
|
| base::android::AttachCurrentThread(),
|
| java_validation_message_bubble_.obj(),
|
| GetContentViewCoreFrom(widget_host)->GetJavaObject().obj(),
|
| - anchor_in_screen.x(),
|
| - anchor_in_screen.y(),
|
| - anchor_in_screen.width(),
|
| - anchor_in_screen.height());
|
| + anchor_in_root_view.x(),
|
| + anchor_in_root_view.y(),
|
| + anchor_in_root_view.width(),
|
| + anchor_in_root_view.height());
|
| }
|
|
|
| // static
|
| @@ -69,7 +69,7 @@ namespace chrome {
|
|
|
| scoped_ptr<ValidationMessageBubble> ValidationMessageBubble::CreateAndShow(
|
| RenderWidgetHost* widget_host,
|
| - const gfx::Rect& anchor_in_screen,
|
| + const gfx::Rect& anchor_in_root_view,
|
| const string16& main_text,
|
| const string16& sub_text) {
|
| return scoped_ptr<ValidationMessageBubble>(new ValidationMessageBubbleAndroid(
|
|
|