| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2012, 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2012, 2013 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 #include "platform/heap/Handle.h" | 37 #include "platform/heap/Handle.h" |
| 38 #include "wtf/RefCounted.h" | 38 #include "wtf/RefCounted.h" |
| 39 | 39 |
| 40 namespace WebCore { | 40 namespace WebCore { |
| 41 | 41 |
| 42 class ExceptionState; | 42 class ExceptionState; |
| 43 | 43 |
| 44 class TextTrackCue : public RefCountedWillBeRefCountedGarbageCollected<TextTrack
Cue>, public EventTargetWithInlineData { | 44 class TextTrackCue : public RefCountedWillBeRefCountedGarbageCollected<TextTrack
Cue>, public EventTargetWithInlineData { |
| 45 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollected<T
extTrackCue>); | 45 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollected<T
extTrackCue>); |
| 46 public: | 46 public: |
| 47 static bool isInfiniteOrNonNumber(double value, ExceptionState&); | |
| 48 | |
| 49 static const AtomicString& cueShadowPseudoId() | 47 static const AtomicString& cueShadowPseudoId() |
| 50 { | 48 { |
| 51 DEFINE_STATIC_LOCAL(const AtomicString, cue, ("cue", AtomicString::Const
ructFromLiteral)); | 49 DEFINE_STATIC_LOCAL(const AtomicString, cue, ("cue", AtomicString::Const
ructFromLiteral)); |
| 52 return cue; | 50 return cue; |
| 53 } | 51 } |
| 54 | 52 |
| 55 virtual ~TextTrackCue() { } | 53 virtual ~TextTrackCue() { } |
| 56 | 54 |
| 57 TextTrack* track() const; | 55 TextTrack* track() const; |
| 58 void setTrack(TextTrack*); | 56 void setTrack(TextTrack*); |
| 59 | 57 |
| 60 Node* owner() const; | 58 Node* owner() const; |
| 61 | 59 |
| 62 const AtomicString& id() const { return m_id; } | 60 const AtomicString& id() const { return m_id; } |
| 63 void setId(const AtomicString&); | 61 void setId(const AtomicString&); |
| 64 | 62 |
| 65 double startTime() const { return m_startTime; } | 63 double startTime() const { return m_startTime; } |
| 66 void setStartTime(double, ExceptionState&); | 64 void setStartTime(double); |
| 67 | 65 |
| 68 double endTime() const { return m_endTime; } | 66 double endTime() const { return m_endTime; } |
| 69 void setEndTime(double, ExceptionState&); | 67 void setEndTime(double); |
| 70 | 68 |
| 71 bool pauseOnExit() const { return m_pauseOnExit; } | 69 bool pauseOnExit() const { return m_pauseOnExit; } |
| 72 void setPauseOnExit(bool); | 70 void setPauseOnExit(bool); |
| 73 | 71 |
| 74 int cueIndex(); | 72 int cueIndex(); |
| 75 void invalidateCueIndex(); | 73 void invalidateCueIndex(); |
| 76 | 74 |
| 77 using EventTarget::dispatchEvent; | 75 using EventTarget::dispatchEvent; |
| 78 virtual bool dispatchEvent(PassRefPtrWillBeRawPtr<Event>) OVERRIDE; | 76 virtual bool dispatchEvent(PassRefPtrWillBeRawPtr<Event>) OVERRIDE; |
| 79 | 77 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 | 111 |
| 114 RawPtrWillBeMember<TextTrack> m_track; | 112 RawPtrWillBeMember<TextTrack> m_track; |
| 115 | 113 |
| 116 bool m_isActive : 1; | 114 bool m_isActive : 1; |
| 117 bool m_pauseOnExit : 1; | 115 bool m_pauseOnExit : 1; |
| 118 }; | 116 }; |
| 119 | 117 |
| 120 } // namespace WebCore | 118 } // namespace WebCore |
| 121 | 119 |
| 122 #endif | 120 #endif |
| OLD | NEW |