OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef WebLayerImpl_h | |
6 #define WebLayerImpl_h | |
7 | |
8 #include <public/WebLayer.h> | |
9 #include <wtf/PassRefPtr.h> | |
10 #include <wtf/RefPtr.h> | |
11 | |
12 namespace WebCore { | |
13 class LayerChromium; | |
14 } | |
15 | |
16 namespace WebKit { | |
17 | |
18 class WebLayerImpl : public WebLayer { | |
19 public: | |
20 WebLayerImpl(); | |
21 explicit WebLayerImpl(PassRefPtr<WebCore::LayerChromium>); | |
22 virtual ~WebLayerImpl(); | |
23 | |
24 // WebLayer implementation. | |
25 virtual int id() const OVERRIDE; | |
26 virtual void invalidateRect(const WebFloatRect&) OVERRIDE; | |
27 virtual void invalidate() OVERRIDE; | |
28 virtual void addChild(WebLayer*) OVERRIDE; | |
29 virtual void insertChild(WebLayer*, size_t index) OVERRIDE; | |
30 virtual void replaceChild(WebLayer* reference, WebLayer* newLayer) OVERRIDE; | |
31 virtual void removeFromParent() OVERRIDE; | |
32 virtual void removeAllChildren() OVERRIDE; | |
33 virtual void setAnchorPoint(const WebFloatPoint&) OVERRIDE; | |
34 virtual WebFloatPoint anchorPoint() const OVERRIDE; | |
35 virtual void setAnchorPointZ(float) OVERRIDE; | |
36 virtual float anchorPointZ() const OVERRIDE; | |
37 virtual void setBounds(const WebSize&) OVERRIDE; | |
38 virtual WebSize bounds() const OVERRIDE; | |
39 virtual void setMasksToBounds(bool) OVERRIDE; | |
40 virtual bool masksToBounds() const OVERRIDE; | |
41 virtual void setMaskLayer(WebLayer*) OVERRIDE; | |
42 virtual void setReplicaLayer(WebLayer*) OVERRIDE; | |
43 virtual void setOpacity(float) OVERRIDE; | |
44 virtual float opacity() const OVERRIDE; | |
45 virtual void setOpaque(bool) OVERRIDE; | |
46 virtual bool opaque() const OVERRIDE; | |
47 virtual void setPosition(const WebFloatPoint&) OVERRIDE; | |
48 virtual WebFloatPoint position() const OVERRIDE; | |
49 virtual void setSublayerTransform(const SkMatrix44&) OVERRIDE; | |
50 virtual void setSublayerTransform(const WebTransformationMatrix&) OVERRIDE; | |
51 virtual SkMatrix44 sublayerTransform() const OVERRIDE; | |
52 virtual void setTransform(const SkMatrix44&) OVERRIDE; | |
53 virtual void setTransform(const WebTransformationMatrix&) OVERRIDE; | |
54 virtual SkMatrix44 transform() const OVERRIDE; | |
55 virtual void setDrawsContent(bool) OVERRIDE; | |
56 virtual bool drawsContent() const OVERRIDE; | |
57 virtual void setPreserves3D(bool) OVERRIDE; | |
58 virtual void setUseParentBackfaceVisibility(bool) OVERRIDE; | |
59 virtual void setBackgroundColor(WebColor) OVERRIDE; | |
60 virtual void setFilters(const WebFilterOperations&) OVERRIDE; | |
61 virtual void setBackgroundFilters(const WebFilterOperations&) OVERRIDE; | |
62 virtual void setDebugBorderColor(const WebColor&) OVERRIDE; | |
63 virtual void setDebugBorderWidth(float) OVERRIDE; | |
64 virtual void setDebugName(WebString) OVERRIDE; | |
65 virtual void setAnimationDelegate(WebAnimationDelegate*) OVERRIDE; | |
66 virtual bool addAnimation(WebAnimation*) OVERRIDE; | |
67 virtual void removeAnimation(int animationId) OVERRIDE; | |
68 virtual void removeAnimation(int animationId, WebAnimation::TargetProperty)
OVERRIDE; | |
69 virtual void pauseAnimation(int animationId, double timeOffset) OVERRIDE; | |
70 virtual void suspendAnimations(double monotonicTime) OVERRIDE; | |
71 virtual void resumeAnimations(double monotonicTime) OVERRIDE; | |
72 virtual bool hasActiveAnimation() OVERRIDE; | |
73 virtual void transferAnimationsTo(WebLayer*) OVERRIDE; | |
74 virtual void setForceRenderSurface(bool) OVERRIDE; | |
75 virtual void setScrollPosition(WebPoint) OVERRIDE; | |
76 virtual void setScrollable(bool) OVERRIDE; | |
77 virtual void setHaveWheelEventHandlers(bool) OVERRIDE; | |
78 virtual void setShouldScrollOnMainThread(bool) OVERRIDE; | |
79 virtual void setNonFastScrollableRegion(const WebVector<WebRect>&) OVERRIDE; | |
80 virtual void setIsContainerForFixedPositionLayers(bool) OVERRIDE; | |
81 virtual void setFixedToContainerLayer(bool) OVERRIDE; | |
82 | |
83 WebCore::LayerChromium* layer() const; | |
84 | |
85 protected: | |
86 RefPtr<WebCore::LayerChromium> m_layer; | |
87 }; | |
88 | |
89 } // namespace WebKit | |
90 | |
91 #endif // WebLayerImpl_h | |
OLD | NEW |