Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Side by Side Diff: webkit/compositor_bindings/web_layer_impl.h

Issue 14651027: Move webkit/compositor_bindings into webkit/renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 WEBKIT_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_H_
6 #define WEBKIT_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_H_
7
8 #include "base/memory/ref_counted.h"
9 #include "third_party/WebKit/Source/Platform/chromium/public/WebAnimation.h"
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebColor.h"
11 #include "third_party/WebKit/Source/Platform/chromium/public/WebFloatPoint.h"
12 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayer.h"
13 #include "third_party/WebKit/Source/Platform/chromium/public/WebPoint.h"
14 #include "third_party/WebKit/Source/Platform/chromium/public/WebRect.h"
15 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h"
16 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h"
17 #include "third_party/WebKit/Source/Platform/chromium/public/WebVector.h"
18 #include "third_party/skia/include/utils/SkMatrix44.h"
19 #include "webkit/compositor_bindings/webkit_compositor_bindings_export.h"
20
21 namespace cc { class Layer; }
22
23 // TODO(senorblanco): Remove this once WebKit changes have landed.
24 class SkImageFilter;
25
26 namespace WebKit {
27 class WebAnimationDelegate;
28 class WebFilterOperations;
29 class WebLayerScrollClient;
30 struct WebFloatRect;
31 }
32
33 namespace webkit {
34
35 class WebLayerImpl : public WebKit::WebLayer {
36 public:
37 WEBKIT_COMPOSITOR_BINDINGS_EXPORT WebLayerImpl();
38 WEBKIT_COMPOSITOR_BINDINGS_EXPORT explicit WebLayerImpl(
39 scoped_refptr<cc::Layer>);
40 virtual ~WebLayerImpl();
41
42 WEBKIT_COMPOSITOR_BINDINGS_EXPORT cc::Layer* layer() const;
43
44 // WebLayer implementation.
45 virtual int id() const;
46 virtual void invalidateRect(const WebKit::WebFloatRect&);
47 virtual void invalidate();
48 virtual void addChild(WebKit::WebLayer* child);
49 virtual void insertChild(WebKit::WebLayer* child, size_t index);
50 virtual void replaceChild(WebKit::WebLayer* reference,
51 WebKit::WebLayer* new_layer);
52 virtual void removeFromParent();
53 virtual void removeAllChildren();
54 virtual void setAnchorPoint(const WebKit::WebFloatPoint&);
55 virtual WebKit::WebFloatPoint anchorPoint() const;
56 virtual void setAnchorPointZ(float anchor_point_z);
57 virtual float anchorPointZ() const;
58 virtual void setBounds(const WebKit::WebSize& bounds);
59 virtual WebKit::WebSize bounds() const;
60 virtual void setMasksToBounds(bool masks_to_bounds);
61 virtual bool masksToBounds() const;
62 virtual void setMaskLayer(WebKit::WebLayer* mask);
63 virtual void setReplicaLayer(WebKit::WebLayer* replica);
64 virtual void setOpacity(float opacity);
65 virtual float opacity() const;
66 virtual void setOpaque(bool opaque);
67 virtual bool opaque() const;
68 virtual void setPosition(const WebKit::WebFloatPoint& position);
69 virtual WebKit::WebFloatPoint position() const;
70 virtual void setSublayerTransform(const SkMatrix44&);
71 virtual SkMatrix44 sublayerTransform() const;
72 virtual void setTransform(const SkMatrix44& transform);
73 virtual SkMatrix44 transform() const;
74 virtual void setDrawsContent(bool draws_content);
75 virtual bool drawsContent() const;
76 virtual void setPreserves3D(bool preserves_3d);
77 virtual void setUseParentBackfaceVisibility(bool visible);
78 virtual void setBackgroundColor(WebKit::WebColor color);
79 virtual WebKit::WebColor backgroundColor() const;
80 virtual void setFilter(SkImageFilter* filter);
81 virtual void setFilters(const WebKit::WebFilterOperations& filters);
82 virtual void setBackgroundFilters(const WebKit::WebFilterOperations& filters);
83 virtual void setDebugName(WebKit::WebString name);
84 virtual void setAnimationDelegate(WebKit::WebAnimationDelegate* delegate);
85 virtual bool addAnimation(WebKit::WebAnimation* animation);
86 virtual void removeAnimation(int animation_id);
87 virtual void removeAnimation(int animation_id,
88 WebKit::WebAnimation::TargetProperty);
89 virtual void pauseAnimation(int animation_id, double time_offset);
90 virtual void suspendAnimations(double monotonic_time);
91 virtual void resumeAnimations(double monotonic_time);
92 virtual bool hasActiveAnimation();
93 virtual void transferAnimationsTo(WebKit::WebLayer* layer);
94 virtual void setForceRenderSurface(bool force);
95 virtual void setScrollPosition(WebKit::WebPoint position);
96 virtual WebKit::WebPoint scrollPosition() const;
97 virtual void setMaxScrollPosition(WebKit::WebSize max_position);
98 virtual WebKit::WebSize maxScrollPosition() const;
99 virtual void setScrollable(bool scrollable);
100 virtual bool scrollable() const;
101 virtual void setHaveWheelEventHandlers(bool have_wheel_event_handlers);
102 virtual bool haveWheelEventHandlers() const;
103 virtual void setShouldScrollOnMainThread(bool scroll_on_main);
104 virtual bool shouldScrollOnMainThread() const;
105 virtual void setNonFastScrollableRegion(
106 const WebKit::WebVector<WebKit::WebRect>& region);
107 virtual WebKit::WebVector<WebKit::WebRect> nonFastScrollableRegion() const;
108 virtual void setTouchEventHandlerRegion(
109 const WebKit::WebVector<WebKit::WebRect>& region);
110 virtual WebKit::WebVector<WebKit::WebRect> touchEventHandlerRegion() const;
111 virtual void setIsContainerForFixedPositionLayers(bool is_container);
112 virtual bool isContainerForFixedPositionLayers() const;
113 virtual void setPositionConstraint(
114 const WebKit::WebLayerPositionConstraint& constraint);
115 virtual WebKit::WebLayerPositionConstraint positionConstraint() const;
116 virtual void setScrollClient(WebKit::WebLayerScrollClient* client);
117 virtual bool isOrphan() const;
118
119 protected:
120 scoped_refptr<cc::Layer> layer_;
121
122 private:
123 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl);
124 };
125
126 } // namespace WebKit
127
128 #endif // WEBKIT_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/compositor_bindings/web_image_layer_impl.cc ('k') | webkit/compositor_bindings/web_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698