| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 TimedItemTiming_h | 5 #ifndef TimedItemTiming_h |
| 6 #define TimedItemTiming_h | 6 #define TimedItemTiming_h |
| 7 | 7 |
| 8 #include "core/animation/TimedItem.h" | 8 #include "core/animation/TimedItem.h" |
| 9 #include "wtf/RefCounted.h" | 9 #include "wtf/RefCounted.h" |
| 10 #include "wtf/text/WTFString.h" | 10 #include "wtf/text/WTFString.h" |
| 11 | 11 |
| 12 namespace WebCore { | 12 namespace WebCore { |
| 13 | 13 |
| 14 class TimedItemTiming : public RefCounted<TimedItemTiming> { | 14 class TimedItemTiming : public RefCountedWillBeGarbageCollectedFinalized<TimedIt
emTiming> { |
| 15 public: | 15 public: |
| 16 static PassRefPtr<TimedItemTiming> create(TimedItem* parent); | 16 static PassRefPtrWillBeRawPtr<TimedItemTiming> create(TimedItem* parent); |
| 17 double delay(); | 17 double delay(); |
| 18 double endDelay(); | 18 double endDelay(); |
| 19 String fill(); | 19 String fill(); |
| 20 double iterationStart(); | 20 double iterationStart(); |
| 21 double iterations(); | 21 double iterations(); |
| 22 void getDuration(String propertyName, bool& element0Enabled, double& element
0, bool& element1Enabled, String& element1); | 22 void getDuration(String propertyName, bool& element0Enabled, double& element
0, bool& element1Enabled, String& element1); |
| 23 double playbackRate(); | 23 double playbackRate(); |
| 24 String direction(); | 24 String direction(); |
| 25 String easing(); | 25 String easing(); |
| 26 | 26 |
| 27 void setDelay(double); | 27 void setDelay(double); |
| 28 void setEndDelay(double); | 28 void setEndDelay(double); |
| 29 void setFill(String); | 29 void setFill(String); |
| 30 void setIterationStart(double); | 30 void setIterationStart(double); |
| 31 void setIterations(double); | 31 void setIterations(double); |
| 32 bool setDuration(String name, double duration); | 32 bool setDuration(String name, double duration); |
| 33 void setPlaybackRate(double); | 33 void setPlaybackRate(double); |
| 34 void setDirection(String); | 34 void setDirection(String); |
| 35 void setEasing(String); | 35 void setEasing(String); |
| 36 |
| 37 void trace(Visitor*); |
| 38 |
| 36 private: | 39 private: |
| 37 RefPtr<TimedItem> m_parent; | 40 RefPtrWillBeMember<TimedItem> m_parent; |
| 38 TimedItemTiming(TimedItem* parent); | 41 explicit TimedItemTiming(TimedItem*); |
| 39 }; | 42 }; |
| 40 | 43 |
| 41 } // namespace WebCore | 44 } // namespace WebCore |
| 42 | 45 |
| 43 #endif | 46 #endif |
| OLD | NEW |