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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 const bool precomposed) OVERRIDE; | 142 const bool precomposed) OVERRIDE; |
143 | 143 |
144 // AwRenderViewHostExtClient implementation. | 144 // AwRenderViewHostExtClient implementation. |
145 virtual void OnPageScaleFactorChanged(float page_scale_factor) OVERRIDE; | 145 virtual void OnPageScaleFactorChanged(float page_scale_factor) OVERRIDE; |
146 | 146 |
147 // BrowserViewRenderer::Client implementation. | 147 // BrowserViewRenderer::Client implementation. |
148 virtual bool RequestDrawGL(jobject canvas) OVERRIDE; | 148 virtual bool RequestDrawGL(jobject canvas) OVERRIDE; |
149 virtual void PostInvalidate() OVERRIDE; | 149 virtual void PostInvalidate() OVERRIDE; |
150 virtual void OnNewPicture() OVERRIDE; | 150 virtual void OnNewPicture() OVERRIDE; |
151 virtual gfx::Point GetLocationOnScreen() OVERRIDE; | 151 virtual gfx::Point GetLocationOnScreen() OVERRIDE; |
| 152 virtual void ScrollContainerViewTo(gfx::Vector2d new_value) OVERRIDE; |
152 | 153 |
153 void ClearCache(JNIEnv* env, jobject obj, jboolean include_disk_files); | 154 void ClearCache(JNIEnv* env, jobject obj, jboolean include_disk_files); |
154 void SetPendingWebContentsForPopup(scoped_ptr<content::WebContents> pending); | 155 void SetPendingWebContentsForPopup(scoped_ptr<content::WebContents> pending); |
155 jint ReleasePopupAwContents(JNIEnv* env, jobject obj); | 156 jint ReleasePopupAwContents(JNIEnv* env, jobject obj); |
156 | 157 |
| 158 void ScrollTo(JNIEnv* env, jobject obj, jint xPix, jint yPix); |
| 159 void SetDipScale(JNIEnv* env, jobject obj, jfloat dipScale); |
| 160 |
157 void SetSaveFormData(bool enabled); | 161 void SetSaveFormData(bool enabled); |
158 | 162 |
159 private: | 163 private: |
160 void InitAutofillIfNecessary(bool enabled); | 164 void InitAutofillIfNecessary(bool enabled); |
161 | 165 |
162 JavaObjectWeakGlobalRef java_ref_; | 166 JavaObjectWeakGlobalRef java_ref_; |
163 scoped_ptr<content::WebContents> web_contents_; | 167 scoped_ptr<content::WebContents> web_contents_; |
164 scoped_ptr<AwWebContentsDelegate> web_contents_delegate_; | 168 scoped_ptr<AwWebContentsDelegate> web_contents_delegate_; |
165 scoped_ptr<AwContentsClientBridge> contents_client_bridge_; | 169 scoped_ptr<AwContentsClientBridge> contents_client_bridge_; |
166 scoped_ptr<AwRenderViewHostExt> render_view_host_ext_; | 170 scoped_ptr<AwRenderViewHostExt> render_view_host_ext_; |
(...skipping 10 matching lines...) Expand all Loading... |
177 std::list<OriginCallback> pending_geolocation_prompts_; | 181 std::list<OriginCallback> pending_geolocation_prompts_; |
178 | 182 |
179 DISALLOW_COPY_AND_ASSIGN(AwContents); | 183 DISALLOW_COPY_AND_ASSIGN(AwContents); |
180 }; | 184 }; |
181 | 185 |
182 bool RegisterAwContents(JNIEnv* env); | 186 bool RegisterAwContents(JNIEnv* env); |
183 | 187 |
184 } // namespace android_webview | 188 } // namespace android_webview |
185 | 189 |
186 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 190 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
OLD | NEW |