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

Side by Side Diff: Source/core/html/HTMLMediaElement.h

Issue 891733002: Don't collect 'other tracks' in HTMLMediaElement::configureTextTracks (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/html/HTMLMediaElement.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) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. 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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 } 214 }
215 215
216 WillBeHeapVector<RefPtrWillBeMember<TextTrack>> tracks; 216 WillBeHeapVector<RefPtrWillBeMember<TextTrack>> tracks;
217 RefPtrWillBeMember<TextTrack> visibleTrack; 217 RefPtrWillBeMember<TextTrack> visibleTrack;
218 RefPtrWillBeMember<TextTrack> defaultTrack; 218 RefPtrWillBeMember<TextTrack> defaultTrack;
219 GroupKind kind; 219 GroupKind kind;
220 bool hasSrcLang; 220 bool hasSrcLang;
221 }; 221 };
222 222
223 void configureTextTrackGroupForLanguage(const TrackGroup&) const; 223 void configureTextTrackGroupForLanguage(const TrackGroup&) const;
224 void configureTextTracks(); 224 void honorUserPreferencesForAutomaticTextTrackSelection();
225 void configureTextTrackGroup(const TrackGroup&); 225 void performAutomaticTextTrackSelection(const TrackGroup&);
226 void configureMetadataTextTrackGroup(const TrackGroup&); 226 void enableDefaultMetadataTextTracks(const TrackGroup&);
227 227
228 bool textTracksAreReady() const; 228 bool textTracksAreReady() const;
229 enum VisibilityChangeAssumption { 229 enum VisibilityChangeAssumption {
230 AssumeNoVisibleChange, 230 AssumeNoVisibleChange,
231 AssumeVisibleChange 231 AssumeVisibleChange
232 }; 232 };
233 void configureTextTrackDisplay(VisibilityChangeAssumption); 233 void configureTextTrackDisplay(VisibilityChangeAssumption);
234 void updateTextTrackDisplay(); 234 void updateTextTrackDisplay();
235 void textTrackReadyStateChanged(TextTrack*); 235 void textTrackReadyStateChanged(TextTrack*);
236 236
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 inline bool isHTMLMediaElement(const HTMLElement& element) 629 inline bool isHTMLMediaElement(const HTMLElement& element)
630 { 630 {
631 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 631 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
632 } 632 }
633 633
634 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 634 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
635 635
636 } // namespace blink 636 } // namespace blink
637 637
638 #endif // HTMLMediaElement_h 638 #endif // HTMLMediaElement_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698