| 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) 2011, 2012, 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011, 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 | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 | 99 |
| 100 enum TextTrackType { TrackElement, AddTrack, InBand }; | 100 enum TextTrackType { TrackElement, AddTrack, InBand }; |
| 101 TextTrackType trackType() const { return m_trackType; } | 101 TextTrackType trackType() const { return m_trackType; } |
| 102 | 102 |
| 103 int trackIndex(); | 103 int trackIndex(); |
| 104 void invalidateTrackIndex(); | 104 void invalidateTrackIndex(); |
| 105 | 105 |
| 106 bool isRendered(); | 106 bool isRendered(); |
| 107 int trackIndexRelativeToRenderedTracks(); | 107 int trackIndexRelativeToRenderedTracks(); |
| 108 | 108 |
| 109 bool isRenderable(); |
| 110 |
| 109 bool hasBeenConfigured() const { return m_hasBeenConfigured; } | 111 bool hasBeenConfigured() const { return m_hasBeenConfigured; } |
| 110 void setHasBeenConfigured(bool flag) { m_hasBeenConfigured = flag; } | 112 void setHasBeenConfigured(bool flag) { m_hasBeenConfigured = flag; } |
| 111 | 113 |
| 112 virtual bool isDefault() const { return false; } | 114 virtual bool isDefault() const { return false; } |
| 113 | 115 |
| 114 void removeAllCues(); | 116 void removeAllCues(); |
| 115 | 117 |
| 116 // EventTarget methods | 118 // EventTarget methods |
| 117 virtual const AtomicString& interfaceName() const override; | 119 virtual const AtomicString& interfaceName() const override; |
| 118 virtual ExecutionContext* executionContext() const override; | 120 virtual ExecutionContext* executionContext() const override; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 144 int m_trackIndex; | 146 int m_trackIndex; |
| 145 int m_renderedTrackIndex; | 147 int m_renderedTrackIndex; |
| 146 bool m_hasBeenConfigured; | 148 bool m_hasBeenConfigured; |
| 147 }; | 149 }; |
| 148 | 150 |
| 149 DEFINE_TRACK_TYPE_CASTS(TextTrack, TrackBase::TextTrack); | 151 DEFINE_TRACK_TYPE_CASTS(TextTrack, TrackBase::TextTrack); |
| 150 | 152 |
| 151 } // namespace blink | 153 } // namespace blink |
| 152 | 154 |
| 153 #endif // TextTrack_h | 155 #endif // TextTrack_h |
| OLD | NEW |