| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/web_contents_delegate_android/validation_message_bubble_and
roid.h" | 5 #include "components/web_contents_delegate_android/validation_message_bubble_and
roid.h" |
| 6 | 6 |
| 7 #include "base/android/jni_string.h" | 7 #include "base/android/jni_string.h" |
| 8 #include "content/public/browser/android/content_view_core.h" | 8 #include "content/public/browser/android/content_view_core.h" |
| 9 #include "content/public/browser/render_view_host.h" | 9 #include "content/public/browser/render_view_host.h" |
| 10 #include "content/public/browser/web_contents.h" | 10 #include "content/public/browser/web_contents.h" |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 Java_ValidationMessageBubble_setPositionRelativeToAnchor( | 68 Java_ValidationMessageBubble_setPositionRelativeToAnchor( |
| 69 base::android::AttachCurrentThread(), | 69 base::android::AttachCurrentThread(), |
| 70 java_validation_message_bubble_.obj(), | 70 java_validation_message_bubble_.obj(), |
| 71 java_content_view_core.obj(), | 71 java_content_view_core.obj(), |
| 72 anchor_in_root_view.x(), | 72 anchor_in_root_view.x(), |
| 73 anchor_in_root_view.y(), | 73 anchor_in_root_view.y(), |
| 74 anchor_in_root_view.width(), | 74 anchor_in_root_view.width(), |
| 75 anchor_in_root_view.height()); | 75 anchor_in_root_view.height()); |
| 76 } | 76 } |
| 77 | 77 |
| 78 // static | |
| 79 bool ValidationMessageBubbleAndroid::Register(JNIEnv* env) { | |
| 80 return RegisterNativesImpl(env); | |
| 81 } | |
| 82 | |
| 83 } // namespace web_contents_delegate_android | 78 } // namespace web_contents_delegate_android |
| OLD | NEW |