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 CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 5 #ifndef CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 void WillBeginMainFrame() override; | 183 void WillBeginMainFrame() override; |
184 void DidBeginMainFrame() override; | 184 void DidBeginMainFrame() override; |
185 void BeginMainFrame(const cc::BeginFrameArgs& args) override; | 185 void BeginMainFrame(const cc::BeginFrameArgs& args) override; |
186 void BeginMainFrameNotExpectedSoon() override; | 186 void BeginMainFrameNotExpectedSoon() override; |
187 void UpdateLayerTreeHost() override; | 187 void UpdateLayerTreeHost() override; |
188 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, | 188 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, |
189 const gfx::Vector2dF& outer_delta, | 189 const gfx::Vector2dF& outer_delta, |
190 const gfx::Vector2dF& elastic_overscroll_delta, | 190 const gfx::Vector2dF& elastic_overscroll_delta, |
191 float page_scale, | 191 float page_scale, |
192 float top_controls_delta) override; | 192 float top_controls_delta) override; |
| 193 void RecordWheelAndTouchScrollingCount(bool has_scrolled_by_wheel, |
| 194 bool has_scrolled_by_touch) override; |
193 void RequestNewCompositorFrameSink() override; | 195 void RequestNewCompositorFrameSink() override; |
194 void DidInitializeCompositorFrameSink() override; | 196 void DidInitializeCompositorFrameSink() override; |
195 void DidFailToInitializeCompositorFrameSink() override; | 197 void DidFailToInitializeCompositorFrameSink() override; |
196 void WillCommit() override; | 198 void WillCommit() override; |
197 void DidCommit() override; | 199 void DidCommit() override; |
198 void DidCommitAndDrawFrame() override; | 200 void DidCommitAndDrawFrame() override; |
199 void DidReceiveCompositorFrameAck() override; | 201 void DidReceiveCompositorFrameAck() override; |
200 void DidCompletePageScaleAnimation() override; | 202 void DidCompletePageScaleAnimation() override; |
201 | 203 |
202 // cc::LayerTreeHostSingleThreadClient implementation. | 204 // cc::LayerTreeHostSingleThreadClient implementation. |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; | 237 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; |
236 | 238 |
237 cc::FrameSinkId frame_sink_id_; | 239 cc::FrameSinkId frame_sink_id_; |
238 | 240 |
239 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; | 241 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; |
240 }; | 242 }; |
241 | 243 |
242 } // namespace content | 244 } // namespace content |
243 | 245 |
244 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 246 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
OLD | NEW |