Roll leveldb to r78 / 1.15.
[chromium-blink-merge.git] / webkit / renderer / compositor_bindings / web_compositor_support_impl.h
blob276a59069d0821b4b465d80267c52f0131720947
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.
5 #ifndef WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_COMPOSITOR_SUPPORT_IMPL_H_
6 #define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_COMPOSITOR_SUPPORT_IMPL_H_
8 #include "base/memory/ref_counted.h"
9 #include "base/message_loop/message_loop_proxy.h"
10 #include "third_party/WebKit/public/platform/WebCompositorSupport.h"
11 #include "third_party/WebKit/public/platform/WebLayer.h"
12 #include "third_party/WebKit/public/platform/WebTransformOperations.h"
14 namespace blink {
15 class WebGraphicsContext3D;
18 namespace webkit {
20 class WebCompositorSupportImpl : public blink::WebCompositorSupport {
21 public:
22 WebCompositorSupportImpl();
23 virtual ~WebCompositorSupportImpl();
25 virtual blink::WebLayer* createLayer();
26 virtual blink::WebContentLayer* createContentLayer(
27 blink::WebContentLayerClient* client);
28 virtual blink::WebExternalTextureLayer* createExternalTextureLayer(
29 blink::WebExternalTextureLayerClient* client);
30 virtual blink::WebImageLayer* createImageLayer();
31 virtual blink::WebNinePatchLayer* createNinePatchLayer();
32 virtual blink::WebSolidColorLayer* createSolidColorLayer();
33 virtual blink::WebScrollbarLayer* createScrollbarLayer(
34 blink::WebScrollbar* scrollbar,
35 blink::WebScrollbarThemePainter painter,
36 blink::WebScrollbarThemeGeometry*);
37 virtual blink::WebScrollbarLayer* createSolidColorScrollbarLayer(
38 blink::WebScrollbar::Orientation orientation, int thumb_thickness,
39 bool is_left_side_vertical_scrollbar);
40 virtual blink::WebAnimation* createAnimation(
41 const blink::WebAnimationCurve& curve,
42 blink::WebAnimation::TargetProperty target,
43 int animation_id);
44 virtual blink::WebFilterAnimationCurve* createFilterAnimationCurve();
45 virtual blink::WebFloatAnimationCurve* createFloatAnimationCurve();
46 virtual blink::WebTransformAnimationCurve* createTransformAnimationCurve();
47 virtual blink::WebTransformOperations* createTransformOperations();
48 virtual blink::WebFilterOperations* createFilterOperations();
50 private:
51 DISALLOW_COPY_AND_ASSIGN(WebCompositorSupportImpl);
54 } // namespace webkit
56 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_COMPOSITOR_SUPPORT_IMPL_H_