| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
| 6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 void Destroy(JNIEnv* env, jobject obj); | 64 void Destroy(JNIEnv* env, jobject obj); |
| 65 void DocumentHasImages(JNIEnv* env, jobject obj, jobject message); | 65 void DocumentHasImages(JNIEnv* env, jobject obj, jobject message); |
| 66 void GenerateMHTML(JNIEnv* env, jobject obj, jstring jpath, jobject callback); | 66 void GenerateMHTML(JNIEnv* env, jobject obj, jstring jpath, jobject callback); |
| 67 void SetIoThreadClient(JNIEnv* env, jobject obj, jobject client); | 67 void SetIoThreadClient(JNIEnv* env, jobject obj, jobject client); |
| 68 | 68 |
| 69 // Find-in-page API and related methods. | 69 // Find-in-page API and related methods. |
| 70 jint FindAllSync(JNIEnv* env, jobject obj, jstring search_string); | 70 jint FindAllSync(JNIEnv* env, jobject obj, jstring search_string); |
| 71 void FindAllAsync(JNIEnv* env, jobject obj, jstring search_string); | 71 void FindAllAsync(JNIEnv* env, jobject obj, jstring search_string); |
| 72 void FindNext(JNIEnv* env, jobject obj, jboolean forward); | 72 void FindNext(JNIEnv* env, jobject obj, jboolean forward); |
| 73 void ClearMatches(JNIEnv* env, jobject obj); | 73 void ClearMatches(JNIEnv* env, jobject obj); |
| 74 void ClearCache(JNIEnv* env, jobject obj); |
| 74 | 75 |
| 75 FindHelper* GetFindHelper(); | 76 FindHelper* GetFindHelper(); |
| 76 | 77 |
| 77 // FindHelper::Listener implementation. | 78 // FindHelper::Listener implementation. |
| 78 virtual void OnFindResultReceived(int active_ordinal, | 79 virtual void OnFindResultReceived(int active_ordinal, |
| 79 int match_count, | 80 int match_count, |
| 80 bool finished) OVERRIDE; | 81 bool finished) OVERRIDE; |
| 81 private: | 82 private: |
| 82 JavaObjectWeakGlobalRef java_ref_; | 83 JavaObjectWeakGlobalRef java_ref_; |
| 83 scoped_ptr<AwContentsContainer> contents_container_; | 84 scoped_ptr<AwContentsContainer> contents_container_; |
| 84 scoped_ptr<AwWebContentsDelegate> web_contents_delegate_; | 85 scoped_ptr<AwWebContentsDelegate> web_contents_delegate_; |
| 85 scoped_ptr<AwRenderViewHostExt> render_view_host_ext_; | 86 scoped_ptr<AwRenderViewHostExt> render_view_host_ext_; |
| 86 scoped_ptr<FindHelper> find_helper_; | 87 scoped_ptr<FindHelper> find_helper_; |
| 87 | 88 |
| 88 DISALLOW_COPY_AND_ASSIGN(AwContents); | 89 DISALLOW_COPY_AND_ASSIGN(AwContents); |
| 89 }; | 90 }; |
| 90 | 91 |
| 91 bool RegisterAwContents(JNIEnv* env); | 92 bool RegisterAwContents(JNIEnv* env); |
| 92 | 93 |
| 93 } // namespace android_webview | 94 } // namespace android_webview |
| 94 | 95 |
| 95 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 96 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
| OLD | NEW |