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

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: Addressed nits 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
« no previous file with comments | « Source/core/frame/Settings.in ('k') | Source/core/html/track/vtt/VTTCue.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 void setSize(double, ExceptionState&); 96 void setSize(double, ExceptionState&);
97 97
98 const String& align() const; 98 const String& align() const;
99 void setAlign(const String&); 99 void setAlign(const String&);
100 100
101 const String& text() const { return m_text; } 101 const String& text() const { return m_text; }
102 void setText(const String&); 102 void setText(const String&);
103 103
104 void parseSettings(const String&); 104 void parseSettings(const String&);
105 105
106 // Applies CSS override style from user settings.
107 void applyUserOverrideCSSProperties();
108
106 PassRefPtrWillBeRawPtr<DocumentFragment> getCueAsHTML(); 109 PassRefPtrWillBeRawPtr<DocumentFragment> getCueAsHTML();
107 110
108 const String& regionId() const { return m_regionId; } 111 const String& regionId() const { return m_regionId; }
109 void setRegionId(const String&); 112 void setRegionId(const String&);
110 113
111 virtual void updateDisplay(HTMLDivElement& container) override; 114 virtual void updateDisplay(HTMLDivElement& container) override;
112 115
113 virtual void updatePastAndFutureNodes(double movieTime) override; 116 virtual void updatePastAndFutureNodes(double movieTime) override;
114 117
115 virtual void removeDisplayTree(RemovalNotification) override; 118 virtual void removeDisplayTree(RemovalNotification) override;
(...skipping 71 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
« no previous file with comments | « Source/core/frame/Settings.in ('k') | Source/core/html/track/vtt/VTTCue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698