| 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 float calculateComputedLinePosition() const; | 129 float calculateComputedLinePosition() const; |
| 130 | 130 |
| 131 enum WritingDirection { | 131 enum WritingDirection { |
| 132 Horizontal = 0, | 132 Horizontal = 0, |
| 133 VerticalGrowingLeft, | 133 VerticalGrowingLeft, |
| 134 VerticalGrowingRight, | 134 VerticalGrowingRight, |
| 135 NumberOfWritingDirections | 135 NumberOfWritingDirections |
| 136 }; | 136 }; |
| 137 WritingDirection getWritingDirection() const { return m_writingDirection; } | 137 WritingDirection getWritingDirection() const { return m_writingDirection; } |
| 138 | 138 |
| 139 enum CueAlignment { Start = 0, Middle, End, Left, Right, NumberOfAlignments }; | 139 enum CueAlignment { Start = 0, Center, End, Left, Right, NumberOfAlignments }; |
| 140 CueAlignment getCueAlignment() const { return m_cueAlignment; } | 140 CueAlignment getCueAlignment() const { return m_cueAlignment; } |
| 141 | 141 |
| 142 ExecutionContext* getExecutionContext() const override; | 142 ExecutionContext* getExecutionContext() const override; |
| 143 | 143 |
| 144 #ifndef NDEBUG | 144 #ifndef NDEBUG |
| 145 String toString() const override; | 145 String toString() const override; |
| 146 #endif | 146 #endif |
| 147 | 147 |
| 148 DECLARE_VIRTUAL_TRACE(); | 148 DECLARE_VIRTUAL_TRACE(); |
| 149 | 149 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 bool m_snapToLines : 1; | 184 bool m_snapToLines : 1; |
| 185 bool m_displayTreeShouldChange : 1; | 185 bool m_displayTreeShouldChange : 1; |
| 186 }; | 186 }; |
| 187 | 187 |
| 188 // VTTCue is currently the only TextTrackCue subclass. | 188 // VTTCue is currently the only TextTrackCue subclass. |
| 189 DEFINE_TYPE_CASTS(VTTCue, TextTrackCue, cue, true, true); | 189 DEFINE_TYPE_CASTS(VTTCue, TextTrackCue, cue, true, true); |
| 190 | 190 |
| 191 } // namespace blink | 191 } // namespace blink |
| 192 | 192 |
| 193 #endif // VTTCue_h | 193 #endif // VTTCue_h |
| OLD | NEW |