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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 class VTTCue FINAL : public TextTrackCue, public ScriptWrappable { | 65 class VTTCue FINAL : public TextTrackCue, public ScriptWrappable { |
66 public: | 66 public: |
67 static PassRefPtrWillBeRawPtr<VTTCue> create(Document& document, double star
tTime, double endTime, const String& text) | 67 static PassRefPtrWillBeRawPtr<VTTCue> create(Document& document, double star
tTime, double endTime, const String& text) |
68 { | 68 { |
69 return adoptRefWillBeRefCountedGarbageCollected(new VTTCue(document, sta
rtTime, endTime, text)); | 69 return adoptRefWillBeRefCountedGarbageCollected(new VTTCue(document, sta
rtTime, endTime, text)); |
70 } | 70 } |
71 | 71 |
72 virtual ~VTTCue(); | 72 virtual ~VTTCue(); |
73 | 73 |
74 const String& vertical() const; | 74 const String& vertical() const; |
75 void setVertical(const String&, ExceptionState&); | 75 void setVertical(const String&); |
76 | 76 |
77 bool snapToLines() const { return m_snapToLines; } | 77 bool snapToLines() const { return m_snapToLines; } |
78 void setSnapToLines(bool); | 78 void setSnapToLines(bool); |
79 | 79 |
80 int line() const { return m_linePosition; } | 80 int line() const { return m_linePosition; } |
81 void setLine(int, ExceptionState&); | 81 void setLine(int, ExceptionState&); |
82 | 82 |
83 int position() const { return m_textPosition; } | 83 int position() const { return m_textPosition; } |
84 void setPosition(int, ExceptionState&); | 84 void setPosition(int, ExceptionState&); |
85 | 85 |
86 int size() const { return m_cueSize; } | 86 int size() const { return m_cueSize; } |
87 void setSize(int, ExceptionState&); | 87 void setSize(int, ExceptionState&); |
88 | 88 |
89 const String& align() const; | 89 const String& align() const; |
90 void setAlign(const String&, ExceptionState&); | 90 void setAlign(const String&); |
91 | 91 |
92 const String& text() const { return m_text; } | 92 const String& text() const { return m_text; } |
93 void setText(const String&); | 93 void setText(const String&); |
94 | 94 |
95 void parseSettings(const String&); | 95 void parseSettings(const String&); |
96 | 96 |
97 PassRefPtr<DocumentFragment> getCueAsHTML(); | 97 PassRefPtr<DocumentFragment> getCueAsHTML(); |
98 PassRefPtr<DocumentFragment> createCueRenderingTree(); | 98 PassRefPtr<DocumentFragment> createCueRenderingTree(); |
99 | 99 |
100 const String& regionId() const { return m_regionId; } | 100 const String& regionId() const { return m_regionId; } |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 bool m_displayTreeShouldChange : 1; | 192 bool m_displayTreeShouldChange : 1; |
193 bool m_notifyRegion : 1; | 193 bool m_notifyRegion : 1; |
194 }; | 194 }; |
195 | 195 |
196 // VTTCue is currently the only TextTrackCue subclass. | 196 // VTTCue is currently the only TextTrackCue subclass. |
197 DEFINE_TYPE_CASTS(VTTCue, TextTrackCue, cue, true, true); | 197 DEFINE_TYPE_CASTS(VTTCue, TextTrackCue, cue, true, true); |
198 | 198 |
199 } // namespace WebCore | 199 } // namespace WebCore |
200 | 200 |
201 #endif | 201 #endif |
OLD | NEW |