| 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 <list> | 9 #include <list> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 | 141 |
| 142 // PermissionRequestHandlerClient implementation. | 142 // PermissionRequestHandlerClient implementation. |
| 143 virtual void OnPermissionRequest(AwPermissionRequest* request) OVERRIDE; | 143 virtual void OnPermissionRequest(AwPermissionRequest* request) OVERRIDE; |
| 144 virtual void OnPermissionRequestCanceled( | 144 virtual void OnPermissionRequestCanceled( |
| 145 AwPermissionRequest* request) OVERRIDE; | 145 AwPermissionRequest* request) OVERRIDE; |
| 146 | 146 |
| 147 PermissionRequestHandler* GetPermissionRequestHandler() { | 147 PermissionRequestHandler* GetPermissionRequestHandler() { |
| 148 return permission_request_handler_.get(); | 148 return permission_request_handler_.get(); |
| 149 } | 149 } |
| 150 | 150 |
| 151 void PreauthorizePermission(JNIEnv* env, |
| 152 jobject obj, |
| 153 jstring origin, |
| 154 jlong resources); |
| 155 |
| 151 // Find-in-page API and related methods. | 156 // Find-in-page API and related methods. |
| 152 void FindAllAsync(JNIEnv* env, jobject obj, jstring search_string); | 157 void FindAllAsync(JNIEnv* env, jobject obj, jstring search_string); |
| 153 void FindNext(JNIEnv* env, jobject obj, jboolean forward); | 158 void FindNext(JNIEnv* env, jobject obj, jboolean forward); |
| 154 void ClearMatches(JNIEnv* env, jobject obj); | 159 void ClearMatches(JNIEnv* env, jobject obj); |
| 155 FindHelper* GetFindHelper(); | 160 FindHelper* GetFindHelper(); |
| 156 | 161 |
| 157 // FindHelper::Listener implementation. | 162 // FindHelper::Listener implementation. |
| 158 virtual void OnFindResultReceived(int active_ordinal, | 163 virtual void OnFindResultReceived(int active_ordinal, |
| 159 int match_count, | 164 int match_count, |
| 160 bool finished) OVERRIDE; | 165 bool finished) OVERRIDE; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 std::list<OriginCallback> pending_geolocation_prompts_; | 245 std::list<OriginCallback> pending_geolocation_prompts_; |
| 241 | 246 |
| 242 DISALLOW_COPY_AND_ASSIGN(AwContents); | 247 DISALLOW_COPY_AND_ASSIGN(AwContents); |
| 243 }; | 248 }; |
| 244 | 249 |
| 245 bool RegisterAwContents(JNIEnv* env); | 250 bool RegisterAwContents(JNIEnv* env); |
| 246 | 251 |
| 247 } // namespace android_webview | 252 } // namespace android_webview |
| 248 | 253 |
| 249 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 254 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
| OLD | NEW |