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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 void SetBrowserControlsHeight(float top_height, | 176 void SetBrowserControlsHeight(float top_height, |
177 float bottom_height, | 177 float bottom_height, |
178 bool shrink) override; | 178 bool shrink) override; |
179 void SetBrowserControlsShownRatio(float) override; | 179 void SetBrowserControlsShownRatio(float) override; |
180 // TODO(ianwen): Move this method to WebLayerTreeView and implement main | 180 // TODO(ianwen): Move this method to WebLayerTreeView and implement main |
181 // thread scrolling. | 181 // thread scrolling. |
182 virtual void setBottomControlsHeight(float height); | 182 virtual void setBottomControlsHeight(float height); |
183 void RequestDecode(const PaintImage& image, | 183 void RequestDecode(const PaintImage& image, |
184 const base::Callback<void(bool)>& callback) override; | 184 const base::Callback<void(bool)>& callback) override; |
185 | 185 |
| 186 void SetScrollBoundaryBehavior( |
| 187 const blink::WebScrollBoundaryBehavior&) override; |
| 188 |
186 // cc::LayerTreeHostClient implementation. | 189 // cc::LayerTreeHostClient implementation. |
187 void WillBeginMainFrame() override; | 190 void WillBeginMainFrame() override; |
188 void DidBeginMainFrame() override; | 191 void DidBeginMainFrame() override; |
189 void BeginMainFrame(const viz::BeginFrameArgs& args) override; | 192 void BeginMainFrame(const viz::BeginFrameArgs& args) override; |
190 void BeginMainFrameNotExpectedSoon() override; | 193 void BeginMainFrameNotExpectedSoon() override; |
191 void BeginMainFrameNotExpectedUntil(base::TimeTicks time) override; | 194 void BeginMainFrameNotExpectedUntil(base::TimeTicks time) override; |
192 void UpdateLayerTreeHost() override; | 195 void UpdateLayerTreeHost() override; |
193 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, | 196 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, |
194 const gfx::Vector2dF& outer_delta, | 197 const gfx::Vector2dF& outer_delta, |
195 const gfx::Vector2dF& elastic_overscroll_delta, | 198 const gfx::Vector2dF& elastic_overscroll_delta, |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 viz::FrameSinkId frame_sink_id_; | 246 viz::FrameSinkId frame_sink_id_; |
244 | 247 |
245 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; | 248 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; |
246 | 249 |
247 DISALLOW_COPY_AND_ASSIGN(RenderWidgetCompositor); | 250 DISALLOW_COPY_AND_ASSIGN(RenderWidgetCompositor); |
248 }; | 251 }; |
249 | 252 |
250 } // namespace content | 253 } // namespace content |
251 | 254 |
252 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 255 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
OLD | NEW |