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

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

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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 #ifndef COMPONENTS_WEB_CONTENTS_DELEGATE_ANDROID_VALIDATION_MESSAGE_BUBBLE_ANDRO ID_H_ 5 #ifndef COMPONENTS_WEB_CONTENTS_DELEGATE_ANDROID_VALIDATION_MESSAGE_BUBBLE_ANDRO ID_H_
6 #define COMPONENTS_WEB_CONTENTS_DELEGATE_ANDROID_VALIDATION_MESSAGE_BUBBLE_ANDRO ID_H_ 6 #define COMPONENTS_WEB_CONTENTS_DELEGATE_ANDROID_VALIDATION_MESSAGE_BUBBLE_ANDRO ID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
(...skipping 15 matching lines...) Expand all
26 public: 26 public:
27 ValidationMessageBubbleAndroid(content::RenderWidgetHost* widget_host, 27 ValidationMessageBubbleAndroid(content::RenderWidgetHost* widget_host,
28 const gfx::Rect& anchor_in_screen, 28 const gfx::Rect& anchor_in_screen,
29 const base::string16& main_text, 29 const base::string16& main_text,
30 const base::string16& sub_text); 30 const base::string16& sub_text);
31 virtual ~ValidationMessageBubbleAndroid(); 31 virtual ~ValidationMessageBubbleAndroid();
32 virtual void SetPositionRelativeToAnchor( 32 virtual void SetPositionRelativeToAnchor(
33 content::RenderWidgetHost* widget_host, 33 content::RenderWidgetHost* widget_host,
34 const gfx::Rect& anchor_in_screen); 34 const gfx::Rect& anchor_in_screen);
35 35
36 static bool Register(JNIEnv* env);
37
38 private: 36 private:
39 base::android::ScopedJavaGlobalRef<jobject> java_validation_message_bubble_; 37 base::android::ScopedJavaGlobalRef<jobject> java_validation_message_bubble_;
40 }; 38 };
41 39
42 } // namespace web_contents_delegate_android 40 } // namespace web_contents_delegate_android
43 41
44 #endif // COMPONENTS_WEB_CONTENTS_DELEGATE_ANDROID_VALIDATION_MESSAGE_BUBBLE_AN DROID_H_ 42 #endif // COMPONENTS_WEB_CONTENTS_DELEGATE_ANDROID_VALIDATION_MESSAGE_BUBBLE_AN DROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698