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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 cc::FrameSinkId getFrameSinkId() override; | 120 cc::FrameSinkId getFrameSinkId() override; |
121 void setRootLayer(const blink::WebLayer& layer) override; | 121 void setRootLayer(const blink::WebLayer& layer) override; |
122 void clearRootLayer() override; | 122 void clearRootLayer() override; |
123 cc::AnimationHost* compositorAnimationHost() override; | 123 cc::AnimationHost* compositorAnimationHost() override; |
124 void setViewportSize(const blink::WebSize& device_viewport_size) override; | 124 void setViewportSize(const blink::WebSize& device_viewport_size) override; |
125 blink::WebSize getViewportSize() const override; | 125 blink::WebSize getViewportSize() const override; |
126 virtual blink::WebFloatPoint adjustEventPointForPinchZoom( | 126 virtual blink::WebFloatPoint adjustEventPointForPinchZoom( |
127 const blink::WebFloatPoint& point) const; | 127 const blink::WebFloatPoint& point) const; |
128 void setDeviceScaleFactor(float device_scale) override; | 128 void setDeviceScaleFactor(float device_scale) override; |
129 void setBackgroundColor(blink::WebColor color) override; | 129 void setBackgroundColor(blink::WebColor color) override; |
130 void setHasTransparentBackground(bool transparent) override; | |
131 void setVisible(bool visible) override; | 130 void setVisible(bool visible) override; |
132 void setPageScaleFactorAndLimits(float page_scale_factor, | 131 void setPageScaleFactorAndLimits(float page_scale_factor, |
133 float minimum, | 132 float minimum, |
134 float maximum) override; | 133 float maximum) override; |
135 void startPageScaleAnimation(const blink::WebPoint& destination, | 134 void startPageScaleAnimation(const blink::WebPoint& destination, |
136 bool use_anchor, | 135 bool use_anchor, |
137 float new_page_scale, | 136 float new_page_scale, |
138 double duration_sec) override; | 137 double duration_sec) override; |
139 bool hasPendingPageScaleAnimation() const override; | 138 bool hasPendingPageScaleAnimation() const override; |
140 void heuristicsForGpuRasterizationUpdated(bool matches_heuristics) override; | 139 void heuristicsForGpuRasterizationUpdated(bool matches_heuristics) override; |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; | 239 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; |
241 | 240 |
242 cc::FrameSinkId frame_sink_id_; | 241 cc::FrameSinkId frame_sink_id_; |
243 | 242 |
244 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; | 243 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; |
245 }; | 244 }; |
246 | 245 |
247 } // namespace content | 246 } // namespace content |
248 | 247 |
249 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 248 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
OLD | NEW |