| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 63 |
| 64 class VTTCue FINAL : public TextTrackCue, public ScriptWrappable { | 64 class VTTCue FINAL : public TextTrackCue, public ScriptWrappable { |
| 65 public: | 65 public: |
| 66 static PassRefPtr<VTTCue> create(Document& document, double startTime, doubl
e endTime, const String& text) | 66 static PassRefPtr<VTTCue> create(Document& document, double startTime, doubl
e endTime, const String& text) |
| 67 { | 67 { |
| 68 return adoptRef(new VTTCue(document, startTime, endTime, text)); | 68 return adoptRef(new VTTCue(document, startTime, endTime, text)); |
| 69 } | 69 } |
| 70 | 70 |
| 71 virtual ~VTTCue(); | 71 virtual ~VTTCue(); |
| 72 | 72 |
| 73 virtual bool isVTTCue() const OVERRIDE { return true; } | |
| 74 | |
| 75 const String& vertical() const; | 73 const String& vertical() const; |
| 76 void setVertical(const String&, ExceptionState&); | 74 void setVertical(const String&, ExceptionState&); |
| 77 | 75 |
| 78 bool snapToLines() const { return m_snapToLines; } | 76 bool snapToLines() const { return m_snapToLines; } |
| 79 void setSnapToLines(bool); | 77 void setSnapToLines(bool); |
| 80 | 78 |
| 81 int line() const { return m_linePosition; } | 79 int line() const { return m_linePosition; } |
| 82 void setLine(int, ExceptionState&); | 80 void setLine(int, ExceptionState&); |
| 83 | 81 |
| 84 int position() const { return m_textPosition; } | 82 int position() const { return m_textPosition; } |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 | 194 |
| 197 inline VTTCue* toVTTCue(TextTrackCue* cue) | 195 inline VTTCue* toVTTCue(TextTrackCue* cue) |
| 198 { | 196 { |
| 199 // VTTCue is currently the only TextTrackCue subclass. | 197 // VTTCue is currently the only TextTrackCue subclass. |
| 200 return static_cast<VTTCue*>(cue); | 198 return static_cast<VTTCue*>(cue); |
| 201 } | 199 } |
| 202 | 200 |
| 203 } // namespace WebCore | 201 } // namespace WebCore |
| 204 | 202 |
| 205 #endif | 203 #endif |
| OLD | NEW |