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

Side by Side Diff: Source/core/html/track/TextTrackCue.h

Issue 25155003: Fix cue rendering test and include support for left/right alignment. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * Copyright (C) 2012, 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2012, 2013 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 Horizontal, 163 Horizontal,
164 VerticalGrowingLeft, 164 VerticalGrowingLeft,
165 VerticalGrowingRight, 165 VerticalGrowingRight,
166 NumberOfWritingDirections 166 NumberOfWritingDirections
167 }; 167 };
168 WritingDirection getWritingDirection() const { return m_writingDirection; } 168 WritingDirection getWritingDirection() const { return m_writingDirection; }
169 169
170 enum CueAlignment { 170 enum CueAlignment {
171 Start, 171 Start,
172 Middle, 172 Middle,
173 End 173 End,
174 Left,
175 Right
174 }; 176 };
175 CueAlignment getAlignment() const { return m_cueAlignment; } 177 CueAlignment getAlignment() const { return m_cueAlignment; }
176 178
177 virtual void videoSizeDidChange(const IntSize&) { } 179 virtual void videoSizeDidChange(const IntSize&) { }
178 180
179 virtual bool operator==(const TextTrackCue&) const; 181 virtual bool operator==(const TextTrackCue&) const;
180 virtual bool operator!=(const TextTrackCue& cue) const 182 virtual bool operator!=(const TextTrackCue& cue) const
181 { 183 {
182 return !(*this == cue); 184 return !(*this == cue);
183 } 185 }
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 275
274 std::pair<float, float> m_displayPosition; 276 std::pair<float, float> m_displayPosition;
275 #if ENABLE(WEBVTT_REGIONS) 277 #if ENABLE(WEBVTT_REGIONS)
276 String m_regionId; 278 String m_regionId;
277 #endif 279 #endif
278 }; 280 };
279 281
280 } // namespace WebCore 282 } // namespace WebCore
281 283
282 #endif 284 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698