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

Side by Side Diff: components/web_contents_delegate_android/validation_message_bubble_android.cc

Issue 2146753002: Android: Remove unneeded RegisterNatives() calls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android: Don't require RegisterNatives if there are none Created 4 years, 4 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698