| 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 virtual void OnWebLayoutPageScaleFactorChanged( | 161 virtual void OnWebLayoutPageScaleFactorChanged( |
| 162 float page_scale_factor) OVERRIDE; | 162 float page_scale_factor) OVERRIDE; |
| 163 virtual void OnWebLayoutContentsSizeChanged( | 163 virtual void OnWebLayoutContentsSizeChanged( |
| 164 const gfx::Size& contents_size) OVERRIDE; | 164 const gfx::Size& contents_size) OVERRIDE; |
| 165 | 165 |
| 166 // BrowserViewRenderer::Client implementation. | 166 // BrowserViewRenderer::Client implementation. |
| 167 virtual bool RequestDrawGL(jobject canvas) OVERRIDE; | 167 virtual bool RequestDrawGL(jobject canvas) OVERRIDE; |
| 168 virtual void PostInvalidate() OVERRIDE; | 168 virtual void PostInvalidate() OVERRIDE; |
| 169 virtual void OnNewPicture() OVERRIDE; | 169 virtual void OnNewPicture() OVERRIDE; |
| 170 virtual gfx::Point GetLocationOnScreen() OVERRIDE; | 170 virtual gfx::Point GetLocationOnScreen() OVERRIDE; |
| 171 virtual void SetMaxContainerViewScrollOffset( | |
| 172 gfx::Vector2d new_value) OVERRIDE; | |
| 173 virtual void ScrollContainerViewTo(gfx::Vector2d new_value) OVERRIDE; | 171 virtual void ScrollContainerViewTo(gfx::Vector2d new_value) OVERRIDE; |
| 174 virtual bool IsFlingActive() const OVERRIDE; | 172 virtual bool IsFlingActive() const OVERRIDE; |
| 175 virtual void SetPageScaleFactorAndLimits( | 173 virtual void UpdateScrollState(gfx::Vector2d max_scroll_offset, |
| 176 float page_scale_factor, | 174 gfx::SizeF contents_size_dip, |
| 177 float min_page_scale_factor, | 175 float page_scale_factor, |
| 178 float max_page_scale_factor) OVERRIDE; | 176 float min_page_scale_factor, |
| 179 virtual void SetContentsSize(gfx::SizeF contents_size_dip) OVERRIDE; | 177 float max_page_scale_factor) OVERRIDE; |
| 180 virtual void DidOverscroll(gfx::Vector2d overscroll_delta) OVERRIDE; | 178 virtual void DidOverscroll(gfx::Vector2d overscroll_delta) OVERRIDE; |
| 181 | 179 |
| 182 const BrowserViewRenderer* GetBrowserViewRenderer() const; | 180 const BrowserViewRenderer* GetBrowserViewRenderer() const; |
| 183 | 181 |
| 184 void ClearCache(JNIEnv* env, jobject obj, jboolean include_disk_files); | 182 void ClearCache(JNIEnv* env, jobject obj, jboolean include_disk_files); |
| 185 void SetPendingWebContentsForPopup(scoped_ptr<content::WebContents> pending); | 183 void SetPendingWebContentsForPopup(scoped_ptr<content::WebContents> pending); |
| 186 jlong ReleasePopupAwContents(JNIEnv* env, jobject obj); | 184 jlong ReleasePopupAwContents(JNIEnv* env, jobject obj); |
| 187 | 185 |
| 188 void ScrollTo(JNIEnv* env, jobject obj, jint x, jint y); | 186 void ScrollTo(JNIEnv* env, jobject obj, jint x, jint y); |
| 189 void SetDipScale(JNIEnv* env, jobject obj, jfloat dip_scale); | 187 void SetDipScale(JNIEnv* env, jobject obj, jfloat dip_scale); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 std::list<OriginCallback> pending_geolocation_prompts_; | 230 std::list<OriginCallback> pending_geolocation_prompts_; |
| 233 | 231 |
| 234 DISALLOW_COPY_AND_ASSIGN(AwContents); | 232 DISALLOW_COPY_AND_ASSIGN(AwContents); |
| 235 }; | 233 }; |
| 236 | 234 |
| 237 bool RegisterAwContents(JNIEnv* env); | 235 bool RegisterAwContents(JNIEnv* env); |
| 238 | 236 |
| 239 } // namespace android_webview | 237 } // namespace android_webview |
| 240 | 238 |
| 241 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 239 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
| OLD | NEW |