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 "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 virtual void setShowPaintRects(bool show); | 124 virtual void setShowPaintRects(bool show); |
125 virtual void setShowDebugBorders(bool show); | 125 virtual void setShowDebugBorders(bool show); |
126 virtual void setContinuousPaintingEnabled(bool enabled); | 126 virtual void setContinuousPaintingEnabled(bool enabled); |
127 virtual void setShowScrollBottleneckRects(bool show); | 127 virtual void setShowScrollBottleneckRects(bool show); |
128 | 128 |
129 virtual void updateTopControlsState(blink::WebTopControlsState constraints, | 129 virtual void updateTopControlsState(blink::WebTopControlsState constraints, |
130 blink::WebTopControlsState current, | 130 blink::WebTopControlsState current, |
131 bool animate); | 131 bool animate); |
132 virtual void setTopControlsHeight(float height, bool shrink); | 132 virtual void setTopControlsHeight(float height, bool shrink); |
133 virtual void setTopControlsShownRatio(float); | 133 virtual void setTopControlsShownRatio(float); |
134 // TODO(aelias): Delete after Blink roll | |
135 virtual void setTopControlsContentOffset(float); | |
136 | 134 |
137 // cc::LayerTreeHostClient implementation. | 135 // cc::LayerTreeHostClient implementation. |
138 void WillBeginMainFrame() override; | 136 void WillBeginMainFrame() override; |
139 void DidBeginMainFrame() override; | 137 void DidBeginMainFrame() override; |
140 void BeginMainFrame(const cc::BeginFrameArgs& args) override; | 138 void BeginMainFrame(const cc::BeginFrameArgs& args) override; |
141 void BeginMainFrameNotExpectedSoon() override; | 139 void BeginMainFrameNotExpectedSoon() override; |
142 void Layout() override; | 140 void Layout() override; |
143 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, | 141 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, |
144 const gfx::Vector2dF& outer_delta, | 142 const gfx::Vector2dF& outer_delta, |
145 const gfx::Vector2dF& elastic_overscroll_delta, | 143 const gfx::Vector2dF& elastic_overscroll_delta, |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 180 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
183 | 181 |
184 scoped_ptr<cc::CopyOutputRequest> temporary_copy_output_request_; | 182 scoped_ptr<cc::CopyOutputRequest> temporary_copy_output_request_; |
185 | 183 |
186 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; | 184 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; |
187 }; | 185 }; |
188 | 186 |
189 } // namespace content | 187 } // namespace content |
190 | 188 |
191 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 189 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
OLD | NEW |