OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
56 | 56 |
57 namespace WebCore { | 57 namespace WebCore { |
58 | 58 |
59 class FloatRect; | 59 class FloatRect; |
60 class GraphicsContext; | 60 class GraphicsContext; |
61 class GraphicsLayerFactory; | 61 class GraphicsLayerFactory; |
62 class Image; | 62 class Image; |
63 class ScrollableArea; | 63 class ScrollableArea; |
64 class TextStream; | 64 class TextStream; |
65 class TimingFunction; | 65 class TimingFunction; |
66 class RenderView; | |
jamesr
2013/08/19 03:19:49
No. RenderView is a core/rendering/ concept and c
| |
66 | 67 |
67 // Base class for animation values (also used for transitions). Here to | 68 // Base class for animation values (also used for transitions). Here to |
68 // represent values for properties being animated via the GraphicsLayer, | 69 // represent values for properties being animated via the GraphicsLayer, |
69 // without pulling in style-related data from outside of the platform directory. | 70 // without pulling in style-related data from outside of the platform directory. |
70 // FIXME: Should be moved to its own header file. | 71 // FIXME: Should be moved to its own header file. |
71 class AnimationValue { | 72 class AnimationValue { |
72 WTF_MAKE_FAST_ALLOCATED; | 73 WTF_MAKE_FAST_ALLOCATED; |
73 public: | 74 public: |
74 explicit AnimationValue(float keyTime, PassRefPtr<TimingFunction> timingFunc tion = 0) | 75 explicit AnimationValue(float keyTime, PassRefPtr<TimingFunction> timingFunc tion = 0) |
75 : m_keyTime(keyTime) | 76 : m_keyTime(keyTime) |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
332 // Set that the position/size of the contents (image or video). | 333 // Set that the position/size of the contents (image or video). |
333 IntRect contentsRect() const { return m_contentsRect; } | 334 IntRect contentsRect() const { return m_contentsRect; } |
334 void setContentsRect(const IntRect&); | 335 void setContentsRect(const IntRect&); |
335 | 336 |
336 // Transitions are identified by a special animation name that cannot clash with a keyframe identifier. | 337 // Transitions are identified by a special animation name that cannot clash with a keyframe identifier. |
337 static String animationNameForTransition(AnimatedPropertyID); | 338 static String animationNameForTransition(AnimatedPropertyID); |
338 | 339 |
339 // Return true if the animation is handled by the compositing system. If thi s returns | 340 // Return true if the animation is handled by the compositing system. If thi s returns |
340 // false, the animation will be run by AnimationController. | 341 // false, the animation will be run by AnimationController. |
341 // These methods handle both transitions and keyframe animations. | 342 // These methods handle both transitions and keyframe animations. |
342 bool addAnimation(const KeyframeValueList&, const IntSize& /*boxSize*/, cons t CSSAnimationData*, const String& /*animationName*/, double /*timeOffset*/); | 343 bool addAnimation(const KeyframeValueList&, const IntSize& /*boxSize*/, cons t CSSAnimationData*, const String& /*animationName*/, double /*timeOffset*/, Ren derView* = 0); |
343 void pauseAnimation(const String& /*animationName*/, double /*timeOffset*/); | 344 void pauseAnimation(const String& /*animationName*/, double /*timeOffset*/); |
344 void removeAnimation(const String& /*animationName*/); | 345 void removeAnimation(const String& /*animationName*/); |
345 | 346 |
346 void suspendAnimations(double time); | 347 void suspendAnimations(double time); |
347 void resumeAnimations(); | 348 void resumeAnimations(); |
348 | 349 |
349 // Layer contents | 350 // Layer contents |
350 void setContentsToImage(Image*); | 351 void setContentsToImage(Image*); |
351 bool shouldDirectlyCompositeImage(Image*) const { return true; } | 352 bool shouldDirectlyCompositeImage(Image*) const { return true; } |
352 void setContentsToMedia(WebKit::WebLayer*); // video or plug-in | 353 void setContentsToMedia(WebKit::WebLayer*); // video or plug-in |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
551 | 552 |
552 | 553 |
553 } // namespace WebCore | 554 } // namespace WebCore |
554 | 555 |
555 #ifndef NDEBUG | 556 #ifndef NDEBUG |
556 // Outside the WebCore namespace for ease of invocation from gdb. | 557 // Outside the WebCore namespace for ease of invocation from gdb. |
557 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer); | 558 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer); |
558 #endif | 559 #endif |
559 | 560 |
560 #endif // GraphicsLayer_h | 561 #endif // GraphicsLayer_h |
OLD | NEW |