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

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

Issue 921833003: Expose APIs for text track settings (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 months 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
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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 enum CueAlignment { 130 enum CueAlignment {
131 Start = 0, 131 Start = 0,
132 Middle, 132 Middle,
133 End, 133 End,
134 Left, 134 Left,
135 Right, 135 Right,
136 NumberOfAlignments 136 NumberOfAlignments
137 }; 137 };
138 CueAlignment cueAlignment() const { return m_cueAlignment; } 138 CueAlignment cueAlignment() const { return m_cueAlignment; }
139 139
140 PassRefPtrWillBeRawPtr<HTMLDivElement> element() const { return m_cueBackgro undBox; }
141
140 virtual ExecutionContext* executionContext() const override; 142 virtual ExecutionContext* executionContext() const override;
141 143
142 #ifndef NDEBUG 144 #ifndef NDEBUG
143 virtual String toString() const override; 145 virtual String toString() const override;
144 #endif 146 #endif
145 147
146 virtual void trace(Visitor*) override; 148 virtual void trace(Visitor*) override;
147 149
148 private: 150 private:
149 VTTCue(Document&, double startTime, double endTime, const String& text); 151 VTTCue(Document&, double startTime, double endTime, const String& text);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 bool m_displayTreeShouldChange : 1; 194 bool m_displayTreeShouldChange : 1;
193 bool m_notifyRegion : 1; 195 bool m_notifyRegion : 1;
194 }; 196 };
195 197
196 // VTTCue is currently the only TextTrackCue subclass. 198 // VTTCue is currently the only TextTrackCue subclass.
197 DEFINE_TYPE_CASTS(VTTCue, TextTrackCue, cue, true, true); 199 DEFINE_TYPE_CASTS(VTTCue, TextTrackCue, cue, true, true);
198 200
199 } // namespace blink 201 } // namespace blink
200 202
201 #endif // VTTCue_h 203 #endif // VTTCue_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698