| 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 CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ |
| 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 static bool Register(JNIEnv* env); | 32 static bool Register(JNIEnv* env); |
| 33 | 33 |
| 34 explicit WebContentsAndroid(WebContentsImpl* web_contents); | 34 explicit WebContentsAndroid(WebContentsImpl* web_contents); |
| 35 ~WebContentsAndroid() override; | 35 ~WebContentsAndroid() override; |
| 36 | 36 |
| 37 WebContentsImpl* web_contents() const { return web_contents_; } | 37 WebContentsImpl* web_contents() const { return web_contents_; } |
| 38 | 38 |
| 39 base::android::ScopedJavaLocalRef<jobject> GetJavaObject(); | 39 base::android::ScopedJavaLocalRef<jobject> GetJavaObject(); |
| 40 | 40 |
| 41 // Methods called from Java | 41 // Methods called from Java |
| 42 base::android::ScopedJavaLocalRef<jobject> GetTopLevelNativeWindow( |
| 43 JNIEnv* env, |
| 44 const base::android::JavaParamRef<jobject>& obj); |
| 42 base::android::ScopedJavaLocalRef<jstring> GetTitle( | 45 base::android::ScopedJavaLocalRef<jstring> GetTitle( |
| 43 JNIEnv* env, | 46 JNIEnv* env, |
| 44 const base::android::JavaParamRef<jobject>& obj) const; | 47 const base::android::JavaParamRef<jobject>& obj) const; |
| 45 base::android::ScopedJavaLocalRef<jstring> GetVisibleURL( | 48 base::android::ScopedJavaLocalRef<jstring> GetVisibleURL( |
| 46 JNIEnv* env, | 49 JNIEnv* env, |
| 47 const base::android::JavaParamRef<jobject>& obj) const; | 50 const base::android::JavaParamRef<jobject>& obj) const; |
| 48 | 51 |
| 49 bool IsLoading(JNIEnv* env, | 52 bool IsLoading(JNIEnv* env, |
| 50 const base::android::JavaParamRef<jobject>& obj) const; | 53 const base::android::JavaParamRef<jobject>& obj) const; |
| 51 bool IsLoadingToDifferentDocument( | 54 bool IsLoadingToDifferentDocument( |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 base::android::ScopedJavaGlobalRef<jobject> obj_; | 217 base::android::ScopedJavaGlobalRef<jobject> obj_; |
| 215 | 218 |
| 216 base::WeakPtrFactory<WebContentsAndroid> weak_factory_; | 219 base::WeakPtrFactory<WebContentsAndroid> weak_factory_; |
| 217 | 220 |
| 218 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid); | 221 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid); |
| 219 }; | 222 }; |
| 220 | 223 |
| 221 } // namespace content | 224 } // namespace content |
| 222 | 225 |
| 223 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ | 226 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ |
| OLD | NEW |