Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Side by Side Diff: Source/core/html/track/vtt/VTTCue.h

Issue 102003002: Remove TextTrackCue::isVTTCue (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/html/track/TextTrackCue.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/html/track/TextTrackCue.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698