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

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

Issue 2683633006: [WebVTT] Rename Middle to Center (Closed)
Patch Set: fix tests Created 3 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 float calculateComputedLinePosition() const; 129 float calculateComputedLinePosition() const;
130 130
131 enum WritingDirection { 131 enum WritingDirection {
132 Horizontal = 0, 132 Horizontal = 0,
133 VerticalGrowingLeft, 133 VerticalGrowingLeft,
134 VerticalGrowingRight, 134 VerticalGrowingRight,
135 NumberOfWritingDirections 135 NumberOfWritingDirections
136 }; 136 };
137 WritingDirection getWritingDirection() const { return m_writingDirection; } 137 WritingDirection getWritingDirection() const { return m_writingDirection; }
138 138
139 enum CueAlignment { Start = 0, Middle, End, Left, Right, NumberOfAlignments }; 139 enum CueAlignment { Start = 0, Center, End, Left, Right, NumberOfAlignments };
140 CueAlignment getCueAlignment() const { return m_cueAlignment; } 140 CueAlignment getCueAlignment() const { return m_cueAlignment; }
141 141
142 ExecutionContext* getExecutionContext() const override; 142 ExecutionContext* getExecutionContext() const override;
143 143
144 #ifndef NDEBUG 144 #ifndef NDEBUG
145 String toString() const override; 145 String toString() const override;
146 #endif 146 #endif
147 147
148 DECLARE_VIRTUAL_TRACE(); 148 DECLARE_VIRTUAL_TRACE();
149 149
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 bool m_snapToLines : 1; 184 bool m_snapToLines : 1;
185 bool m_displayTreeShouldChange : 1; 185 bool m_displayTreeShouldChange : 1;
186 }; 186 };
187 187
188 // VTTCue is currently the only TextTrackCue subclass. 188 // VTTCue is currently the only TextTrackCue subclass.
189 DEFINE_TYPE_CASTS(VTTCue, TextTrackCue, cue, true, true); 189 DEFINE_TYPE_CASTS(VTTCue, TextTrackCue, cue, true, true);
190 190
191 } // namespace blink 191 } // namespace blink
192 192
193 #endif // VTTCue_h 193 #endif // VTTCue_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.h ('k') | third_party/WebKit/Source/core/html/track/vtt/VTTCue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698