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

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

Issue 104473002: Tweak TextTrackCue/VTTCue virtual functions (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.cpp ('k') | Source/core/html/track/vtt/VTTCue.cpp » ('j') | 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 Middle, 125 Middle,
126 End, 126 End,
127 Left, 127 Left,
128 Right, 128 Right,
129 NumberOfAlignments 129 NumberOfAlignments
130 }; 130 };
131 CueAlignment getAlignment() const { return m_cueAlignment; } 131 CueAlignment getAlignment() const { return m_cueAlignment; }
132 132
133 virtual ExecutionContext* executionContext() const OVERRIDE; 133 virtual ExecutionContext* executionContext() const OVERRIDE;
134 134
135 virtual String toString() const; 135 #ifndef NDEBUG
136 virtual String toString() const OVERRIDE;
137 #endif
136 138
137 private: 139 private:
138 VTTCue(Document&, double startTime, double endTime, const String& text); 140 VTTCue(Document&, double startTime, double endTime, const String& text);
139 141
140 Document& document() const; 142 Document& document() const;
141 143
142 PassRefPtr<VTTCueBox> displayTreeInternal(); 144 PassRefPtr<VTTCueBox> displayTreeInternal();
143 PassRefPtr<VTTCueBox> getDisplayTree(const IntSize& videoSize); 145 PassRefPtr<VTTCueBox> getDisplayTree(const IntSize& videoSize);
144 146
145 virtual void cueDidChange() OVERRIDE; 147 virtual void cueDidChange() OVERRIDE;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 192
191 inline VTTCue* toVTTCue(TextTrackCue* cue) 193 inline VTTCue* toVTTCue(TextTrackCue* cue)
192 { 194 {
193 // VTTCue is currently the only TextTrackCue subclass. 195 // VTTCue is currently the only TextTrackCue subclass.
194 return static_cast<VTTCue*>(cue); 196 return static_cast<VTTCue*>(cue);
195 } 197 }
196 198
197 } // namespace WebCore 199 } // namespace WebCore
198 200
199 #endif 201 #endif
OLDNEW
« no previous file with comments | « Source/core/html/track/TextTrackCue.cpp ('k') | Source/core/html/track/vtt/VTTCue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698