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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 | 89 |
90 virtual const AtomicString& interfaceName() const override; | 90 virtual const AtomicString& interfaceName() const override; |
91 | 91 |
92 #ifndef NDEBUG | 92 #ifndef NDEBUG |
93 virtual String toString() const = 0; | 93 virtual String toString() const = 0; |
94 #endif | 94 #endif |
95 | 95 |
96 DEFINE_ATTRIBUTE_EVENT_LISTENER(enter); | 96 DEFINE_ATTRIBUTE_EVENT_LISTENER(enter); |
97 DEFINE_ATTRIBUTE_EVENT_LISTENER(exit); | 97 DEFINE_ATTRIBUTE_EVENT_LISTENER(exit); |
98 | 98 |
99 virtual void trace(Visitor*) override; | 99 DECLARE_VIRTUAL_TRACE(); |
100 | 100 |
101 protected: | 101 protected: |
102 TextTrackCue(double start, double end); | 102 TextTrackCue(double start, double end); |
103 | 103 |
104 void cueWillChange(); | 104 void cueWillChange(); |
105 virtual void cueDidChange(); | 105 virtual void cueDidChange(); |
106 | 106 |
107 private: | 107 private: |
108 AtomicString m_id; | 108 AtomicString m_id; |
109 double m_startTime; | 109 double m_startTime; |
110 double m_endTime; | 110 double m_endTime; |
111 int m_cueIndex; | 111 int m_cueIndex; |
112 | 112 |
113 RawPtrWillBeMember<TextTrack> m_track; | 113 RawPtrWillBeMember<TextTrack> m_track; |
114 | 114 |
115 bool m_isActive : 1; | 115 bool m_isActive : 1; |
116 bool m_pauseOnExit : 1; | 116 bool m_pauseOnExit : 1; |
117 }; | 117 }; |
118 | 118 |
119 } // namespace blink | 119 } // namespace blink |
120 | 120 |
121 #endif // TextTrackCue_h | 121 #endif // TextTrackCue_h |
OLD | NEW |