| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_LAYER_IMPL_H_ | 5 #ifndef WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_H_ |
| 6 #define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_H_ | 6 #define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "third_party/WebKit/public/platform/WebAnimation.h" | 10 #include "third_party/WebKit/public/platform/WebAnimation.h" |
| 11 #include "third_party/WebKit/public/platform/WebColor.h" | 11 #include "third_party/WebKit/public/platform/WebColor.h" |
| 12 #include "third_party/WebKit/public/platform/WebCompositingReasons.h" | 12 #include "third_party/WebKit/public/platform/WebCompositingReasons.h" |
| 13 #include "third_party/WebKit/public/platform/WebFloatPoint.h" | 13 #include "third_party/WebKit/public/platform/WebFloatPoint.h" |
| 14 #include "third_party/WebKit/public/platform/WebLayer.h" | 14 #include "third_party/WebKit/public/platform/WebLayer.h" |
| 15 #include "third_party/WebKit/public/platform/WebPoint.h" | 15 #include "third_party/WebKit/public/platform/WebPoint.h" |
| 16 #include "third_party/WebKit/public/platform/WebRect.h" | 16 #include "third_party/WebKit/public/platform/WebRect.h" |
| 17 #include "third_party/WebKit/public/platform/WebSize.h" | 17 #include "third_party/WebKit/public/platform/WebSize.h" |
| 18 #include "third_party/WebKit/public/platform/WebString.h" | 18 #include "third_party/WebKit/public/platform/WebString.h" |
| 19 #include "third_party/WebKit/public/platform/WebVector.h" | 19 #include "third_party/WebKit/public/platform/WebVector.h" |
| 20 #include "third_party/skia/include/utils/SkMatrix44.h" | 20 #include "third_party/skia/include/utils/SkMatrix44.h" |
| 21 #include "webkit/renderer/compositor_bindings/webkit_compositor_bindings_export.
h" | 21 #include "webkit/renderer/compositor_bindings/webkit_compositor_bindings_export.
h" |
| 22 | 22 |
| 23 namespace cc { class Layer; } | 23 namespace cc { class Layer; } |
| 24 | 24 |
| 25 // TODO(senorblanco): Remove this once WebKit changes have landed. | 25 // TODO(senorblanco): Remove this once WebKit changes have landed. |
| 26 class SkImageFilter; | 26 class SkImageFilter; |
| 27 | 27 |
| 28 namespace WebKit { | 28 namespace WebKit { |
| 29 class WebAnimationDelegate; | |
| 30 class WebFilterOperations; | 29 class WebFilterOperations; |
| 31 class WebLayerScrollClient; | |
| 32 struct WebFloatRect; | 30 struct WebFloatRect; |
| 33 } | 31 } |
| 34 | 32 |
| 35 namespace webkit { | 33 namespace webkit { |
| 36 | 34 |
| 37 class WebToCCAnimationDelegateAdapter; | 35 class WebToCCAnimationDelegateAdapter; |
| 36 class WebToCCLayerScrollClientAdapter; |
| 38 | 37 |
| 39 class WebLayerImpl : public WebKit::WebLayer { | 38 class WebLayerImpl : public WebKit::WebLayer { |
| 40 public: | 39 public: |
| 41 WEBKIT_COMPOSITOR_BINDINGS_EXPORT WebLayerImpl(); | 40 WEBKIT_COMPOSITOR_BINDINGS_EXPORT WebLayerImpl(); |
| 42 WEBKIT_COMPOSITOR_BINDINGS_EXPORT explicit WebLayerImpl( | 41 WEBKIT_COMPOSITOR_BINDINGS_EXPORT explicit WebLayerImpl( |
| 43 scoped_refptr<cc::Layer>); | 42 scoped_refptr<cc::Layer>); |
| 44 virtual ~WebLayerImpl(); | 43 virtual ~WebLayerImpl(); |
| 45 | 44 |
| 46 WEBKIT_COMPOSITOR_BINDINGS_EXPORT cc::Layer* layer() const; | 45 WEBKIT_COMPOSITOR_BINDINGS_EXPORT cc::Layer* layer() const; |
| 47 | 46 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 const WebKit::WebLayerPositionConstraint& constraint); | 117 const WebKit::WebLayerPositionConstraint& constraint); |
| 119 virtual WebKit::WebLayerPositionConstraint positionConstraint() const; | 118 virtual WebKit::WebLayerPositionConstraint positionConstraint() const; |
| 120 virtual void setScrollClient(WebKit::WebLayerScrollClient* client); | 119 virtual void setScrollClient(WebKit::WebLayerScrollClient* client); |
| 121 virtual bool isOrphan() const; | 120 virtual bool isOrphan() const; |
| 122 | 121 |
| 123 protected: | 122 protected: |
| 124 scoped_refptr<cc::Layer> layer_; | 123 scoped_refptr<cc::Layer> layer_; |
| 125 | 124 |
| 126 private: | 125 private: |
| 127 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_; | 126 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_; |
| 127 scoped_ptr<WebToCCLayerScrollClientAdapter> layer_scroll_client_adapter_; |
| 128 | 128 |
| 129 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); | 129 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); |
| 130 }; | 130 }; |
| 131 | 131 |
| 132 } // namespace webkit | 132 } // namespace webkit |
| 133 | 133 |
| 134 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_H_ | 134 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_H_ |
| OLD | NEW |