OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 2013 Apple Inc. 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 10 matching lines...) Expand all Loading... |
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #ifndef TextTrackCueGeneric_h | 26 #ifndef TextTrackCueGeneric_h |
27 #define TextTrackCueGeneric_h | 27 #define TextTrackCueGeneric_h |
28 | 28 |
29 #include "core/html/track/TextTrackCue.h" | 29 #include "core/html/track/TextTrackCue.h" |
30 #include "core/platform/graphics/Color.h" | 30 #include "core/platform/graphics/Color.h" |
31 #include <wtf/RefCounted.h> | |
32 | 31 |
33 namespace WebCore { | 32 namespace WebCore { |
34 | 33 |
35 class GenericCueData; | 34 class GenericCueData; |
36 | 35 |
37 // A "generic" cue is a non-WebVTT cue, so it is not positioned/sized with the W
ebVTT logic. | 36 // A "generic" cue is a non-WebVTT cue, so it is not positioned/sized with the W
ebVTT logic. |
38 class TextTrackCueGeneric : public TextTrackCue { | 37 class TextTrackCueGeneric : public TextTrackCue { |
39 public: | 38 public: |
40 static PassRefPtr<TextTrackCueGeneric> create(ScriptExecutionContext* contex
t, double start, double end, const String& content) | 39 static PassRefPtr<TextTrackCueGeneric> create(ScriptExecutionContext* contex
t, double start, double end, const String& content) |
41 { | 40 { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 Color m_backgroundColor; | 82 Color m_backgroundColor; |
84 double m_baseFontSizeRelativeToVideoHeight; | 83 double m_baseFontSizeRelativeToVideoHeight; |
85 double m_fontSizeMultiplier; | 84 double m_fontSizeMultiplier; |
86 String m_fontName; | 85 String m_fontName; |
87 bool m_defaultPosition; | 86 bool m_defaultPosition; |
88 }; | 87 }; |
89 | 88 |
90 } // namespace WebCore | 89 } // namespace WebCore |
91 | 90 |
92 #endif | 91 #endif |
OLD | NEW |