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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 void SetSaveFormData(bool enabled); | 215 void SetSaveFormData(bool enabled); |
216 | 216 |
217 // Sets the java client | 217 // Sets the java client |
218 void SetAwAutofillClient(jobject client); | 218 void SetAwAutofillClient(jobject client); |
219 | 219 |
220 void SetJsOnlineProperty(JNIEnv* env, jobject obj, jboolean network_up); | 220 void SetJsOnlineProperty(JNIEnv* env, jobject obj, jboolean network_up); |
221 void TrimMemory(JNIEnv* env, jobject obj, jint level, jboolean visible); | 221 void TrimMemory(JNIEnv* env, jobject obj, jint level, jboolean visible); |
222 | 222 |
223 scoped_refptr<AwMessagePortMessageFilter> GetMessagePortMessageFilter(); | 223 scoped_refptr<AwMessagePortMessageFilter> GetMessagePortMessageFilter(); |
224 void PostMessageToFrame(JNIEnv* env, jobject obj, jstring frame_id, | 224 void PostMessageToFrame(JNIEnv* env, jobject obj, jstring frame_id, |
225 jstring message, jstring source_origin, jstring target_origin, | 225 jstring message, jstring target_origin, jintArray sent_ports); |
226 jintArray sent_ports); | |
227 void CreateMessageChannel(JNIEnv* env, jobject obj, jobjectArray ports); | 226 void CreateMessageChannel(JNIEnv* env, jobject obj, jobjectArray ports); |
228 | 227 |
229 private: | 228 private: |
230 void InitDataReductionProxyIfNecessary(); | 229 void InitDataReductionProxyIfNecessary(); |
231 void InitAutofillIfNecessary(bool enabled); | 230 void InitAutofillIfNecessary(bool enabled); |
232 | 231 |
233 // Geolocation API support | 232 // Geolocation API support |
234 void ShowGeolocationPrompt(const GURL& origin, base::Callback<void(bool)>); | 233 void ShowGeolocationPrompt(const GURL& origin, base::Callback<void(bool)>); |
235 void HideGeolocationPrompt(const GURL& origin); | 234 void HideGeolocationPrompt(const GURL& origin); |
236 | 235 |
(...skipping 20 matching lines...) Expand all Loading... |
257 GLViewRendererManager::Key renderer_manager_key_; | 256 GLViewRendererManager::Key renderer_manager_key_; |
258 | 257 |
259 DISALLOW_COPY_AND_ASSIGN(AwContents); | 258 DISALLOW_COPY_AND_ASSIGN(AwContents); |
260 }; | 259 }; |
261 | 260 |
262 bool RegisterAwContents(JNIEnv* env); | 261 bool RegisterAwContents(JNIEnv* env); |
263 | 262 |
264 } // namespace android_webview | 263 } // namespace android_webview |
265 | 264 |
266 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 265 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
OLD | NEW |