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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 jlong ReleasePopupAwContents(JNIEnv* env, jobject obj); | 201 jlong ReleasePopupAwContents(JNIEnv* env, jobject obj); |
202 | 202 |
203 void ScrollTo(JNIEnv* env, jobject obj, jint x, jint y); | 203 void ScrollTo(JNIEnv* env, jobject obj, jint x, jint y); |
204 void SetDipScale(JNIEnv* env, jobject obj, jfloat dip_scale); | 204 void SetDipScale(JNIEnv* env, jobject obj, jfloat dip_scale); |
205 void SetFixedLayoutSize(JNIEnv* env, | 205 void SetFixedLayoutSize(JNIEnv* env, |
206 jobject obj, | 206 jobject obj, |
207 jint width_dip, | 207 jint width_dip, |
208 jint height_dip); | 208 jint height_dip); |
209 void SetSaveFormData(bool enabled); | 209 void SetSaveFormData(bool enabled); |
210 | 210 |
211 // Sets the java delegate | 211 // Sets the java client |
212 void SetAwAutofillManagerDelegate(jobject delegate); | 212 void SetAwAutofillClient(jobject client); |
213 | 213 |
214 void SetJsOnlineProperty(JNIEnv* env, jobject obj, jboolean network_up); | 214 void SetJsOnlineProperty(JNIEnv* env, jobject obj, jboolean network_up); |
215 void TrimMemory(JNIEnv* env, jobject obj, jint level, jboolean visible); | 215 void TrimMemory(JNIEnv* env, jobject obj, jint level, jboolean visible); |
216 | 216 |
217 private: | 217 private: |
218 void InitDataReductionProxyIfNecessary(); | 218 void InitDataReductionProxyIfNecessary(); |
219 void InitAutofillIfNecessary(bool enabled); | 219 void InitAutofillIfNecessary(bool enabled); |
220 | 220 |
221 void InitializeHardwareDrawIfNeeded(); | 221 void InitializeHardwareDrawIfNeeded(); |
222 | 222 |
(...skipping 22 matching lines...) Expand all Loading... |
245 GLViewRendererManager::Key renderer_manager_key_; | 245 GLViewRendererManager::Key renderer_manager_key_; |
246 | 246 |
247 DISALLOW_COPY_AND_ASSIGN(AwContents); | 247 DISALLOW_COPY_AND_ASSIGN(AwContents); |
248 }; | 248 }; |
249 | 249 |
250 bool RegisterAwContents(JNIEnv* env); | 250 bool RegisterAwContents(JNIEnv* env); |
251 | 251 |
252 } // namespace android_webview | 252 } // namespace android_webview |
253 | 253 |
254 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 254 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
OLD | NEW |