Chromium Code Reviews| Index: webkit/compositor_bindings/web_compositor_support_impl.h |
| diff --git a/webkit/compositor_bindings/web_compositor_support_impl.h b/webkit/compositor_bindings/web_compositor_support_impl.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..6b04938c29bb7d85ca5b2de641f1f31d9732e77c |
| --- /dev/null |
| +++ b/webkit/compositor_bindings/web_compositor_support_impl.h |
| @@ -0,0 +1,50 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef WEBKIT_COMPOSITOR_BINDINGS_WEB_COMPOSITOR_SUPPORT_IMPL_H_ |
| +#define WEBKIT_COMPOSITOR_BINDINGS_WEB_COMPOSITOR_SUPPORT_IMPL_H_ |
| + |
| +#include "third_party/WebKit/Source/Platform/chromium/public/WebLayer.h" |
| +#include "third_party/WebKit/Source/Platform/chromium/public/WebCompositorSupport.h" |
| + |
| +namespace webkit { |
| + |
| +class WebCompositorSupportImpl : public WebKit::WebCompositorSupport { |
| + public: |
| + WebCompositorSupportImpl(); |
| + virtual ~WebCompositorSupportImpl(); |
| + |
| + virtual WebKit::WebLayerTreeView* createLayerTreeView( |
| + WebKit::WebLayerTreeViewClient* client, const WebKit::WebLayer& root, |
|
tfarina
2012/09/01 23:30:02
nit: write one arg per line?
|
| + const WebKit::WebLayerTreeView::Settings& settings); |
| + |
| + virtual WebKit::WebLayer* createLayer(); |
| + virtual WebKit::WebContentLayer* createContentLayer( |
| + WebKit::WebContentLayerClient* client); |
| + virtual WebKit::WebExternalTextureLayer* |
| + createExternalTextureLayer(WebKit::WebExternalTextureLayerClient* client); |
|
tfarina
2012/09/01 23:30:02
indent 4 spaces. same for the other cases below.
|
| + virtual WebKit::WebIOSurfaceLayer* |
| + createIOSurfaceLayer(); |
| + virtual WebKit::WebImageLayer* createImageLayer(); |
| + virtual WebKit::WebSolidColorLayer* |
| + createSolidColorLayer(); |
| + virtual WebKit::WebVideoLayer* |
| + createVideoLayer(WebKit::WebVideoFrameProvider*); |
| + virtual WebKit::WebScrollbarLayer* createScrollbarLayer( |
| + WebKit::WebScrollbar* scrollbar, |
| + WebKit::WebScrollbarThemePainter painter, |
| + WebKit::WebScrollbarThemeGeometry*); |
| + virtual WebKit::WebAnimation* createAnimation( |
| + const WebKit::WebAnimationCurve& curve, |
| + WebKit::WebAnimation::TargetProperty target, |
| + int animationId); |
|
tfarina
2012/09/01 23:30:02
does this needs to follow our naming convention? u
|
| + virtual WebKit::WebFloatAnimationCurve* |
| + createFloatAnimationCurve(); |
| + virtual WebKit::WebTransformAnimationCurve* |
| + createTransformAnimationCurve(); |
| +}; |
|
tfarina
2012/09/01 23:30:02
do we want to disallow copy and assign of this cla
|
| + |
| +} // namespace webkit |
| + |
| +#endif // WEBKIT_COMPOSITOR_BINDINGS_WEB_COMPOSITOR_SUPPORT_IMPL_H_ |