| 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 void SetFixedLayoutSize(JNIEnv* env, | 172 void SetFixedLayoutSize(JNIEnv* env, |
| 173 jobject obj, | 173 jobject obj, |
| 174 jint width_dip, | 174 jint width_dip, |
| 175 jint height_dip); | 175 jint height_dip); |
| 176 void SetSaveFormData(bool enabled); | 176 void SetSaveFormData(bool enabled); |
| 177 | 177 |
| 178 // Sets the java delegate | 178 // Sets the java delegate |
| 179 void SetAwAutofillManagerDelegate(jobject delegate); | 179 void SetAwAutofillManagerDelegate(jobject delegate); |
| 180 | 180 |
| 181 void SetJsOnlineProperty(JNIEnv* env, jobject obj, jboolean network_up); | 181 void SetJsOnlineProperty(JNIEnv* env, jobject obj, jboolean network_up); |
| 182 void TrimMemory(JNIEnv* env, jobject obj, jint level); |
| 182 | 183 |
| 183 private: | 184 private: |
| 184 void InitAutofillIfNecessary(bool enabled); | 185 void InitAutofillIfNecessary(bool enabled); |
| 185 void SetAndroidWebViewRendererPrefs(); | 186 void SetAndroidWebViewRendererPrefs(); |
| 186 | 187 |
| 187 JavaObjectWeakGlobalRef java_ref_; | 188 JavaObjectWeakGlobalRef java_ref_; |
| 188 scoped_ptr<content::WebContents> web_contents_; | 189 scoped_ptr<content::WebContents> web_contents_; |
| 189 scoped_ptr<AwWebContentsDelegate> web_contents_delegate_; | 190 scoped_ptr<AwWebContentsDelegate> web_contents_delegate_; |
| 190 scoped_ptr<AwContentsClientBridge> contents_client_bridge_; | 191 scoped_ptr<AwContentsClientBridge> contents_client_bridge_; |
| 191 scoped_ptr<AwRenderViewHostExt> render_view_host_ext_; | 192 scoped_ptr<AwRenderViewHostExt> render_view_host_ext_; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 202 std::list<OriginCallback> pending_geolocation_prompts_; | 203 std::list<OriginCallback> pending_geolocation_prompts_; |
| 203 | 204 |
| 204 DISALLOW_COPY_AND_ASSIGN(AwContents); | 205 DISALLOW_COPY_AND_ASSIGN(AwContents); |
| 205 }; | 206 }; |
| 206 | 207 |
| 207 bool RegisterAwContents(JNIEnv* env); | 208 bool RegisterAwContents(JNIEnv* env); |
| 208 | 209 |
| 209 } // namespace android_webview | 210 } // namespace android_webview |
| 210 | 211 |
| 211 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 212 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
| OLD | NEW |