| 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 void SetBrowserControlsShownRatio(float) override; | 174 void SetBrowserControlsShownRatio(float) override; |
| 175 // TODO(ianwen): Move this method to WebLayerTreeView and implement main | 175 // TODO(ianwen): Move this method to WebLayerTreeView and implement main |
| 176 // thread scrolling. | 176 // thread scrolling. |
| 177 virtual void setBottomControlsHeight(float height); | 177 virtual void setBottomControlsHeight(float height); |
| 178 | 178 |
| 179 // cc::LayerTreeHostClient implementation. | 179 // cc::LayerTreeHostClient implementation. |
| 180 void WillBeginMainFrame() override; | 180 void WillBeginMainFrame() override; |
| 181 void DidBeginMainFrame() override; | 181 void DidBeginMainFrame() override; |
| 182 void BeginMainFrame(const cc::BeginFrameArgs& args) override; | 182 void BeginMainFrame(const cc::BeginFrameArgs& args) override; |
| 183 void BeginMainFrameNotExpectedSoon() override; | 183 void BeginMainFrameNotExpectedSoon() override; |
| 184 void BeginMainFrameNotExpectedUntil(base::TimeTicks time) override; |
| 184 void UpdateLayerTreeHost() override; | 185 void UpdateLayerTreeHost() override; |
| 185 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, | 186 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, |
| 186 const gfx::Vector2dF& outer_delta, | 187 const gfx::Vector2dF& outer_delta, |
| 187 const gfx::Vector2dF& elastic_overscroll_delta, | 188 const gfx::Vector2dF& elastic_overscroll_delta, |
| 188 float page_scale, | 189 float page_scale, |
| 189 float top_controls_delta) override; | 190 float top_controls_delta) override; |
| 190 void RecordWheelAndTouchScrollingCount(bool has_scrolled_by_wheel, | 191 void RecordWheelAndTouchScrollingCount(bool has_scrolled_by_wheel, |
| 191 bool has_scrolled_by_touch) override; | 192 bool has_scrolled_by_touch) override; |
| 192 void RequestNewCompositorFrameSink() override; | 193 void RequestNewCompositorFrameSink() override; |
| 193 void DidInitializeCompositorFrameSink() override; | 194 void DidInitializeCompositorFrameSink() override; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; | 237 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; |
| 237 | 238 |
| 238 cc::FrameSinkId frame_sink_id_; | 239 cc::FrameSinkId frame_sink_id_; |
| 239 | 240 |
| 240 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; | 241 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; |
| 241 }; | 242 }; |
| 242 | 243 |
| 243 } // namespace content | 244 } // namespace content |
| 244 | 245 |
| 245 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 246 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
| OLD | NEW |