| 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 virtual void OnNewPicture() OVERRIDE; | 155 virtual void OnNewPicture() OVERRIDE; |
| 156 virtual gfx::Point GetLocationOnScreen() OVERRIDE; | 156 virtual gfx::Point GetLocationOnScreen() OVERRIDE; |
| 157 virtual void ScrollContainerViewTo(gfx::Vector2d new_value) OVERRIDE; | 157 virtual void ScrollContainerViewTo(gfx::Vector2d new_value) OVERRIDE; |
| 158 virtual void DidOverscroll(gfx::Vector2d overscroll_delta) OVERRIDE; | 158 virtual void DidOverscroll(gfx::Vector2d overscroll_delta) OVERRIDE; |
| 159 | 159 |
| 160 void ClearCache(JNIEnv* env, jobject obj, jboolean include_disk_files); | 160 void ClearCache(JNIEnv* env, jobject obj, jboolean include_disk_files); |
| 161 void SetPendingWebContentsForPopup(scoped_ptr<content::WebContents> pending); | 161 void SetPendingWebContentsForPopup(scoped_ptr<content::WebContents> pending); |
| 162 jint ReleasePopupAwContents(JNIEnv* env, jobject obj); | 162 jint ReleasePopupAwContents(JNIEnv* env, jobject obj); |
| 163 | 163 |
| 164 void ScrollTo(JNIEnv* env, jobject obj, jint xPix, jint yPix); | 164 void ScrollTo(JNIEnv* env, jobject obj, jint xPix, jint yPix); |
| 165 void SetDipScale(JNIEnv* env, jobject obj, jfloat dipScale); | 165 void SetDipScale(JNIEnv* env, jobject obj, jfloat dip_scale); |
| 166 void SetDisplayedPageScaleFactor(JNIEnv* env, | 166 void SetDisplayedPageScaleFactor(JNIEnv* env, |
| 167 jobject obj, | 167 jobject obj, |
| 168 jfloat pageScaleFactor); | 168 jfloat page_scale_factor); |
| 169 | 169 void SetFixedLayoutSize(JNIEnv* env, |
| 170 jobject obj, |
| 171 jint width_dip, |
| 172 jint height_dip); |
| 170 void SetSaveFormData(bool enabled); | 173 void SetSaveFormData(bool enabled); |
| 171 | 174 |
| 172 // Sets the java delegate | 175 // Sets the java delegate |
| 173 void SetAwAutofillManagerDelegate(jobject delegate); | 176 void SetAwAutofillManagerDelegate(jobject delegate); |
| 174 | 177 |
| 175 void SetJsOnlineProperty(JNIEnv* env, jobject obj, jboolean network_up); | 178 void SetJsOnlineProperty(JNIEnv* env, jobject obj, jboolean network_up); |
| 176 | 179 |
| 177 private: | 180 private: |
| 178 void InitAutofillIfNecessary(bool enabled); | 181 void InitAutofillIfNecessary(bool enabled); |
| 179 void SetAndroidWebViewRendererPrefs(); | 182 void SetAndroidWebViewRendererPrefs(); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 196 std::list<OriginCallback> pending_geolocation_prompts_; | 199 std::list<OriginCallback> pending_geolocation_prompts_; |
| 197 | 200 |
| 198 DISALLOW_COPY_AND_ASSIGN(AwContents); | 201 DISALLOW_COPY_AND_ASSIGN(AwContents); |
| 199 }; | 202 }; |
| 200 | 203 |
| 201 bool RegisterAwContents(JNIEnv* env); | 204 bool RegisterAwContents(JNIEnv* env); |
| 202 | 205 |
| 203 } // namespace android_webview | 206 } // namespace android_webview |
| 204 | 207 |
| 205 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 208 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
| OLD | NEW |