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

Unified Diff: core/html/track/TextTrack.idl

Issue 126143003: Update IDL to Chrome 32 (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Add new files Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/html/shadow/HTMLShadowElement.idl ('k') | core/html/track/TextTrackCue.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/html/track/TextTrack.idl
diff --git a/core/html/track/TextTrack.idl b/core/html/track/TextTrack.idl
index 10679016bb809a28d0575899611c2ab229cbf84b..1b9eadd31897c0b275cd5cf8e4fae044baea7f28 100644
--- a/core/html/track/TextTrack.idl
+++ b/core/html/track/TextTrack.idl
@@ -23,23 +23,27 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+enum TextTrackMode { "disabled", "hidden", "showing" };
+enum TextTrackKind { "subtitles", "captions", "descriptions", "chapters", "metadata" };
+
[
- EnabledAtRuntime=VideoTrack
+ RuntimeEnabled=VideoTrack
] interface TextTrack : EventTarget {
- readonly attribute DOMString kind;
+ readonly attribute TextTrackKind kind;
readonly attribute DOMString label;
readonly attribute DOMString language;
- attribute DOMString mode;
+ attribute TextTrackMode mode;
readonly attribute TextTrackCueList cues;
readonly attribute TextTrackCueList activeCues;
- attribute EventHandler oncuechange;
void addCue(TextTrackCue cue);
[RaisesException] void removeCue(TextTrackCue cue);
- [Conditional=WEBVTT_REGIONS] readonly attribute TextTrackRegionList regions;
- [Conditional=WEBVTT_REGIONS] void addRegion(TextTrackRegion region);
- [RaisesException, Conditional=WEBVTT_REGIONS] void removeRegion(TextTrackRegion region);
+ attribute EventHandler oncuechange;
+
+ [RuntimeEnabled=WebVTTRegions] readonly attribute VTTRegionList regions;
+ [RuntimeEnabled=WebVTTRegions] void addRegion(VTTRegion region);
+ [RaisesException, RuntimeEnabled=WebVTTRegions] void removeRegion(VTTRegion region);
};
« no previous file with comments | « core/html/shadow/HTMLShadowElement.idl ('k') | core/html/track/TextTrackCue.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698