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 "third_party/WebKit/Source/Platform/chromium/public/WebAnimation.h" | 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebAnimation.h" |
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebColor.h" | 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebColor.h" |
11 #include "third_party/WebKit/Source/Platform/chromium/public/WebCompositingReaso
ns.h" | |
12 #include "third_party/WebKit/Source/Platform/chromium/public/WebFloatPoint.h" | 11 #include "third_party/WebKit/Source/Platform/chromium/public/WebFloatPoint.h" |
13 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayer.h" | 12 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayer.h" |
14 #include "third_party/WebKit/Source/Platform/chromium/public/WebPoint.h" | 13 #include "third_party/WebKit/Source/Platform/chromium/public/WebPoint.h" |
15 #include "third_party/WebKit/Source/Platform/chromium/public/WebRect.h" | 14 #include "third_party/WebKit/Source/Platform/chromium/public/WebRect.h" |
16 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" | 15 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" |
17 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" | 16 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" |
18 #include "third_party/WebKit/Source/Platform/chromium/public/WebVector.h" | 17 #include "third_party/WebKit/Source/Platform/chromium/public/WebVector.h" |
19 #include "third_party/skia/include/utils/SkMatrix44.h" | 18 #include "third_party/skia/include/utils/SkMatrix44.h" |
20 #include "webkit/renderer/compositor_bindings/webkit_compositor_bindings_export.
h" | 19 #include "webkit/renderer/compositor_bindings/webkit_compositor_bindings_export.
h" |
21 | 20 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 virtual void setDrawsContent(bool draws_content); | 74 virtual void setDrawsContent(bool draws_content); |
76 virtual bool drawsContent() const; | 75 virtual bool drawsContent() const; |
77 virtual void setPreserves3D(bool preserves_3d); | 76 virtual void setPreserves3D(bool preserves_3d); |
78 virtual void setUseParentBackfaceVisibility(bool visible); | 77 virtual void setUseParentBackfaceVisibility(bool visible); |
79 virtual void setBackgroundColor(WebKit::WebColor color); | 78 virtual void setBackgroundColor(WebKit::WebColor color); |
80 virtual WebKit::WebColor backgroundColor() const; | 79 virtual WebKit::WebColor backgroundColor() const; |
81 virtual void setFilter(SkImageFilter* filter); | 80 virtual void setFilter(SkImageFilter* filter); |
82 virtual void setFilters(const WebKit::WebFilterOperations& filters); | 81 virtual void setFilters(const WebKit::WebFilterOperations& filters); |
83 virtual void setBackgroundFilters(const WebKit::WebFilterOperations& filters); | 82 virtual void setBackgroundFilters(const WebKit::WebFilterOperations& filters); |
84 virtual void setDebugName(WebKit::WebString name); | 83 virtual void setDebugName(WebKit::WebString name); |
85 virtual void setCompositingReasons(WebKit::WebCompositingReasons); | |
86 virtual void setAnimationDelegate(WebKit::WebAnimationDelegate* delegate); | 84 virtual void setAnimationDelegate(WebKit::WebAnimationDelegate* delegate); |
87 virtual bool addAnimation(WebKit::WebAnimation* animation); | 85 virtual bool addAnimation(WebKit::WebAnimation* animation); |
88 virtual void removeAnimation(int animation_id); | 86 virtual void removeAnimation(int animation_id); |
89 virtual void removeAnimation(int animation_id, | 87 virtual void removeAnimation(int animation_id, |
90 WebKit::WebAnimation::TargetProperty); | 88 WebKit::WebAnimation::TargetProperty); |
91 virtual void pauseAnimation(int animation_id, double time_offset); | 89 virtual void pauseAnimation(int animation_id, double time_offset); |
92 virtual void suspendAnimations(double monotonic_time); | 90 virtual void suspendAnimations(double monotonic_time); |
93 virtual void resumeAnimations(double monotonic_time); | 91 virtual void resumeAnimations(double monotonic_time); |
94 virtual bool hasActiveAnimation(); | 92 virtual bool hasActiveAnimation(); |
95 virtual void transferAnimationsTo(WebKit::WebLayer* layer); | 93 virtual void transferAnimationsTo(WebKit::WebLayer* layer); |
(...skipping 25 matching lines...) Expand all Loading... |
121 protected: | 119 protected: |
122 scoped_refptr<cc::Layer> layer_; | 120 scoped_refptr<cc::Layer> layer_; |
123 | 121 |
124 private: | 122 private: |
125 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); | 123 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); |
126 }; | 124 }; |
127 | 125 |
128 } // namespace WebKit | 126 } // namespace WebKit |
129 | 127 |
130 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_H_ | 128 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_H_ |
OLD | NEW |