Remove stale TODO in FrameTree::GetRenderViewHost.
[chromium-blink-merge.git] / cc / blink / web_compositor_support_impl.h
blobb924be9cc09f950fc80a6d49e65f5c508d0b58a1
1 // Copyright 2014 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 CC_BLINK_WEB_COMPOSITOR_SUPPORT_IMPL_H_
6 #define CC_BLINK_WEB_COMPOSITOR_SUPPORT_IMPL_H_
8 #include "base/memory/ref_counted.h"
9 #include "base/message_loop/message_loop_proxy.h"
10 #include "cc/blink/cc_blink_export.h"
11 #include "third_party/WebKit/public/platform/WebCompositorAnimationCurve.h"
12 #include "third_party/WebKit/public/platform/WebCompositorSupport.h"
13 #include "third_party/WebKit/public/platform/WebContentLayerClient.h"
14 #include "third_party/WebKit/public/platform/WebLayer.h"
15 #include "third_party/WebKit/public/platform/WebTransformOperations.h"
17 namespace blink {
18 class WebGraphicsContext3D;
21 namespace cc_blink {
23 class CC_BLINK_EXPORT WebCompositorSupportImpl
24 : public NON_EXPORTED_BASE(blink::WebCompositorSupport) {
25 public:
26 WebCompositorSupportImpl();
27 virtual ~WebCompositorSupportImpl();
29 virtual blink::WebLayer* createLayer();
30 virtual blink::WebContentLayer* createContentLayer(
31 blink::WebContentLayerClient* client);
32 virtual blink::WebExternalTextureLayer* createExternalTextureLayer(
33 blink::WebExternalTextureLayerClient* client);
34 virtual blink::WebImageLayer* createImageLayer();
35 virtual blink::WebNinePatchLayer* createNinePatchLayer();
36 virtual blink::WebScrollbarLayer* createScrollbarLayer(
37 blink::WebScrollbar* scrollbar,
38 blink::WebScrollbarThemePainter painter,
39 blink::WebScrollbarThemeGeometry*);
40 virtual blink::WebScrollbarLayer* createSolidColorScrollbarLayer(
41 blink::WebScrollbar::Orientation orientation,
42 int thumb_thickness,
43 int track_start,
44 bool is_left_side_vertical_scrollbar);
45 virtual blink::WebCompositorAnimation* createAnimation(
46 const blink::WebCompositorAnimationCurve& curve,
47 blink::WebCompositorAnimation::TargetProperty target,
48 #ifdef WEB_COMPOSITOR_SUPPORT_CREATE_ANIMATION_SUPPORTS_GROUP
49 int group_id,
50 #endif
51 int animation_id);
52 virtual blink::WebFilterAnimationCurve* createFilterAnimationCurve();
53 virtual blink::WebFloatAnimationCurve* createFloatAnimationCurve();
54 virtual blink::WebScrollOffsetAnimationCurve*
55 createScrollOffsetAnimationCurve(
56 blink::WebFloatPoint target_value,
57 blink::WebCompositorAnimationCurve::TimingFunctionType
58 timing_function);
59 virtual blink::WebTransformAnimationCurve* createTransformAnimationCurve();
60 virtual blink::WebTransformOperations* createTransformOperations();
61 virtual blink::WebFilterOperations* createFilterOperations();
63 private:
64 DISALLOW_COPY_AND_ASSIGN(WebCompositorSupportImpl);
67 } // namespace cc_blink
69 #endif // CC_BLINK_WEB_COMPOSITOR_SUPPORT_IMPL_H_