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 CONTENT_RENDERER_RENDER_WIDGET_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ |
6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ | 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 | 230 |
231 // Requests a BeginMainFrame callback from the compositor. | 231 // Requests a BeginMainFrame callback from the compositor. |
232 void SetNeedsMainFrame(); | 232 void SetNeedsMainFrame(); |
233 | 233 |
234 // RenderWidgetCompositorDelegate | 234 // RenderWidgetCompositorDelegate |
235 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, | 235 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, |
236 const gfx::Vector2dF& outer_delta, | 236 const gfx::Vector2dF& outer_delta, |
237 const gfx::Vector2dF& elastic_overscroll_delta, | 237 const gfx::Vector2dF& elastic_overscroll_delta, |
238 float page_scale, | 238 float page_scale, |
239 float top_controls_delta) override; | 239 float top_controls_delta) override; |
| 240 void RecordWheelAndTouchScrollingCount(bool has_scrolled_by_wheel, |
| 241 bool has_scrolled_by_touch) override; |
240 void BeginMainFrame(double frame_time_sec) override; | 242 void BeginMainFrame(double frame_time_sec) override; |
241 void RequestNewCompositorFrameSink( | 243 void RequestNewCompositorFrameSink( |
242 bool fallback, | 244 bool fallback, |
243 const CompositorFrameSinkCallback& callback) override; | 245 const CompositorFrameSinkCallback& callback) override; |
244 void DidCommitAndDrawCompositorFrame() override; | 246 void DidCommitAndDrawCompositorFrame() override; |
245 void DidCommitCompositorFrame() override; | 247 void DidCommitCompositorFrame() override; |
246 void DidCompletePageScaleAnimation() override; | 248 void DidCompletePageScaleAnimation() override; |
247 void DidReceiveCompositorFrameAck() override; | 249 void DidReceiveCompositorFrameAck() override; |
248 bool IsClosing() const override; | 250 bool IsClosing() const override; |
249 void RequestScheduleAnimation() override; | 251 void RequestScheduleAnimation() override; |
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
870 uint32_t current_content_source_id_; | 872 uint32_t current_content_source_id_; |
871 | 873 |
872 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; | 874 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; |
873 | 875 |
874 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 876 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
875 }; | 877 }; |
876 | 878 |
877 } // namespace content | 879 } // namespace content |
878 | 880 |
879 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 881 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |