blob: 01a7bafdbfafe9f96fdcb6928a5bd37118d846e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
// Copyright 2011 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 WebLayerImpl_h
#define WebLayerImpl_h
#include "base/memory/ref_counted.h"
#include "third_party/WebKit/Source/Platform/chromium/public/WebLayer.h"
namespace cc {
class Layer;
}
namespace WebKit {
class WebLayerImpl : public WebLayer {
public:
WebLayerImpl();
explicit WebLayerImpl(scoped_refptr<cc::Layer>);
virtual ~WebLayerImpl();
// WebLayer implementation.
virtual int id() const OVERRIDE;
virtual void invalidateRect(const WebFloatRect&) OVERRIDE;
virtual void invalidate() OVERRIDE;
virtual void addChild(WebLayer*) OVERRIDE;
virtual void insertChild(WebLayer*, size_t index) OVERRIDE;
virtual void replaceChild(WebLayer* reference, WebLayer* newLayer) OVERRIDE;
virtual void removeFromParent() OVERRIDE;
virtual void removeAllChildren() OVERRIDE;
virtual void setAnchorPoint(const WebFloatPoint&) OVERRIDE;
virtual WebFloatPoint anchorPoint() const OVERRIDE;
virtual void setAnchorPointZ(float) OVERRIDE;
virtual float anchorPointZ() const OVERRIDE;
virtual void setBounds(const WebSize&) OVERRIDE;
virtual WebSize bounds() const OVERRIDE;
virtual void setMasksToBounds(bool) OVERRIDE;
virtual bool masksToBounds() const OVERRIDE;
virtual void setMaskLayer(WebLayer*) OVERRIDE;
virtual void setReplicaLayer(WebLayer*) OVERRIDE;
virtual void setOpacity(float) OVERRIDE;
virtual float opacity() const OVERRIDE;
virtual void setOpaque(bool) OVERRIDE;
virtual bool opaque() const OVERRIDE;
virtual void setPosition(const WebFloatPoint&) OVERRIDE;
virtual WebFloatPoint position() const OVERRIDE;
virtual void setSublayerTransform(const SkMatrix44&) OVERRIDE;
virtual void setSublayerTransform(const WebTransformationMatrix&) OVERRIDE;
virtual SkMatrix44 sublayerTransform() const OVERRIDE;
virtual void setTransform(const SkMatrix44&) OVERRIDE;
virtual void setTransform(const WebTransformationMatrix&) OVERRIDE;
virtual SkMatrix44 transform() const OVERRIDE;
virtual void setDrawsContent(bool) OVERRIDE;
virtual bool drawsContent() const OVERRIDE;
virtual void setPreserves3D(bool) OVERRIDE;
virtual void setUseParentBackfaceVisibility(bool) OVERRIDE;
virtual void setBackgroundColor(WebColor) OVERRIDE;
virtual WebColor backgroundColor() const;
virtual void setFilters(const WebFilterOperations&) OVERRIDE;
virtual void setBackgroundFilters(const WebFilterOperations&) OVERRIDE;
virtual void setDebugBorderColor(const WebColor&) OVERRIDE;
virtual void setDebugBorderWidth(float) OVERRIDE;
virtual void setDebugName(WebString) OVERRIDE;
virtual void setAnimationDelegate(WebAnimationDelegate*) OVERRIDE;
virtual bool addAnimation(WebAnimation*) OVERRIDE;
virtual void removeAnimation(int animationId) OVERRIDE;
virtual void removeAnimation(int animationId, WebAnimation::TargetProperty) OVERRIDE;
virtual void pauseAnimation(int animationId, double timeOffset) OVERRIDE;
virtual void suspendAnimations(double monotonicTime) OVERRIDE;
virtual void resumeAnimations(double monotonicTime) OVERRIDE;
virtual bool hasActiveAnimation() OVERRIDE;
virtual void transferAnimationsTo(WebLayer*) OVERRIDE;
virtual void setForceRenderSurface(bool) OVERRIDE;
virtual void setScrollPosition(WebPoint) OVERRIDE;
virtual WebPoint scrollPosition() const OVERRIDE;
virtual void setMaxScrollPosition(WebSize) OVERRIDE;
virtual WebSize maxScrollPosition() const;
virtual void setScrollable(bool) OVERRIDE;
virtual bool scrollable() const;
virtual void setHaveWheelEventHandlers(bool) OVERRIDE;
virtual bool haveWheelEventHandlers() const;
virtual void setShouldScrollOnMainThread(bool) OVERRIDE;
virtual bool shouldScrollOnMainThread() const;
virtual void setNonFastScrollableRegion(const WebVector<WebRect>&) OVERRIDE;
virtual WebVector<WebRect> nonFastScrollableRegion() const;
virtual void setIsContainerForFixedPositionLayers(bool) OVERRIDE;
virtual bool isContainerForFixedPositionLayers() const;
virtual void setFixedToContainerLayer(bool) OVERRIDE;
virtual bool fixedToContainerLayer() const;
virtual void setScrollClient(WebLayerScrollClient*) OVERRIDE;
cc::Layer* layer() const;
protected:
scoped_refptr<cc::Layer> m_layer;
};
} // namespace WebKit
#endif // WebLayerImpl_h
|