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