| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 103 |
| 104 void parseSettings(const String&); | 104 void parseSettings(const String&); |
| 105 | 105 |
| 106 PassRefPtrWillBeRawPtr<DocumentFragment> getCueAsHTML(); | 106 PassRefPtrWillBeRawPtr<DocumentFragment> getCueAsHTML(); |
| 107 | 107 |
| 108 const String& regionId() const { return m_regionId; } | 108 const String& regionId() const { return m_regionId; } |
| 109 void setRegionId(const String&); | 109 void setRegionId(const String&); |
| 110 | 110 |
| 111 virtual void updateDisplay(HTMLDivElement& container) override; | 111 virtual void updateDisplay(HTMLDivElement& container) override; |
| 112 | 112 |
| 113 virtual void updateDisplayTree(double movieTime) override; | 113 virtual void updatePastAndFutureNodes(double movieTime) override; |
| 114 |
| 114 virtual void removeDisplayTree(RemovalNotification) override; | 115 virtual void removeDisplayTree(RemovalNotification) override; |
| 115 | 116 |
| 116 void markFutureAndPastNodes(ContainerNode*, double previousTimestamp, double
movieTime); | |
| 117 | |
| 118 float calculateComputedLinePosition() const; | 117 float calculateComputedLinePosition() const; |
| 119 | 118 |
| 120 enum WritingDirection { | 119 enum WritingDirection { |
| 121 Horizontal = 0, | 120 Horizontal = 0, |
| 122 VerticalGrowingLeft, | 121 VerticalGrowingLeft, |
| 123 VerticalGrowingRight, | 122 VerticalGrowingRight, |
| 124 NumberOfWritingDirections | 123 NumberOfWritingDirections |
| 125 }; | 124 }; |
| 126 WritingDirection getWritingDirection() const { return m_writingDirection; } | 125 WritingDirection getWritingDirection() const { return m_writingDirection; } |
| 127 | 126 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 bool m_snapToLines : 1; | 187 bool m_snapToLines : 1; |
| 189 bool m_displayTreeShouldChange : 1; | 188 bool m_displayTreeShouldChange : 1; |
| 190 }; | 189 }; |
| 191 | 190 |
| 192 // VTTCue is currently the only TextTrackCue subclass. | 191 // VTTCue is currently the only TextTrackCue subclass. |
| 193 DEFINE_TYPE_CASTS(VTTCue, TextTrackCue, cue, true, true); | 192 DEFINE_TYPE_CASTS(VTTCue, TextTrackCue, cue, true, true); |
| 194 | 193 |
| 195 } // namespace blink | 194 } // namespace blink |
| 196 | 195 |
| 197 #endif // VTTCue_h | 196 #endif // VTTCue_h |
| OLD | NEW |