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 "android_webview/browser/parent_compositor_draw_constraints.h" | 8 #include "android_webview/browser/parent_compositor_draw_constraints.h" |
9 #include "android_webview/browser/shared_renderer_state.h" | 9 #include "android_webview/browser/shared_renderer_state.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 bool clear_view_; | 172 bool clear_view_; |
173 | 173 |
174 bool offscreen_pre_raster_; | 174 bool offscreen_pre_raster_; |
175 | 175 |
176 gfx::Vector2d last_on_draw_scroll_offset_; | 176 gfx::Vector2d last_on_draw_scroll_offset_; |
177 gfx::Rect last_on_draw_global_visible_rect_; | 177 gfx::Rect last_on_draw_global_visible_rect_; |
178 | 178 |
179 base::CancelableClosure post_fallback_tick_; | 179 base::CancelableClosure post_fallback_tick_; |
180 base::CancelableClosure fallback_tick_fired_; | 180 base::CancelableClosure fallback_tick_fired_; |
181 bool fallback_tick_pending_; | 181 bool fallback_tick_pending_; |
| 182 bool disable_page_visibility_; |
182 | 183 |
183 gfx::Size size_; | 184 gfx::Size size_; |
184 | 185 |
185 gfx::SizeF scrollable_size_dip_; | 186 gfx::SizeF scrollable_size_dip_; |
186 | 187 |
187 // Current scroll offset in CSS pixels. | 188 // Current scroll offset in CSS pixels. |
188 // TODO(miletus): Make scroll_offset_dip_ a gfx::ScrollOffset. | 189 // TODO(miletus): Make scroll_offset_dip_ a gfx::ScrollOffset. |
189 gfx::Vector2dF scroll_offset_dip_; | 190 gfx::Vector2dF scroll_offset_dip_; |
190 | 191 |
191 // Max scroll offset in CSS pixels. | 192 // Max scroll offset in CSS pixels. |
192 // TODO(miletus): Make max_scroll_offset_dip_ a gfx::ScrollOffset. | 193 // TODO(miletus): Make max_scroll_offset_dip_ a gfx::ScrollOffset. |
193 gfx::Vector2dF max_scroll_offset_dip_; | 194 gfx::Vector2dF max_scroll_offset_dip_; |
194 | 195 |
195 // Used to prevent rounding errors from accumulating enough to generate | 196 // Used to prevent rounding errors from accumulating enough to generate |
196 // visible skew (especially noticeable when scrolling up and down in the same | 197 // visible skew (especially noticeable when scrolling up and down in the same |
197 // spot over a period of time). | 198 // spot over a period of time). |
198 // TODO(miletus): Make overscroll_rounding_error_ a gfx::ScrollOffset. | 199 // TODO(miletus): Make overscroll_rounding_error_ a gfx::ScrollOffset. |
199 gfx::Vector2dF overscroll_rounding_error_; | 200 gfx::Vector2dF overscroll_rounding_error_; |
200 | 201 |
201 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer); | 202 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer); |
202 }; | 203 }; |
203 | 204 |
204 } // namespace android_webview | 205 } // namespace android_webview |
205 | 206 |
206 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ | 207 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ |
OLD | NEW |