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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 double baseFontSizeRelativeToVideoHeight() const { return m_baseFontSizeRela
tiveToVideoHeight; } | 53 double baseFontSizeRelativeToVideoHeight() const { return m_baseFontSizeRela
tiveToVideoHeight; } |
54 void setBaseFontSizeRelativeToVideoHeight(double size) { m_baseFontSizeRelat
iveToVideoHeight = size; } | 54 void setBaseFontSizeRelativeToVideoHeight(double size) { m_baseFontSizeRelat
iveToVideoHeight = size; } |
55 | 55 |
56 double fontSizeMultiplier() const { return m_fontSizeMultiplier; } | 56 double fontSizeMultiplier() const { return m_fontSizeMultiplier; } |
57 void setFontSizeMultiplier(double size) { m_fontSizeMultiplier = size; } | 57 void setFontSizeMultiplier(double size) { m_fontSizeMultiplier = size; } |
58 | 58 |
59 String fontName() const { return m_fontName; } | 59 String fontName() const { return m_fontName; } |
60 void setFontName(String name) { m_fontName = name; } | 60 void setFontName(String name) { m_fontName = name; } |
61 | 61 |
62 Color foregroundColor() const { return m_foregroundColor; } | 62 Color foregroundColor() const { return m_foregroundColor; } |
63 void setForegroundColor(RGBA32 color) { m_foregroundColor.setRGB(color); } | 63 void setForegroundColor(Color color) { m_foregroundColor = color; } |
64 | 64 |
65 Color backgroundColor() const { return m_backgroundColor; } | 65 Color backgroundColor() const { return m_backgroundColor; } |
66 void setBackgroundColor(RGBA32 color) { m_backgroundColor.setRGB(color); } | 66 void setBackgroundColor(Color color) { m_backgroundColor = color; } |
67 | 67 |
68 virtual void videoSizeDidChange(const IntSize&); | 68 virtual void videoSizeDidChange(const IntSize&); |
69 | 69 |
70 virtual bool operator==(const TextTrackCue&) const OVERRIDE; | 70 virtual bool operator==(const TextTrackCue&) const OVERRIDE; |
71 virtual bool operator!=(const TextTrackCue& cue) const OVERRIDE | 71 virtual bool operator!=(const TextTrackCue& cue) const OVERRIDE |
72 { | 72 { |
73 return !(*this == cue); | 73 return !(*this == cue); |
74 } | 74 } |
75 | 75 |
76 virtual TextTrackCue::CueType cueType() const OVERRIDE { return TextTrackCue
::Generic; } | 76 virtual TextTrackCue::CueType cueType() const OVERRIDE { return TextTrackCue
::Generic; } |
77 | 77 |
78 private: | 78 private: |
79 TextTrackCueGeneric(ScriptExecutionContext*, double start, double end, const
String&); | 79 TextTrackCueGeneric(ScriptExecutionContext*, double start, double end, const
String&); |
80 | 80 |
81 Color m_foregroundColor; | 81 Color m_foregroundColor; |
82 Color m_backgroundColor; | 82 Color m_backgroundColor; |
83 double m_baseFontSizeRelativeToVideoHeight; | 83 double m_baseFontSizeRelativeToVideoHeight; |
84 double m_fontSizeMultiplier; | 84 double m_fontSizeMultiplier; |
85 String m_fontName; | 85 String m_fontName; |
86 bool m_defaultPosition; | 86 bool m_defaultPosition; |
87 }; | 87 }; |
88 | 88 |
89 } // namespace WebCore | 89 } // namespace WebCore |
90 | 90 |
91 #endif | 91 #endif |
OLD | NEW |