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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 bool pauseOnExit() const { return m_pauseOnExit; } | 70 bool pauseOnExit() const { return m_pauseOnExit; } |
71 void setPauseOnExit(bool); | 71 void setPauseOnExit(bool); |
72 | 72 |
73 unsigned cueIndex(); | 73 unsigned cueIndex(); |
74 void updateCueIndex(unsigned cueIndex) { m_cueIndex = cueIndex; } | 74 void updateCueIndex(unsigned cueIndex) { m_cueIndex = cueIndex; } |
75 void invalidateCueIndex(); | 75 void invalidateCueIndex(); |
76 | 76 |
77 using EventTarget::dispatchEvent; | 77 using EventTarget::dispatchEvent; |
78 virtual bool dispatchEvent(PassRefPtrWillBeRawPtr<Event>) override; | 78 virtual bool dispatchEvent(PassRefPtrWillBeRawPtr<Event>) override; |
79 | 79 |
80 bool isActive(); | 80 bool isActive() const { return m_isActive; } |
81 void setIsActive(bool active) { m_isActive = active; } | 81 void setIsActive(bool active) { m_isActive = active; } |
82 | 82 |
83 virtual void updateDisplay(HTMLDivElement& container) = 0; | 83 virtual void updateDisplay(HTMLDivElement& container) = 0; |
84 | 84 |
85 // FIXME: Consider refactoring to eliminate or merge the following three mem
bers. | 85 // FIXME: Consider refactoring to eliminate or merge the following three mem
bers. |
86 // https://code.google.com/p/chromium/issues/detail?id=322434 | 86 // https://code.google.com/p/chromium/issues/detail?id=322434 |
87 virtual void updateDisplayTree(double movieTime) = 0; | 87 virtual void updateDisplayTree(double movieTime) = 0; |
88 | 88 |
89 enum RemovalNotification { | 89 enum RemovalNotification { |
90 DontNotifyRegion, | 90 DontNotifyRegion, |
(...skipping 27 matching lines...) Expand all Loading... |
118 | 118 |
119 unsigned m_cueIndex; | 119 unsigned m_cueIndex; |
120 | 120 |
121 bool m_isActive : 1; | 121 bool m_isActive : 1; |
122 bool m_pauseOnExit : 1; | 122 bool m_pauseOnExit : 1; |
123 }; | 123 }; |
124 | 124 |
125 } // namespace blink | 125 } // namespace blink |
126 | 126 |
127 #endif // TextTrackCue_h | 127 #endif // TextTrackCue_h |
OLD | NEW |