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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 void OnWebLayoutPageScaleFactorChanged(float page_scale_factor) override; | 197 void OnWebLayoutPageScaleFactorChanged(float page_scale_factor) override; |
198 void OnWebLayoutContentsSizeChanged(const gfx::Size& contents_size) override; | 198 void OnWebLayoutContentsSizeChanged(const gfx::Size& contents_size) override; |
199 | 199 |
200 // BrowserViewRendererClient implementation. | 200 // BrowserViewRendererClient implementation. |
201 bool RequestDrawGL(bool wait_for_completion) override; | 201 bool RequestDrawGL(bool wait_for_completion) override; |
202 void PostInvalidate() override; | 202 void PostInvalidate() override; |
203 void DetachFunctorFromView() override; | 203 void DetachFunctorFromView() override; |
204 void OnNewPicture() override; | 204 void OnNewPicture() override; |
205 gfx::Point GetLocationOnScreen() override; | 205 gfx::Point GetLocationOnScreen() override; |
206 void ScrollContainerViewTo(gfx::Vector2d new_value) override; | 206 void ScrollContainerViewTo(gfx::Vector2d new_value) override; |
207 bool IsSmoothScrollingActive() const override; | |
208 void UpdateScrollState(gfx::Vector2d max_scroll_offset, | 207 void UpdateScrollState(gfx::Vector2d max_scroll_offset, |
209 gfx::SizeF contents_size_dip, | 208 gfx::SizeF contents_size_dip, |
210 float page_scale_factor, | 209 float page_scale_factor, |
211 float min_page_scale_factor, | 210 float min_page_scale_factor, |
212 float max_page_scale_factor) override; | 211 float max_page_scale_factor) override; |
213 void DidOverscroll(gfx::Vector2d overscroll_delta, | 212 void DidOverscroll(gfx::Vector2d overscroll_delta, |
214 gfx::Vector2dF overscroll_velocity) override; | 213 gfx::Vector2dF overscroll_velocity) override; |
215 | 214 |
216 void ParentDrawConstraintsUpdated( | 215 void ParentDrawConstraintsUpdated( |
217 const ParentCompositorDrawConstraints& draw_constraints) override {} | 216 const ParentCompositorDrawConstraints& draw_constraints) override {} |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 GLViewRendererManager::Key renderer_manager_key_; | 267 GLViewRendererManager::Key renderer_manager_key_; |
269 | 268 |
270 DISALLOW_COPY_AND_ASSIGN(AwContents); | 269 DISALLOW_COPY_AND_ASSIGN(AwContents); |
271 }; | 270 }; |
272 | 271 |
273 bool RegisterAwContents(JNIEnv* env); | 272 bool RegisterAwContents(JNIEnv* env); |
274 | 273 |
275 } // namespace android_webview | 274 } // namespace android_webview |
276 | 275 |
277 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 276 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
OLD | NEW |