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