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