OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_BROWSER_BROWSER_VIEW_RENDERER_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ |
6 #define ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 75 |
76 void SetOffscreenPreRaster(bool enabled); | 76 void SetOffscreenPreRaster(bool enabled); |
77 | 77 |
78 // View update notifications. | 78 // View update notifications. |
79 void SetIsPaused(bool paused); | 79 void SetIsPaused(bool paused); |
80 void SetViewVisibility(bool visible); | 80 void SetViewVisibility(bool visible); |
81 void SetWindowVisibility(bool visible); | 81 void SetWindowVisibility(bool visible); |
82 void OnSizeChanged(int width, int height); | 82 void OnSizeChanged(int width, int height); |
83 void OnAttachedToWindow(int width, int height); | 83 void OnAttachedToWindow(int width, int height); |
84 void OnDetachedFromWindow(); | 84 void OnDetachedFromWindow(); |
| 85 void SynchronizeRendererScroll(); |
85 void OnComputeScroll(base::TimeTicks animation_time); | 86 void OnComputeScroll(base::TimeTicks animation_time); |
86 | 87 |
87 // Sets the scale for logical<->physical pixel conversions. | 88 // Sets the scale for logical<->physical pixel conversions. |
88 void SetDipScale(float dip_scale); | 89 void SetDipScale(float dip_scale); |
89 float dip_scale() const { return dip_scale_; } | 90 float dip_scale() const { return dip_scale_; } |
90 float page_scale_factor() const { return page_scale_factor_; } | 91 float page_scale_factor() const { return page_scale_factor_; } |
91 | 92 |
92 // Set the root layer scroll offset to |new_value|. | 93 // Set the root layer scroll offset to |new_value|. |
93 void ScrollTo(const gfx::Vector2d& new_value); | 94 void ScrollTo(const gfx::Vector2d& new_value); |
94 | 95 |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 uint32_t next_compositor_id_; | 195 uint32_t next_compositor_id_; |
195 | 196 |
196 ParentCompositorDrawConstraints external_draw_constraints_; | 197 ParentCompositorDrawConstraints external_draw_constraints_; |
197 | 198 |
198 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer); | 199 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer); |
199 }; | 200 }; |
200 | 201 |
201 } // namespace android_webview | 202 } // namespace android_webview |
202 | 203 |
203 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ | 204 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ |
OLD | NEW |