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

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

Issue 242113012: Make text track and cue wrapper objects dependent on their media element. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Consistently use a Node-returning owner() Created 6 years, 8 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 AtomicString mode() const { return m_mode; } 72 AtomicString mode() const { return m_mode; }
73 virtual void setMode(const AtomicString&); 73 virtual void setMode(const AtomicString&);
74 74
75 enum ReadinessState { NotLoaded = 0, Loading = 1, Loaded = 2, FailedToLoad = 3 }; 75 enum ReadinessState { NotLoaded = 0, Loading = 1, Loaded = 2, FailedToLoad = 3 };
76 ReadinessState readinessState() const { return m_readinessState; } 76 ReadinessState readinessState() const { return m_readinessState; }
77 void setReadinessState(ReadinessState state) { m_readinessState = state; } 77 void setReadinessState(ReadinessState state) { m_readinessState = state; }
78 78
79 TextTrackCueList* cues(); 79 TextTrackCueList* cues();
80 TextTrackCueList* activeCues() const; 80 TextTrackCueList* activeCues() const;
81 81
82 HTMLMediaElement* mediaElement(); 82 HTMLMediaElement* mediaElement() const;
83 Node* owner() const;
83 84
84 void addCue(PassRefPtr<TextTrackCue>); 85 void addCue(PassRefPtr<TextTrackCue>);
85 void removeCue(TextTrackCue*, ExceptionState&); 86 void removeCue(TextTrackCue*, ExceptionState&);
86 87
87 VTTRegionList* regions(); 88 VTTRegionList* regions();
88 void addRegion(PassRefPtr<VTTRegion>); 89 void addRegion(PassRefPtr<VTTRegion>);
89 void removeRegion(VTTRegion*, ExceptionState&); 90 void removeRegion(VTTRegion*, ExceptionState&);
90 91
91 void cueWillChange(TextTrackCue*); 92 void cueWillChange(TextTrackCue*);
92 void cueDidChange(TextTrackCue*); 93 void cueDidChange(TextTrackCue*);
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 TextTrackType m_trackType; 139 TextTrackType m_trackType;
139 ReadinessState m_readinessState; 140 ReadinessState m_readinessState;
140 int m_trackIndex; 141 int m_trackIndex;
141 int m_renderedTrackIndex; 142 int m_renderedTrackIndex;
142 bool m_hasBeenConfigured; 143 bool m_hasBeenConfigured;
143 }; 144 };
144 145
145 } // namespace WebCore 146 } // namespace WebCore
146 147
147 #endif 148 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698