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