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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 DEFINE_ATTRIBUTE_EVENT_LISTENER(enter); | 102 DEFINE_ATTRIBUTE_EVENT_LISTENER(enter); |
103 DEFINE_ATTRIBUTE_EVENT_LISTENER(exit); | 103 DEFINE_ATTRIBUTE_EVENT_LISTENER(exit); |
104 | 104 |
105 DECLARE_VIRTUAL_TRACE(); | 105 DECLARE_VIRTUAL_TRACE(); |
106 | 106 |
107 protected: | 107 protected: |
108 TextTrackCue(double start, double end); | 108 TextTrackCue(double start, double end); |
109 | 109 |
110 void cueWillChange(); | 110 void cueWillChange(); |
111 virtual void cueDidChange(); | 111 virtual void cueDidChange(); |
112 bool dispatchEventInternal(PassRefPtrWillBeRawPtr<Event>) override; | 112 DispatchEventResult dispatchEventInternal(PassRefPtrWillBeRawPtr<Event>) ove
rride; |
113 | 113 |
114 private: | 114 private: |
115 AtomicString m_id; | 115 AtomicString m_id; |
116 double m_startTime; | 116 double m_startTime; |
117 double m_endTime; | 117 double m_endTime; |
118 | 118 |
119 Member<TextTrack> m_track; | 119 Member<TextTrack> m_track; |
120 | 120 |
121 unsigned m_cueIndex; | 121 unsigned m_cueIndex; |
122 | 122 |
123 bool m_isActive : 1; | 123 bool m_isActive : 1; |
124 bool m_pauseOnExit : 1; | 124 bool m_pauseOnExit : 1; |
125 }; | 125 }; |
126 | 126 |
127 } // namespace blink | 127 } // namespace blink |
128 | 128 |
129 #endif // TextTrackCue_h | 129 #endif // TextTrackCue_h |
OLD | NEW |