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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 | 72 |
73 int cueIndex(); | 73 int cueIndex(); |
74 void invalidateCueIndex(); | 74 void invalidateCueIndex(); |
75 | 75 |
76 using EventTarget::dispatchEvent; | 76 using EventTarget::dispatchEvent; |
77 virtual bool dispatchEvent(PassRefPtrWillBeRawPtr<Event>) OVERRIDE; | 77 virtual bool dispatchEvent(PassRefPtrWillBeRawPtr<Event>) OVERRIDE; |
78 | 78 |
79 bool isActive(); | 79 bool isActive(); |
80 void setIsActive(bool); | 80 void setIsActive(bool); |
81 | 81 |
82 virtual void updateDisplay(const IntSize& videoSize, HTMLDivElement& contain
er) = 0; | 82 virtual void updateDisplay(const IntSize& videoSize, HTMLDivElement& contain
er) { }; |
83 | 83 |
84 // FIXME: Consider refactoring to eliminate or merge the following three mem
bers. | 84 // FIXME: Consider refactoring to eliminate or merge the following three mem
bers. |
85 // https://code.google.com/p/chromium/issues/detail?id=322434 | 85 // https://code.google.com/p/chromium/issues/detail?id=322434 |
86 virtual void updateDisplayTree(double movieTime) = 0; | 86 virtual void updateDisplayTree(double movieTime) { }; |
87 virtual void removeDisplayTree() = 0; | 87 virtual void removeDisplayTree() { }; |
88 virtual void notifyRegionWhenRemovingDisplayTree(bool notifyRegion) = 0; | 88 virtual void notifyRegionWhenRemovingDisplayTree(bool notifyRegion) { }; |
| 89 |
| 90 enum CueType { WebVTT, Data }; |
| 91 virtual CueType cueType() const = 0; |
89 | 92 |
90 virtual const AtomicString& interfaceName() const OVERRIDE; | 93 virtual const AtomicString& interfaceName() const OVERRIDE; |
91 | 94 |
92 #ifndef NDEBUG | 95 #ifndef NDEBUG |
93 virtual String toString() const = 0; | 96 virtual String toString() const = 0; |
94 #endif | 97 #endif |
95 | 98 |
96 DEFINE_ATTRIBUTE_EVENT_LISTENER(enter); | 99 DEFINE_ATTRIBUTE_EVENT_LISTENER(enter); |
97 DEFINE_ATTRIBUTE_EVENT_LISTENER(exit); | 100 DEFINE_ATTRIBUTE_EVENT_LISTENER(exit); |
98 | 101 |
(...skipping 13 matching lines...) Expand all Loading... |
112 | 115 |
113 RawPtrWillBeMember<TextTrack> m_track; | 116 RawPtrWillBeMember<TextTrack> m_track; |
114 | 117 |
115 bool m_isActive : 1; | 118 bool m_isActive : 1; |
116 bool m_pauseOnExit : 1; | 119 bool m_pauseOnExit : 1; |
117 }; | 120 }; |
118 | 121 |
119 } // namespace WebCore | 122 } // namespace WebCore |
120 | 123 |
121 #endif | 124 #endif |
OLD | NEW |