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

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

Issue 851333003: WebVTT: Update cue alignment to a later spec. version (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added test. Created 5 years, 11 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 | Annotate | Revision Log
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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 155
156 void createVTTNodeTree(); 156 void createVTTNodeTree();
157 void copyVTTNodeToDOMTree(ContainerNode* vttNode, ContainerNode* root); 157 void copyVTTNodeToDOMTree(ContainerNode* vttNode, ContainerNode* root);
158 158
159 FloatPoint getPositionCoordinates() const; 159 FloatPoint getPositionCoordinates() const;
160 bool lineIsAuto() const; 160 bool lineIsAuto() const;
161 161
162 void calculateDisplayParameters(); 162 void calculateDisplayParameters();
163 float calculateComputedTextPosition() const; 163 float calculateComputedTextPosition() const;
164 bool textPositionIsAuto() const; 164 bool textPositionIsAuto() const;
165 CueAlignment calculateComputedCueAlignment() const;
165 166
166 enum CueSetting { 167 enum CueSetting {
167 None, 168 None,
168 Vertical, 169 Vertical,
169 Line, 170 Line,
170 Position, 171 Position,
171 Size, 172 Size,
172 Align, 173 Align,
173 RegionId 174 RegionId
174 }; 175 };
(...skipping 20 matching lines...) Expand all
195 bool m_displayTreeShouldChange : 1; 196 bool m_displayTreeShouldChange : 1;
196 bool m_notifyRegion : 1; 197 bool m_notifyRegion : 1;
197 }; 198 };
198 199
199 // VTTCue is currently the only TextTrackCue subclass. 200 // VTTCue is currently the only TextTrackCue subclass.
200 DEFINE_TYPE_CASTS(VTTCue, TextTrackCue, cue, true, true); 201 DEFINE_TYPE_CASTS(VTTCue, TextTrackCue, cue, true, true);
201 202
202 } // namespace blink 203 } // namespace blink
203 204
204 #endif // VTTCue_h 205 #endif // VTTCue_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698