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

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: Rebase and added a test to verify behavior of internal settings Created 5 years, 9 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 CueAlignment cueAlignment() const { return m_cueAlignment; } 135 CueAlignment cueAlignment() const { return m_cueAlignment; }
136 136
137 virtual ExecutionContext* executionContext() const override; 137 virtual ExecutionContext* executionContext() const override;
138 138
139 #ifndef NDEBUG 139 #ifndef NDEBUG
140 virtual String toString() const override; 140 virtual String toString() const override;
141 #endif 141 #endif
142 142
143 DECLARE_VIRTUAL_TRACE(); 143 DECLARE_VIRTUAL_TRACE();
144 144
145 // Applies CSS properties retrieved from settings on text tracks elements.
philipj_slow 2015/03/26 05:24:36 "from settings on text track elements" sounds like
srivats 2015/03/26 06:37:46 Done
146 void applyUserOverrideCSSProperties();
147
145 private: 148 private:
146 VTTCue(Document&, double startTime, double endTime, const String& text); 149 VTTCue(Document&, double startTime, double endTime, const String& text);
147 150
148 Document& document() const; 151 Document& document() const;
149 152
150 PassRefPtrWillBeRawPtr<VTTCueBox> getDisplayTree(); 153 PassRefPtrWillBeRawPtr<VTTCueBox> getDisplayTree();
151 154
152 virtual void cueDidChange() override; 155 virtual void cueDidChange() override;
153 156
154 void createVTTNodeTree(); 157 void createVTTNodeTree();
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 bool m_snapToLines : 1; 190 bool m_snapToLines : 1;
188 bool m_displayTreeShouldChange : 1; 191 bool m_displayTreeShouldChange : 1;
189 }; 192 };
190 193
191 // VTTCue is currently the only TextTrackCue subclass. 194 // VTTCue is currently the only TextTrackCue subclass.
192 DEFINE_TYPE_CASTS(VTTCue, TextTrackCue, cue, true, true); 195 DEFINE_TYPE_CASTS(VTTCue, TextTrackCue, cue, true, true);
193 196
194 } // namespace blink 197 } // namespace blink
195 198
196 #endif // VTTCue_h 199 #endif // VTTCue_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698