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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 void SetPaintedDeviceScaleFactor(float device_scale); | 102 void SetPaintedDeviceScaleFactor(float device_scale); |
103 | 103 |
104 // WebLayerTreeView implementation. | 104 // WebLayerTreeView implementation. |
105 void setRootLayer(const blink::WebLayer& layer) override; | 105 void setRootLayer(const blink::WebLayer& layer) override; |
106 void clearRootLayer() override; | 106 void clearRootLayer() override; |
107 void attachCompositorAnimationTimeline( | 107 void attachCompositorAnimationTimeline( |
108 cc::AnimationTimeline* compositor_timeline) override; | 108 cc::AnimationTimeline* compositor_timeline) override; |
109 void detachCompositorAnimationTimeline( | 109 void detachCompositorAnimationTimeline( |
110 cc::AnimationTimeline* compositor_timeline) override; | 110 cc::AnimationTimeline* compositor_timeline) override; |
111 void setViewportSize(const blink::WebSize& device_viewport_size) override; | 111 void setViewportSize(const blink::WebSize& device_viewport_size) override; |
| 112 blink::WebSize getViewportSize() const override; |
112 virtual blink::WebFloatPoint adjustEventPointForPinchZoom( | 113 virtual blink::WebFloatPoint adjustEventPointForPinchZoom( |
113 const blink::WebFloatPoint& point) const; | 114 const blink::WebFloatPoint& point) const; |
114 void setDeviceScaleFactor(float device_scale) override; | 115 void setDeviceScaleFactor(float device_scale) override; |
| 116 float getDeviceScaleFactor() const override; |
115 void setBackgroundColor(blink::WebColor color) override; | 117 void setBackgroundColor(blink::WebColor color) override; |
116 void setHasTransparentBackground(bool transparent) override; | 118 void setHasTransparentBackground(bool transparent) override; |
117 void setVisible(bool visible) override; | 119 void setVisible(bool visible) override; |
118 void setPageScaleFactorAndLimits(float page_scale_factor, | 120 void setPageScaleFactorAndLimits(float page_scale_factor, |
119 float minimum, | 121 float minimum, |
120 float maximum) override; | 122 float maximum) override; |
121 void startPageScaleAnimation(const blink::WebPoint& destination, | 123 void startPageScaleAnimation(const blink::WebPoint& destination, |
122 bool use_anchor, | 124 bool use_anchor, |
123 float new_page_scale, | 125 float new_page_scale, |
124 double duration_sec) override; | 126 double duration_sec) override; |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; | 226 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; |
225 | 227 |
226 cc::RemoteProtoChannel::ProtoReceiver* remote_proto_channel_receiver_; | 228 cc::RemoteProtoChannel::ProtoReceiver* remote_proto_channel_receiver_; |
227 | 229 |
228 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; | 230 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; |
229 }; | 231 }; |
230 | 232 |
231 } // namespace content | 233 } // namespace content |
232 | 234 |
233 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 235 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
OLD | NEW |