| 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 std::unique_ptr<cc::CompositorFrameSink> CreateCompositorFrameSink( | 243 std::unique_ptr<cc::CompositorFrameSink> CreateCompositorFrameSink( |
| 242 const cc::FrameSinkId& frame_sink_id, | 244 const cc::FrameSinkId& frame_sink_id, |
| 243 bool fallback) override; | 245 bool fallback) 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 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 864 uint32_t current_content_source_id_; | 866 uint32_t current_content_source_id_; |
| 865 | 867 |
| 866 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; | 868 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; |
| 867 | 869 |
| 868 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 870 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 869 }; | 871 }; |
| 870 | 872 |
| 871 } // namespace content | 873 } // namespace content |
| 872 | 874 |
| 873 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 875 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |