OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_COMPOSITOR_SUPPORT_IMPL_H_ | 5 #ifndef WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_COMPOSITOR_SUPPORT_IMPL_H_ |
6 #define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_COMPOSITOR_SUPPORT_IMPL_H_ | 6 #define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_COMPOSITOR_SUPPORT_IMPL_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/message_loop/message_loop_proxy.h" | 9 #include "base/message_loop/message_loop_proxy.h" |
10 #include "third_party/WebKit/public/platform/WebCompositorSupport.h" | 10 #include "third_party/WebKit/public/platform/WebCompositorSupport.h" |
11 #include "third_party/WebKit/public/platform/WebLayer.h" | 11 #include "third_party/WebKit/public/platform/WebLayer.h" |
12 #include "third_party/WebKit/public/platform/WebTransformOperations.h" | 12 #include "third_party/WebKit/public/platform/WebTransformOperations.h" |
13 | 13 |
14 namespace WebKit { | 14 namespace blink { |
15 class WebGraphicsContext3D; | 15 class WebGraphicsContext3D; |
16 } | 16 } |
17 | 17 |
18 namespace webkit { | 18 namespace webkit { |
19 | 19 |
20 class WebCompositorSupportImpl : public WebKit::WebCompositorSupport { | 20 class WebCompositorSupportImpl : public blink::WebCompositorSupport { |
21 public: | 21 public: |
22 WebCompositorSupportImpl(); | 22 WebCompositorSupportImpl(); |
23 virtual ~WebCompositorSupportImpl(); | 23 virtual ~WebCompositorSupportImpl(); |
24 | 24 |
25 virtual WebKit::WebLayer* createLayer(); | 25 virtual blink::WebLayer* createLayer(); |
26 virtual WebKit::WebContentLayer* createContentLayer( | 26 virtual blink::WebContentLayer* createContentLayer( |
27 WebKit::WebContentLayerClient* client); | 27 blink::WebContentLayerClient* client); |
28 virtual WebKit::WebExternalTextureLayer* createExternalTextureLayer( | 28 virtual blink::WebExternalTextureLayer* createExternalTextureLayer( |
29 WebKit::WebExternalTextureLayerClient* client); | 29 blink::WebExternalTextureLayerClient* client); |
30 virtual WebKit::WebImageLayer* createImageLayer(); | 30 virtual blink::WebImageLayer* createImageLayer(); |
31 virtual WebKit::WebNinePatchLayer* createNinePatchLayer(); | 31 virtual blink::WebNinePatchLayer* createNinePatchLayer(); |
32 virtual WebKit::WebSolidColorLayer* createSolidColorLayer(); | 32 virtual blink::WebSolidColorLayer* createSolidColorLayer(); |
33 virtual WebKit::WebScrollbarLayer* createScrollbarLayer( | 33 virtual blink::WebScrollbarLayer* createScrollbarLayer( |
34 WebKit::WebScrollbar* scrollbar, | 34 blink::WebScrollbar* scrollbar, |
35 WebKit::WebScrollbarThemePainter painter, | 35 blink::WebScrollbarThemePainter painter, |
36 WebKit::WebScrollbarThemeGeometry*); | 36 blink::WebScrollbarThemeGeometry*); |
37 virtual WebKit::WebScrollbarLayer* createSolidColorScrollbarLayer( | 37 virtual blink::WebScrollbarLayer* createSolidColorScrollbarLayer( |
38 WebKit::WebScrollbar::Orientation orientation, int thumb_thickness, | 38 blink::WebScrollbar::Orientation orientation, int thumb_thickness, |
39 bool is_left_side_vertical_scrollbar); | 39 bool is_left_side_vertical_scrollbar); |
40 virtual WebKit::WebAnimation* createAnimation( | 40 virtual blink::WebAnimation* createAnimation( |
41 const WebKit::WebAnimationCurve& curve, | 41 const blink::WebAnimationCurve& curve, |
42 WebKit::WebAnimation::TargetProperty target, | 42 blink::WebAnimation::TargetProperty target, |
43 int animation_id); | 43 int animation_id); |
44 virtual WebKit::WebFilterAnimationCurve* createFilterAnimationCurve(); | 44 virtual blink::WebFilterAnimationCurve* createFilterAnimationCurve(); |
45 virtual WebKit::WebFloatAnimationCurve* createFloatAnimationCurve(); | 45 virtual blink::WebFloatAnimationCurve* createFloatAnimationCurve(); |
46 virtual WebKit::WebTransformAnimationCurve* createTransformAnimationCurve(); | 46 virtual blink::WebTransformAnimationCurve* createTransformAnimationCurve(); |
47 virtual WebKit::WebTransformOperations* createTransformOperations(); | 47 virtual blink::WebTransformOperations* createTransformOperations(); |
48 virtual WebKit::WebFilterOperations* createFilterOperations(); | 48 virtual blink::WebFilterOperations* createFilterOperations(); |
49 | 49 |
50 private: | 50 private: |
51 DISALLOW_COPY_AND_ASSIGN(WebCompositorSupportImpl); | 51 DISALLOW_COPY_AND_ASSIGN(WebCompositorSupportImpl); |
52 }; | 52 }; |
53 | 53 |
54 } // namespace webkit | 54 } // namespace webkit |
55 | 55 |
56 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_COMPOSITOR_SUPPORT_IMPL_H_ | 56 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_COMPOSITOR_SUPPORT_IMPL_H_ |
OLD | NEW |