| 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 24 matching lines...) Expand all Loading... |
| 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( | 42 base::android::ScopedJavaLocalRef<jobject> GetTopLevelNativeWindow( |
| 43 JNIEnv* env, | 43 JNIEnv* env, |
| 44 const base::android::JavaParamRef<jobject>& obj); | 44 const base::android::JavaParamRef<jobject>& obj); |
| 45 base::android::ScopedJavaLocalRef<jobject> GetMainFrame( |
| 46 JNIEnv* env, |
| 47 const base::android::JavaParamRef<jobject>& obj) const; |
| 45 base::android::ScopedJavaLocalRef<jstring> GetTitle( | 48 base::android::ScopedJavaLocalRef<jstring> GetTitle( |
| 46 JNIEnv* env, | 49 JNIEnv* env, |
| 47 const base::android::JavaParamRef<jobject>& obj) const; | 50 const base::android::JavaParamRef<jobject>& obj) const; |
| 48 base::android::ScopedJavaLocalRef<jstring> GetVisibleURL( | 51 base::android::ScopedJavaLocalRef<jstring> GetVisibleURL( |
| 49 JNIEnv* env, | 52 JNIEnv* env, |
| 50 const base::android::JavaParamRef<jobject>& obj) const; | 53 const base::android::JavaParamRef<jobject>& obj) const; |
| 51 | 54 |
| 52 bool IsLoading(JNIEnv* env, | 55 bool IsLoading(JNIEnv* env, |
| 53 const base::android::JavaParamRef<jobject>& obj) const; | 56 const base::android::JavaParamRef<jobject>& obj) const; |
| 54 bool IsLoadingToDifferentDocument( | 57 bool IsLoadingToDifferentDocument( |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 base::android::ScopedJavaGlobalRef<jobject> obj_; | 231 base::android::ScopedJavaGlobalRef<jobject> obj_; |
| 229 | 232 |
| 230 base::WeakPtrFactory<WebContentsAndroid> weak_factory_; | 233 base::WeakPtrFactory<WebContentsAndroid> weak_factory_; |
| 231 | 234 |
| 232 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid); | 235 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid); |
| 233 }; | 236 }; |
| 234 | 237 |
| 235 } // namespace content | 238 } // namespace content |
| 236 | 239 |
| 237 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ | 240 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ |
| OLD | NEW |