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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 const blink::WebLayer* outerViewportScrollLayer) override; | 122 const blink::WebLayer* outerViewportScrollLayer) override; |
123 virtual void clearViewportLayers() override; | 123 virtual void clearViewportLayers() override; |
124 virtual void registerSelection(const blink::WebSelectionBound& start, | 124 virtual void registerSelection(const blink::WebSelectionBound& start, |
125 const blink::WebSelectionBound& end) override; | 125 const blink::WebSelectionBound& end) override; |
126 virtual void clearSelection() override; | 126 virtual void clearSelection() override; |
127 virtual void setShowFPSCounter(bool show); | 127 virtual void setShowFPSCounter(bool show); |
128 virtual void setShowPaintRects(bool show); | 128 virtual void setShowPaintRects(bool show); |
129 virtual void setShowDebugBorders(bool show); | 129 virtual void setShowDebugBorders(bool show); |
130 virtual void setContinuousPaintingEnabled(bool enabled); | 130 virtual void setContinuousPaintingEnabled(bool enabled); |
131 virtual void setShowScrollBottleneckRects(bool show); | 131 virtual void setShowScrollBottleneckRects(bool show); |
| 132 virtual void setTopControlsShownRatio(float); |
| 133 |
| 134 // TODO(aelias): Delete after Blink roll |
132 virtual void setTopControlsContentOffset(float); | 135 virtual void setTopControlsContentOffset(float); |
133 | 136 |
134 // cc::LayerTreeHostClient implementation. | 137 // cc::LayerTreeHostClient implementation. |
135 void WillBeginMainFrame() override; | 138 void WillBeginMainFrame() override; |
136 void DidBeginMainFrame() override; | 139 void DidBeginMainFrame() override; |
137 void BeginMainFrame(const cc::BeginFrameArgs& args) override; | 140 void BeginMainFrame(const cc::BeginFrameArgs& args) override; |
138 void Layout() override; | 141 void Layout() override; |
139 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, | 142 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, |
140 const gfx::Vector2dF& outer_delta, | 143 const gfx::Vector2dF& outer_delta, |
141 const gfx::Vector2dF& elastic_overscroll_delta, | 144 const gfx::Vector2dF& elastic_overscroll_delta, |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 181 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
179 | 182 |
180 scoped_ptr<cc::CopyOutputRequest> temporary_copy_output_request_; | 183 scoped_ptr<cc::CopyOutputRequest> temporary_copy_output_request_; |
181 | 184 |
182 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; | 185 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; |
183 }; | 186 }; |
184 | 187 |
185 } // namespace content | 188 } // namespace content |
186 | 189 |
187 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 190 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
OLD | NEW |