| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 RawPtrWillBeMember<VTTCue> m_cue; | 61 RawPtrWillBeMember<VTTCue> m_cue; |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 class VTTCue FINAL : public TextTrackCue, public ScriptWrappable { | 64 class VTTCue FINAL : public TextTrackCue, public ScriptWrappable { |
| 65 public: | 65 public: |
| 66 static PassRefPtrWillBeRawPtr<VTTCue> create(Document& document, double star
tTime, double endTime, const String& text) | 66 static PassRefPtrWillBeRawPtr<VTTCue> create(Document& document, double star
tTime, double endTime, const String& text) |
| 67 { | 67 { |
| 68 return adoptRefWillBeRefCountedGarbageCollected(new VTTCue(document, sta
rtTime, endTime, text)); | 68 return adoptRefWillBeRefCountedGarbageCollected(new VTTCue(document, sta
rtTime, endTime, text)); |
| 69 } | 69 } |
| 70 | 70 |
| 71 static PassRefPtrWillBeRawPtr<VTTCue> create(ExecutionContext*, double start
Time, double endTime, const String& text); |
| 72 |
| 71 virtual ~VTTCue(); | 73 virtual ~VTTCue(); |
| 72 | 74 |
| 73 const String& vertical() const; | 75 const String& vertical() const; |
| 74 void setVertical(const String&); | 76 void setVertical(const String&); |
| 75 | 77 |
| 76 bool snapToLines() const { return m_snapToLines; } | 78 bool snapToLines() const { return m_snapToLines; } |
| 77 void setSnapToLines(bool); | 79 void setSnapToLines(bool); |
| 78 | 80 |
| 79 int line() const { return m_linePosition; } | 81 int line() const { return m_linePosition; } |
| 80 void setLine(int, ExceptionState&); | 82 void setLine(int, ExceptionState&); |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 bool m_displayTreeShouldChange : 1; | 193 bool m_displayTreeShouldChange : 1; |
| 192 bool m_notifyRegion : 1; | 194 bool m_notifyRegion : 1; |
| 193 }; | 195 }; |
| 194 | 196 |
| 195 // VTTCue is currently the only TextTrackCue subclass. | 197 // VTTCue is currently the only TextTrackCue subclass. |
| 196 DEFINE_TYPE_CASTS(VTTCue, TextTrackCue, cue, true, true); | 198 DEFINE_TYPE_CASTS(VTTCue, TextTrackCue, cue, true, true); |
| 197 | 199 |
| 198 } // namespace WebCore | 200 } // namespace WebCore |
| 199 | 201 |
| 200 #endif | 202 #endif |
| OLD | NEW |