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

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

Issue 1118613002: Hook up Android closed captions 'enabled' setting to Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated automatic track selection logic Created 5 years, 6 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) 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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 using HTMLElement::executionContext; 219 using HTMLElement::executionContext;
220 220
221 bool hasSingleSecurityOrigin() const { return !m_player || (webMediaPlayer() && webMediaPlayer()->hasSingleSecurityOrigin()); } 221 bool hasSingleSecurityOrigin() const { return !m_player || (webMediaPlayer() && webMediaPlayer()->hasSingleSecurityOrigin()); }
222 222
223 bool isFullscreen() const; 223 bool isFullscreen() const;
224 224
225 bool hasClosedCaptions() const; 225 bool hasClosedCaptions() const;
226 bool closedCaptionsVisible() const; 226 bool closedCaptionsVisible() const;
227 void setClosedCaptionsVisible(bool); 227 void setClosedCaptionsVisible(bool);
228 228
229 static void setTextTrackKindUserPreferenceForAllMediaElements(Document*);
230 void automaticTrackSelectionForUpdatedUserPreference();
231
229 void remoteRouteAvailabilityChanged(bool); 232 void remoteRouteAvailabilityChanged(bool);
230 void connectedToRemoteDevice(); 233 void connectedToRemoteDevice();
231 void disconnectedFromRemoteDevice(); 234 void disconnectedFromRemoteDevice();
232 235
233 // Returns the MediaControls, or null if they have not been added yet. 236 // Returns the MediaControls, or null if they have not been added yet.
234 // Note that this can be non-null even if there is no controls attribute. 237 // Note that this can be non-null even if there is no controls attribute.
235 MediaControls* mediaControls() const; 238 MediaControls* mediaControls() const;
236 239
237 // Notifies the media element that the media controls became visible, so 240 // Notifies the media element that the media controls became visible, so
238 // that text track layout may be updated to avoid overlapping them. 241 // that text track layout may be updated to avoid overlapping them.
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 inline bool isHTMLMediaElement(const HTMLElement& element) 586 inline bool isHTMLMediaElement(const HTMLElement& element)
584 { 587 {
585 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 588 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
586 } 589 }
587 590
588 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 591 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
589 592
590 } // namespace blink 593 } // namespace blink
591 594
592 #endif // HTMLMediaElement_h 595 #endif // HTMLMediaElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698