| 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 setBottomControlsHeight(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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; | 224 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; |
| 222 | 225 |
| 223 cc::RemoteProtoChannel::ProtoReceiver* remote_proto_channel_receiver_; | 226 cc::RemoteProtoChannel::ProtoReceiver* remote_proto_channel_receiver_; |
| 224 | 227 |
| 225 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; | 228 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; |
| 226 }; | 229 }; |
| 227 | 230 |
| 228 } // namespace content | 231 } // namespace content |
| 229 | 232 |
| 230 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 233 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
| OLD | NEW |