| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013, Opera Software ASA. All rights reserved. | 2 * Copyright (c) 2013, Opera Software ASA. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | 25 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
| 27 * OF THE POSSIBILITY OF SUCH DAMAGE. | 27 * OF THE POSSIBILITY OF SUCH DAMAGE. |
| 28 */ | 28 */ |
| 29 | 29 |
| 30 #ifndef VTTCue_h | 30 #ifndef VTTCue_h |
| 31 #define VTTCue_h | 31 #define VTTCue_h |
| 32 | 32 |
| 33 #include "core/html/track/TextTrackCue.h" | 33 #include "core/html/track/TextTrackCue.h" |
| 34 #include "platform/heap/Handle.h" | 34 #include "platform/heap/Handle.h" |
| 35 #include "wtf/Allocator.h" |
| 35 | 36 |
| 36 namespace blink { | 37 namespace blink { |
| 37 | 38 |
| 38 class Document; | 39 class Document; |
| 39 class DoubleOrAutoKeyword; | 40 class DoubleOrAutoKeyword; |
| 40 class ExecutionContext; | 41 class ExecutionContext; |
| 41 class VTTCue; | 42 class VTTCue; |
| 42 class VTTScanner; | 43 class VTTScanner; |
| 43 | 44 |
| 44 struct VTTDisplayParameters { | 45 struct VTTDisplayParameters { |
| 46 STACK_ALLOCATED(); |
| 45 VTTDisplayParameters(); | 47 VTTDisplayParameters(); |
| 46 | 48 |
| 47 FloatPoint position; | 49 FloatPoint position; |
| 48 float size; | 50 float size; |
| 49 CSSValueID direction; | 51 CSSValueID direction; |
| 50 CSSValueID textAlign; | 52 CSSValueID textAlign; |
| 51 CSSValueID writingMode; | 53 CSSValueID writingMode; |
| 52 float snapToLinesPosition; | 54 float snapToLinesPosition; |
| 53 }; | 55 }; |
| 54 | 56 |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 bool m_snapToLines : 1; | 194 bool m_snapToLines : 1; |
| 193 bool m_displayTreeShouldChange : 1; | 195 bool m_displayTreeShouldChange : 1; |
| 194 }; | 196 }; |
| 195 | 197 |
| 196 // VTTCue is currently the only TextTrackCue subclass. | 198 // VTTCue is currently the only TextTrackCue subclass. |
| 197 DEFINE_TYPE_CASTS(VTTCue, TextTrackCue, cue, true, true); | 199 DEFINE_TYPE_CASTS(VTTCue, TextTrackCue, cue, true, true); |
| 198 | 200 |
| 199 } // namespace blink | 201 } // namespace blink |
| 200 | 202 |
| 201 #endif // VTTCue_h | 203 #endif // VTTCue_h |
| OLD | NEW |