| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 21 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef WebCompositorSupport_h | 26 #ifndef WebCompositorSupport_h |
| 27 #define WebCompositorSupport_h | 27 #define WebCompositorSupport_h |
| 28 | 28 |
| 29 #include "WebCommon.h" | 29 #include "WebCommon.h" |
| 30 #include "WebCompositorAnimation.h" | 30 #include "WebCompositorAnimation.h" |
| 31 #include "WebCompositorAnimationCurve.h" | |
| 32 #include "WebFloatPoint.h" | 31 #include "WebFloatPoint.h" |
| 33 #include "WebLayerTreeView.h" | 32 #include "WebLayerTreeView.h" |
| 34 #include "WebScrollOffsetAnimationCurve.h" | |
| 35 #include "WebScrollbar.h" | 33 #include "WebScrollbar.h" |
| 36 #include "WebScrollbarThemePainter.h" | 34 #include "WebScrollbarThemePainter.h" |
| 37 | 35 |
| 38 namespace cc { | 36 namespace cc { |
| 39 class Layer; | 37 class Layer; |
| 40 } | 38 } |
| 41 | 39 |
| 42 namespace blink { | 40 namespace blink { |
| 43 | 41 |
| 42 class WebCompositorAnimationCurve; |
| 44 class WebCompositorAnimationPlayer; | 43 class WebCompositorAnimationPlayer; |
| 45 class WebCompositorAnimationTimeline; | 44 class WebCompositorAnimationTimeline; |
| 46 class WebContentLayer; | 45 class WebContentLayer; |
| 47 class WebContentLayerClient; | 46 class WebContentLayerClient; |
| 48 class WebExternalTextureLayer; | 47 class WebExternalTextureLayer; |
| 49 class WebExternalTextureLayerClient; | 48 class WebExternalTextureLayerClient; |
| 50 class WebFilterAnimationCurve; | 49 class WebFilterAnimationCurve; |
| 51 class WebFilterOperations; | |
| 52 class WebFloatAnimationCurve; | 50 class WebFloatAnimationCurve; |
| 53 class WebGraphicsContext3D; | 51 class WebGraphicsContext3D; |
| 54 class WebImageLayer; | 52 class WebImageLayer; |
| 55 class WebLayer; | 53 class WebLayer; |
| 56 class WebScrollbarLayer; | 54 class WebScrollbarLayer; |
| 57 class WebScrollbarThemeGeometry; | 55 class WebScrollbarThemeGeometry; |
| 58 class WebTransformAnimationCurve; | 56 class WebTransformAnimationCurve; |
| 59 class WebTransformOperations; | |
| 60 | 57 |
| 61 class WebCompositorSupport { | 58 class WebCompositorSupport { |
| 62 public: | 59 public: |
| 63 | 60 |
| 64 // Layers ------------------------------------------------------- | 61 // Layers ------------------------------------------------------- |
| 65 | 62 |
| 66 virtual WebLayer* createLayer() { return nullptr; } | 63 virtual WebLayer* createLayer() { return nullptr; } |
| 67 | 64 |
| 68 virtual WebLayer* createLayerFromCCLayer(cc::Layer*) { return nullptr; } | 65 virtual WebLayer* createLayerFromCCLayer(cc::Layer*) { return nullptr; } |
| 69 | 66 |
| 70 virtual WebContentLayer* createContentLayer(WebContentLayerClient*) { return
nullptr; } | 67 virtual WebContentLayer* createContentLayer(WebContentLayerClient*) { return
nullptr; } |
| 71 | 68 |
| 72 virtual WebExternalTextureLayer* createExternalTextureLayer(WebExternalTextu
reLayerClient*) { return nullptr; } | 69 virtual WebExternalTextureLayer* createExternalTextureLayer(WebExternalTextu
reLayerClient*) { return nullptr; } |
| 73 | 70 |
| 74 virtual WebImageLayer* createImageLayer() { return nullptr; } | 71 virtual WebImageLayer* createImageLayer() { return nullptr; } |
| 75 | 72 |
| 76 // The ownership of the WebScrollbarThemeGeometry pointer is passed to Chrom
ium. | 73 // The ownership of the WebScrollbarThemeGeometry pointer is passed to Chrom
ium. |
| 77 virtual WebScrollbarLayer* createScrollbarLayer(WebScrollbar*, WebScrollbarT
hemePainter, WebScrollbarThemeGeometry*) { return nullptr; } | 74 virtual WebScrollbarLayer* createScrollbarLayer(WebScrollbar*, WebScrollbarT
hemePainter, WebScrollbarThemeGeometry*) { return nullptr; } |
| 78 | 75 |
| 79 virtual WebScrollbarLayer* createSolidColorScrollbarLayer(WebScrollbar::Orie
ntation, int thumbThickness, int trackStart, bool isLeftSideVerticalScrollbar) {
return nullptr; } | 76 virtual WebScrollbarLayer* createSolidColorScrollbarLayer(WebScrollbar::Orie
ntation, int thumbThickness, int trackStart, bool isLeftSideVerticalScrollbar) {
return nullptr; } |
| 80 | 77 |
| 81 // Animation ---------------------------------------------------- | 78 // Animation ---------------------------------------------------- |
| 82 | 79 |
| 83 virtual WebCompositorAnimation* createAnimation(const WebCompositorAnimation
Curve&, WebCompositorAnimation::TargetProperty, int groupId = 0, int animationId
= 0) { return nullptr; } | 80 virtual WebCompositorAnimation* createAnimation(const WebCompositorAnimation
Curve&, WebCompositorAnimation::TargetProperty, int groupId = 0, int animationId
= 0) { return nullptr; } |
| 84 | 81 |
| 85 virtual WebFilterAnimationCurve* createFilterAnimationCurve() { return nullp
tr; } | |
| 86 | |
| 87 virtual WebFloatAnimationCurve* createFloatAnimationCurve() { return nullptr
; } | |
| 88 | |
| 89 virtual WebScrollOffsetAnimationCurve* createScrollOffsetAnimationCurve( | |
| 90 WebFloatPoint targetValue, | |
| 91 WebCompositorAnimationCurve::TimingFunctionType, | |
| 92 WebScrollOffsetAnimationCurve::ScrollDurationBehavior) { return nullptr;
} | |
| 93 | |
| 94 virtual WebTransformAnimationCurve* createTransformAnimationCurve() { return
nullptr; } | |
| 95 | |
| 96 virtual WebTransformOperations* createTransformOperations() { return nullptr
; } | |
| 97 | |
| 98 virtual WebFilterOperations* createFilterOperations() { return nullptr; } | |
| 99 | |
| 100 virtual WebCompositorAnimationPlayer* createAnimationPlayer() { return nullp
tr; } | 82 virtual WebCompositorAnimationPlayer* createAnimationPlayer() { return nullp
tr; } |
| 101 | 83 |
| 102 virtual WebCompositorAnimationTimeline* createAnimationTimeline() { return n
ullptr; } | 84 virtual WebCompositorAnimationTimeline* createAnimationTimeline() { return n
ullptr; } |
| 103 | 85 |
| 104 protected: | 86 protected: |
| 105 virtual ~WebCompositorSupport() { } | 87 virtual ~WebCompositorSupport() { } |
| 106 }; | 88 }; |
| 107 | 89 |
| 108 } | 90 } |
| 109 | 91 |
| 110 #endif // WebCompositorSupport_h | 92 #endif // WebCompositorSupport_h |
| OLD | NEW |