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

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

Issue 921833003: Expose APIs for text track settings (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed window color API as per Philip's suggestion Created 5 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 CueAlignment cueAlignment() const { return m_cueAlignment; } 137 CueAlignment cueAlignment() const { return m_cueAlignment; }
138 138
139 virtual ExecutionContext* executionContext() const override; 139 virtual ExecutionContext* executionContext() const override;
140 140
141 #ifndef NDEBUG 141 #ifndef NDEBUG
142 virtual String toString() const override; 142 virtual String toString() const override;
143 #endif 143 #endif
144 144
145 virtual void trace(Visitor*) override; 145 virtual void trace(Visitor*) override;
146 146
147 // Applies CSS properties retrieved from settings on text tracks elements.
148 void applyUserOverrideCSSProperties();
149
147 private: 150 private:
148 VTTCue(Document&, double startTime, double endTime, const String& text); 151 VTTCue(Document&, double startTime, double endTime, const String& text);
149 152
150 Document& document() const; 153 Document& document() const;
151 154
152 VTTCueBox& ensureDisplayTree(); 155 VTTCueBox& ensureDisplayTree();
153 PassRefPtrWillBeRawPtr<VTTCueBox> getDisplayTree(); 156 PassRefPtrWillBeRawPtr<VTTCueBox> getDisplayTree();
154 157
155 virtual void cueDidChange() override; 158 virtual void cueDidChange() override;
156 159
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 bool m_displayTreeShouldChange : 1; 194 bool m_displayTreeShouldChange : 1;
192 bool m_notifyRegion : 1; 195 bool m_notifyRegion : 1;
193 }; 196 };
194 197
195 // VTTCue is currently the only TextTrackCue subclass. 198 // VTTCue is currently the only TextTrackCue subclass.
196 DEFINE_TYPE_CASTS(VTTCue, TextTrackCue, cue, true, true); 199 DEFINE_TYPE_CASTS(VTTCue, TextTrackCue, cue, true, true);
197 200
198 } // namespace blink 201 } // namespace blink
199 202
200 #endif // VTTCue_h 203 #endif // VTTCue_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698