| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 // n - if this player requires an update after 'n' units of time | 75 // n - if this player requires an update after 'n' units of time |
| 76 double timeToEffectChange(); | 76 double timeToEffectChange(); |
| 77 | 77 |
| 78 void cancel(); | 78 void cancel(); |
| 79 | 79 |
| 80 double currentTime(bool& isNull); | 80 double currentTime(bool& isNull); |
| 81 double currentTime(); | 81 double currentTime(); |
| 82 void setCurrentTime(double newCurrentTime); | 82 void setCurrentTime(double newCurrentTime); |
| 83 | 83 |
| 84 double currentTimeInternal() const; | 84 double currentTimeInternal() const; |
| 85 double unlimitedCurrentTimeInternal() const; |
| 85 | 86 |
| 86 void setCurrentTimeInternal(double newCurrentTime, TimingUpdateReason = Timi
ngUpdateOnDemand); | 87 void setCurrentTimeInternal(double newCurrentTime, TimingUpdateReason = Timi
ngUpdateOnDemand); |
| 87 bool paused() const { return m_paused && !m_isPausedForTesting; } | 88 bool paused() const { return m_paused && !m_isPausedForTesting; } |
| 88 static const char* playStateString(AnimationPlayState); | 89 static const char* playStateString(AnimationPlayState); |
| 89 String playState() const { return playStateString(playStateInternal()); } | 90 String playState() const { return playStateString(playStateInternal()); } |
| 90 AnimationPlayState playStateInternal() const; | 91 AnimationPlayState playStateInternal() const; |
| 91 | 92 |
| 92 void pause(); | 93 void pause(); |
| 93 void play(); | 94 void play(); |
| 94 void reverse(); | 95 void reverse(); |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 int m_compositorGroup; | 265 int m_compositorGroup; |
| 265 | 266 |
| 266 bool m_currentTimePending; | 267 bool m_currentTimePending; |
| 267 bool m_stateIsBeingUpdated; | 268 bool m_stateIsBeingUpdated; |
| 268 | 269 |
| 269 }; | 270 }; |
| 270 | 271 |
| 271 } // namespace blink | 272 } // namespace blink |
| 272 | 273 |
| 273 #endif // AnimationPlayer_h | 274 #endif // AnimationPlayer_h |
| OLD | NEW |