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

Side by Side Diff: third_party/WebKit/Source/core/html/track/TextTrack.h

Issue 2684993003: Remove TextTrack.{add,remove}Region (Closed)
Patch Set: Update webexposed Created 3 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * Copyright (C) 2011, 2012, 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2011, 2012, 2013 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 25 matching lines...) Expand all
36 36
37 namespace blink { 37 namespace blink {
38 38
39 class CueTimeline; 39 class CueTimeline;
40 class ExceptionState; 40 class ExceptionState;
41 class HTMLMediaElement; 41 class HTMLMediaElement;
42 class TextTrack; 42 class TextTrack;
43 class TextTrackCue; 43 class TextTrackCue;
44 class TextTrackCueList; 44 class TextTrackCueList;
45 class TextTrackList; 45 class TextTrackList;
46 class VTTRegion;
47 class VTTRegionList; 46 class VTTRegionList;
48 47
49 class CORE_EXPORT TextTrack : public EventTargetWithInlineData, 48 class CORE_EXPORT TextTrack : public EventTargetWithInlineData,
50 public TrackBase { 49 public TrackBase {
51 DEFINE_WRAPPERTYPEINFO(); 50 DEFINE_WRAPPERTYPEINFO();
52 USING_GARBAGE_COLLECTED_MIXIN(TextTrack); 51 USING_GARBAGE_COLLECTED_MIXIN(TextTrack);
53 52
54 public: 53 public:
55 static TextTrack* create(const AtomicString& kind, 54 static TextTrack* create(const AtomicString& kind,
56 const AtomicString& label, 55 const AtomicString& label,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 TextTrackCueList* cues(); 94 TextTrackCueList* cues();
96 TextTrackCueList* activeCues(); 95 TextTrackCueList* activeCues();
97 96
98 HTMLMediaElement* mediaElement() const; 97 HTMLMediaElement* mediaElement() const;
99 Node* owner() const; 98 Node* owner() const;
100 99
101 void addCue(TextTrackCue*); 100 void addCue(TextTrackCue*);
102 void removeCue(TextTrackCue*, ExceptionState&); 101 void removeCue(TextTrackCue*, ExceptionState&);
103 102
104 VTTRegionList* regions(); 103 VTTRegionList* regions();
105 void addRegion(VTTRegion*);
106 void removeRegion(VTTRegion*, ExceptionState&);
107 104
108 void cueWillChange(TextTrackCue*); 105 void cueWillChange(TextTrackCue*);
109 void cueDidChange(TextTrackCue*); 106 void cueDidChange(TextTrackCue*);
110 107
111 DEFINE_ATTRIBUTE_EVENT_LISTENER(cuechange); 108 DEFINE_ATTRIBUTE_EVENT_LISTENER(cuechange);
112 109
113 enum TextTrackType { TrackElement, AddTrack, InBand }; 110 enum TextTrackType { TrackElement, AddTrack, InBand };
114 TextTrackType trackType() const { return m_trackType; } 111 TextTrackType trackType() const { return m_trackType; }
115 112
116 int trackIndex(); 113 int trackIndex();
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 int m_trackIndex; 158 int m_trackIndex;
162 int m_renderedTrackIndex; 159 int m_renderedTrackIndex;
163 bool m_hasBeenConfigured; 160 bool m_hasBeenConfigured;
164 }; 161 };
165 162
166 DEFINE_TRACK_TYPE_CASTS(TextTrack, WebMediaPlayer::TextTrack); 163 DEFINE_TRACK_TYPE_CASTS(TextTrack, WebMediaPlayer::TextTrack);
167 164
168 } // namespace blink 165 } // namespace blink
169 166
170 #endif // TextTrack_h 167 #endif // TextTrack_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/track/LoadableTextTrack.h ('k') | third_party/WebKit/Source/core/html/track/TextTrack.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698