| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 struct WebDeviceEmulationParams; | 67 struct WebDeviceEmulationParams; |
| 68 class WebFrameWidget; | 68 class WebFrameWidget; |
| 69 class WebGestureEvent; | 69 class WebGestureEvent; |
| 70 class WebLocalFrame; | 70 class WebLocalFrame; |
| 71 class WebMouseEvent; | 71 class WebMouseEvent; |
| 72 class WebNode; | 72 class WebNode; |
| 73 struct WebPoint; | 73 struct WebPoint; |
| 74 } | 74 } |
| 75 | 75 |
| 76 namespace cc { | 76 namespace cc { |
| 77 class OutputSurface; | 77 class CompositorFrameSink; |
| 78 class SwapPromise; | 78 class SwapPromise; |
| 79 } | 79 } |
| 80 | 80 |
| 81 namespace gfx { | 81 namespace gfx { |
| 82 class Range; | 82 class Range; |
| 83 } | 83 } |
| 84 | 84 |
| 85 namespace ui { | 85 namespace ui { |
| 86 struct DidOverscrollParams; | 86 struct DidOverscrollParams; |
| 87 } | 87 } |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 // Requests a BeginMainFrame callback from the compositor. | 209 // Requests a BeginMainFrame callback from the compositor. |
| 210 void SetNeedsMainFrame(); | 210 void SetNeedsMainFrame(); |
| 211 | 211 |
| 212 // RenderWidgetCompositorDelegate | 212 // RenderWidgetCompositorDelegate |
| 213 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, | 213 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, |
| 214 const gfx::Vector2dF& outer_delta, | 214 const gfx::Vector2dF& outer_delta, |
| 215 const gfx::Vector2dF& elastic_overscroll_delta, | 215 const gfx::Vector2dF& elastic_overscroll_delta, |
| 216 float page_scale, | 216 float page_scale, |
| 217 float top_controls_delta) override; | 217 float top_controls_delta) override; |
| 218 void BeginMainFrame(double frame_time_sec) override; | 218 void BeginMainFrame(double frame_time_sec) override; |
| 219 std::unique_ptr<cc::OutputSurface> CreateOutputSurface( | 219 std::unique_ptr<cc::CompositorFrameSink> CreateCompositorFrameSink( |
| 220 bool fallback) override; | 220 bool fallback) override; |
| 221 void DidCommitAndDrawCompositorFrame() override; | 221 void DidCommitAndDrawCompositorFrame() override; |
| 222 void DidCommitCompositorFrame() override; | 222 void DidCommitCompositorFrame() override; |
| 223 void DidCompletePageScaleAnimation() override; | 223 void DidCompletePageScaleAnimation() override; |
| 224 void DidCompleteSwapBuffers() override; | 224 void DidCompleteSwapBuffers() override; |
| 225 void ForwardCompositorProto(const std::vector<uint8_t>& proto) override; | 225 void ForwardCompositorProto(const std::vector<uint8_t>& proto) override; |
| 226 bool IsClosing() const override; | 226 bool IsClosing() const override; |
| 227 void OnSwapBuffersAborted() override; | 227 void OnSwapBuffersAborted() override; |
| 228 void OnSwapBuffersComplete() override; | 228 void OnSwapBuffersComplete() override; |
| 229 void OnSwapBuffersPosted() override; | 229 void OnSwapBuffersPosted() override; |
| (...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 822 // Stores edit commands associated to the next key event. | 822 // Stores edit commands associated to the next key event. |
| 823 // Will be cleared as soon as the next key event is processed. | 823 // Will be cleared as soon as the next key event is processed. |
| 824 EditCommands edit_commands_; | 824 EditCommands edit_commands_; |
| 825 | 825 |
| 826 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 826 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 827 }; | 827 }; |
| 828 | 828 |
| 829 } // namespace content | 829 } // namespace content |
| 830 | 830 |
| 831 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 831 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |