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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 // https://code.google.com/p/chromium/issues/detail?id=322434 | 101 // https://code.google.com/p/chromium/issues/detail?id=322434 |
102 virtual void updateDisplayTree(double movieTime) { } | 102 virtual void updateDisplayTree(double movieTime) { } |
103 virtual void removeDisplayTree() { } | 103 virtual void removeDisplayTree() { } |
104 virtual void notifyRegionWhenRemovingDisplayTree(bool notifyRegion) { } | 104 virtual void notifyRegionWhenRemovingDisplayTree(bool notifyRegion) { } |
105 | 105 |
106 virtual const AtomicString& interfaceName() const OVERRIDE; | 106 virtual const AtomicString& interfaceName() const OVERRIDE; |
107 | 107 |
108 DEFINE_ATTRIBUTE_EVENT_LISTENER(enter); | 108 DEFINE_ATTRIBUTE_EVENT_LISTENER(enter); |
109 DEFINE_ATTRIBUTE_EVENT_LISTENER(exit); | 109 DEFINE_ATTRIBUTE_EVENT_LISTENER(exit); |
110 | 110 |
111 virtual bool isVTTCue() const { return false; } | |
112 | |
113 virtual String toString() const; | 111 virtual String toString() const; |
114 | 112 |
115 protected: | 113 protected: |
116 TextTrackCue(double start, double end); | 114 TextTrackCue(double start, double end); |
117 | 115 |
118 void cueWillChange(); | 116 void cueWillChange(); |
119 virtual void cueDidChange(); | 117 virtual void cueDidChange(); |
120 | 118 |
121 private: | 119 private: |
122 String m_id; | 120 String m_id; |
123 double m_startTime; | 121 double m_startTime; |
124 double m_endTime; | 122 double m_endTime; |
125 int m_cueIndex; | 123 int m_cueIndex; |
126 | 124 |
127 TextTrack* m_track; | 125 TextTrack* m_track; |
128 | 126 |
129 bool m_isActive; | 127 bool m_isActive; |
130 bool m_pauseOnExit; | 128 bool m_pauseOnExit; |
131 }; | 129 }; |
132 | 130 |
133 } // namespace WebCore | 131 } // namespace WebCore |
134 | 132 |
135 #endif | 133 #endif |
OLD | NEW |