| 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 void setShowFPSCounter(bool show) override; | 154 void setShowFPSCounter(bool show) override; |
| 155 void setShowPaintRects(bool show) override; | 155 void setShowPaintRects(bool show) override; |
| 156 void setShowDebugBorders(bool show) override; | 156 void setShowDebugBorders(bool show) override; |
| 157 void setShowScrollBottleneckRects(bool show) override; | 157 void setShowScrollBottleneckRects(bool show) override; |
| 158 | 158 |
| 159 void updateTopControlsState(blink::WebTopControlsState constraints, | 159 void updateTopControlsState(blink::WebTopControlsState constraints, |
| 160 blink::WebTopControlsState current, | 160 blink::WebTopControlsState current, |
| 161 bool animate) override; | 161 bool animate) override; |
| 162 void setTopControlsHeight(float height, bool shrink) override; | 162 void setTopControlsHeight(float height, bool shrink) override; |
| 163 void setTopControlsShownRatio(float) override; | 163 void setTopControlsShownRatio(float) override; |
| 164 // TODO(ianwen): Move this method to WebLayerTreeView and implement main |
| 165 // thread scrolling. |
| 166 virtual void setBottomControlHeight(float height); |
| 164 | 167 |
| 165 // cc::LayerTreeHostClient implementation. | 168 // cc::LayerTreeHostClient implementation. |
| 166 void WillBeginMainFrame() override; | 169 void WillBeginMainFrame() override; |
| 167 void DidBeginMainFrame() override; | 170 void DidBeginMainFrame() override; |
| 168 void BeginMainFrame(const cc::BeginFrameArgs& args) override; | 171 void BeginMainFrame(const cc::BeginFrameArgs& args) override; |
| 169 void BeginMainFrameNotExpectedSoon() override; | 172 void BeginMainFrameNotExpectedSoon() override; |
| 170 void UpdateLayerTreeHost() override; | 173 void UpdateLayerTreeHost() override; |
| 171 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, | 174 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, |
| 172 const gfx::Vector2dF& outer_delta, | 175 const gfx::Vector2dF& outer_delta, |
| 173 const gfx::Vector2dF& elastic_overscroll_delta, | 176 const gfx::Vector2dF& elastic_overscroll_delta, |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 std::unique_ptr<cc::CopyOutputRequest> temporary_copy_output_request_; | 225 std::unique_ptr<cc::CopyOutputRequest> temporary_copy_output_request_; |
| 223 | 226 |
| 224 cc::RemoteProtoChannel::ProtoReceiver* remote_proto_channel_receiver_; | 227 cc::RemoteProtoChannel::ProtoReceiver* remote_proto_channel_receiver_; |
| 225 | 228 |
| 226 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; | 229 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; |
| 227 }; | 230 }; |
| 228 | 231 |
| 229 } // namespace content | 232 } // namespace content |
| 230 | 233 |
| 231 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 234 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
| OLD | NEW |