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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 void SetRootLayer(const blink::WebLayer& layer) override; | 122 void SetRootLayer(const blink::WebLayer& layer) override; |
123 void ClearRootLayer() override; | 123 void ClearRootLayer() override; |
124 cc::AnimationHost* CompositorAnimationHost() override; | 124 cc::AnimationHost* CompositorAnimationHost() override; |
125 void SetViewportSize(const blink::WebSize& device_viewport_size) override; | 125 void SetViewportSize(const blink::WebSize& device_viewport_size) override; |
126 blink::WebSize GetViewportSize() const override; | 126 blink::WebSize GetViewportSize() const override; |
127 virtual blink::WebFloatPoint adjustEventPointForPinchZoom( | 127 virtual blink::WebFloatPoint adjustEventPointForPinchZoom( |
128 const blink::WebFloatPoint& point) const; | 128 const blink::WebFloatPoint& point) const; |
129 void SetDeviceScaleFactor(float device_scale) override; | 129 void SetDeviceScaleFactor(float device_scale) override; |
130 void SetBackgroundColor(blink::WebColor color) override; | 130 void SetBackgroundColor(blink::WebColor color) override; |
131 void SetVisible(bool visible) override; | 131 void SetVisible(bool visible) override; |
| 132 void SetIsFullscreen(bool is_fullscreen) override; |
132 void SetPageScaleFactorAndLimits(float page_scale_factor, | 133 void SetPageScaleFactorAndLimits(float page_scale_factor, |
133 float minimum, | 134 float minimum, |
134 float maximum) override; | 135 float maximum) override; |
135 void StartPageScaleAnimation(const blink::WebPoint& destination, | 136 void StartPageScaleAnimation(const blink::WebPoint& destination, |
136 bool use_anchor, | 137 bool use_anchor, |
137 float new_page_scale, | 138 float new_page_scale, |
138 double duration_sec) override; | 139 double duration_sec) override; |
139 bool HasPendingPageScaleAnimation() const override; | 140 bool HasPendingPageScaleAnimation() const override; |
140 void HeuristicsForGpuRasterizationUpdated(bool matches_heuristics) override; | 141 void HeuristicsForGpuRasterizationUpdated(bool matches_heuristics) override; |
141 void SetNeedsBeginFrame() override; | 142 void SetNeedsBeginFrame() override; |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 cc::FrameSinkId frame_sink_id_; | 250 cc::FrameSinkId frame_sink_id_; |
250 | 251 |
251 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; | 252 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; |
252 | 253 |
253 DISALLOW_COPY_AND_ASSIGN(RenderWidgetCompositor); | 254 DISALLOW_COPY_AND_ASSIGN(RenderWidgetCompositor); |
254 }; | 255 }; |
255 | 256 |
256 } // namespace content | 257 } // namespace content |
257 | 258 |
258 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 259 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
OLD | NEW |