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