| 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 void ScrollTo(JNIEnv* env, jobject obj, jint x, jint y); | 213 void ScrollTo(JNIEnv* env, jobject obj, jint x, jint y); |
| 214 void SetDipScale(JNIEnv* env, jobject obj, jfloat dip_scale); | 214 void SetDipScale(JNIEnv* env, jobject obj, jfloat dip_scale); |
| 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 void PostMessageToFrame(JNIEnv* env, jobject obj, jstring frame_id, |
| 224 jstring message, jstring source_origin, jstring target_origin, |
| 225 jintArray msgPorts); |
| 226 void CreateMessageChannel(JNIEnv* env, jobject obj, jobject callback); |
| 227 |
| 223 private: | 228 private: |
| 224 void InitDataReductionProxyIfNecessary(); | 229 void InitDataReductionProxyIfNecessary(); |
| 225 void InitAutofillIfNecessary(bool enabled); | 230 void InitAutofillIfNecessary(bool enabled); |
| 226 | 231 |
| 227 // Geolocation API support | 232 // Geolocation API support |
| 228 void ShowGeolocationPrompt(const GURL& origin, base::Callback<void(bool)>); | 233 void ShowGeolocationPrompt(const GURL& origin, base::Callback<void(bool)>); |
| 229 void HideGeolocationPrompt(const GURL& origin); | 234 void HideGeolocationPrompt(const GURL& origin); |
| 230 | 235 |
| 231 JavaObjectWeakGlobalRef java_ref_; | 236 JavaObjectWeakGlobalRef java_ref_; |
| 232 scoped_ptr<AwWebContentsDelegate> web_contents_delegate_; | 237 scoped_ptr<AwWebContentsDelegate> web_contents_delegate_; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 251 GLViewRendererManager::Key renderer_manager_key_; | 256 GLViewRendererManager::Key renderer_manager_key_; |
| 252 | 257 |
| 253 DISALLOW_COPY_AND_ASSIGN(AwContents); | 258 DISALLOW_COPY_AND_ASSIGN(AwContents); |
| 254 }; | 259 }; |
| 255 | 260 |
| 256 bool RegisterAwContents(JNIEnv* env); | 261 bool RegisterAwContents(JNIEnv* env); |
| 257 | 262 |
| 258 } // namespace android_webview | 263 } // namespace android_webview |
| 259 | 264 |
| 260 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 265 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
| OLD | NEW |