| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |