| 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; |
| 115 void setBackgroundColor(blink::WebColor color) override; | 116 void setBackgroundColor(blink::WebColor color) override; |
| 116 void setHasTransparentBackground(bool transparent) override; | 117 void setHasTransparentBackground(bool transparent) override; |
| 117 void setVisible(bool visible) override; | 118 void setVisible(bool visible) override; |
| 118 void setPageScaleFactorAndLimits(float page_scale_factor, | 119 void setPageScaleFactorAndLimits(float page_scale_factor, |
| 119 float minimum, | 120 float minimum, |
| 120 float maximum) override; | 121 float maximum) override; |
| 121 void startPageScaleAnimation(const blink::WebPoint& destination, | 122 void startPageScaleAnimation(const blink::WebPoint& destination, |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; | 225 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; |
| 225 | 226 |
| 226 cc::RemoteProtoChannel::ProtoReceiver* remote_proto_channel_receiver_; | 227 cc::RemoteProtoChannel::ProtoReceiver* remote_proto_channel_receiver_; |
| 227 | 228 |
| 228 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; | 229 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; |
| 229 }; | 230 }; |
| 230 | 231 |
| 231 } // namespace content | 232 } // namespace content |
| 232 | 233 |
| 233 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 234 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
| OLD | NEW |