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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 Horizontal, | 163 Horizontal, |
164 VerticalGrowingLeft, | 164 VerticalGrowingLeft, |
165 VerticalGrowingRight, | 165 VerticalGrowingRight, |
166 NumberOfWritingDirections | 166 NumberOfWritingDirections |
167 }; | 167 }; |
168 WritingDirection getWritingDirection() const { return m_writingDirection; } | 168 WritingDirection getWritingDirection() const { return m_writingDirection; } |
169 | 169 |
170 enum CueAlignment { | 170 enum CueAlignment { |
171 Start, | 171 Start, |
172 Middle, | 172 Middle, |
173 End | 173 End, |
| 174 Left, |
| 175 Right |
174 }; | 176 }; |
175 CueAlignment getAlignment() const { return m_cueAlignment; } | 177 CueAlignment getAlignment() const { return m_cueAlignment; } |
176 | 178 |
177 virtual void videoSizeDidChange(const IntSize&) { } | 179 virtual void videoSizeDidChange(const IntSize&) { } |
178 | 180 |
179 virtual bool operator==(const TextTrackCue&) const; | 181 virtual bool operator==(const TextTrackCue&) const; |
180 virtual bool operator!=(const TextTrackCue& cue) const | 182 virtual bool operator!=(const TextTrackCue& cue) const |
181 { | 183 { |
182 return !(*this == cue); | 184 return !(*this == cue); |
183 } | 185 } |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 | 275 |
274 std::pair<float, float> m_displayPosition; | 276 std::pair<float, float> m_displayPosition; |
275 #if ENABLE(WEBVTT_REGIONS) | 277 #if ENABLE(WEBVTT_REGIONS) |
276 String m_regionId; | 278 String m_regionId; |
277 #endif | 279 #endif |
278 }; | 280 }; |
279 | 281 |
280 } // namespace WebCore | 282 } // namespace WebCore |
281 | 283 |
282 #endif | 284 #endif |
OLD | NEW |