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> GetMainFrame( |
| 43 JNIEnv* env, |
| 44 const base::android::JavaParamRef<jobject>& obj) const; |
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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 base::android::ScopedJavaGlobalRef<jobject> obj_; | 227 base::android::ScopedJavaGlobalRef<jobject> obj_; |
225 | 228 |
226 base::WeakPtrFactory<WebContentsAndroid> weak_factory_; | 229 base::WeakPtrFactory<WebContentsAndroid> weak_factory_; |
227 | 230 |
228 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid); | 231 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid); |
229 }; | 232 }; |
230 | 233 |
231 } // namespace content | 234 } // namespace content |
232 | 235 |
233 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ | 236 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ |
OLD | NEW |