| 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 const blink::WebLayer* pageScaleLayer, | 123 const blink::WebLayer* pageScaleLayer, |
| 124 const blink::WebLayer* innerViewportScrollLayer, | 124 const blink::WebLayer* innerViewportScrollLayer, |
| 125 const blink::WebLayer* outerViewportScrollLayer) override; | 125 const blink::WebLayer* outerViewportScrollLayer) override; |
| 126 virtual void clearViewportLayers() override; | 126 virtual void clearViewportLayers() override; |
| 127 virtual void registerSelection(const blink::WebSelection& selection) override; | 127 virtual void registerSelection(const blink::WebSelection& selection) override; |
| 128 virtual void clearSelection() override; | 128 virtual void clearSelection() override; |
| 129 virtual int layerTreeId() const; | 129 virtual int layerTreeId() const; |
| 130 virtual void setShowFPSCounter(bool show); | 130 virtual void setShowFPSCounter(bool show); |
| 131 virtual void setShowPaintRects(bool show); | 131 virtual void setShowPaintRects(bool show); |
| 132 virtual void setShowDebugBorders(bool show); | 132 virtual void setShowDebugBorders(bool show); |
| 133 virtual void setContinuousPaintingEnabled(bool enabled); | |
| 134 virtual void setShowScrollBottleneckRects(bool show); | 133 virtual void setShowScrollBottleneckRects(bool show); |
| 135 | 134 |
| 136 virtual void updateTopControlsState(blink::WebTopControlsState constraints, | 135 virtual void updateTopControlsState(blink::WebTopControlsState constraints, |
| 137 blink::WebTopControlsState current, | 136 blink::WebTopControlsState current, |
| 138 bool animate); | 137 bool animate); |
| 139 virtual void setTopControlsHeight(float height, bool shrink); | 138 virtual void setTopControlsHeight(float height, bool shrink); |
| 140 virtual void setTopControlsShownRatio(float); | 139 virtual void setTopControlsShownRatio(float); |
| 141 virtual void setHidePinchScrollbarsNearMinScale(bool) override; | 140 virtual void setHidePinchScrollbarsNearMinScale(bool) override; |
| 142 | 141 |
| 143 // cc::LayerTreeHostClient implementation. | 142 // cc::LayerTreeHostClient implementation. |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 | 194 |
| 196 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; | 195 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; |
| 197 scoped_ptr<cc::CopyOutputRequest> temporary_copy_output_request_; | 196 scoped_ptr<cc::CopyOutputRequest> temporary_copy_output_request_; |
| 198 | 197 |
| 199 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; | 198 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; |
| 200 }; | 199 }; |
| 201 | 200 |
| 202 } // namespace content | 201 } // namespace content |
| 203 | 202 |
| 204 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 203 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
| OLD | NEW |