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