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

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: Addressed lgtm comment and rebased Created 5 years, 5 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
« no previous file with comments | « Source/core/frame/SettingsDelegate.h ('k') | 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 bool hasSingleSecurityOrigin() const { return !m_player || (webMediaPlayer() && webMediaPlayer()->hasSingleSecurityOrigin()); } 222 bool hasSingleSecurityOrigin() const { return !m_player || (webMediaPlayer() && webMediaPlayer()->hasSingleSecurityOrigin()); }
223 223
224 bool isFullscreen() const; 224 bool isFullscreen() const;
225 void enterFullscreen(); 225 void enterFullscreen();
226 void exitFullscreen(); 226 void exitFullscreen();
227 227
228 bool hasClosedCaptions() const; 228 bool hasClosedCaptions() const;
229 bool closedCaptionsVisible() const; 229 bool closedCaptionsVisible() const;
230 void setClosedCaptionsVisible(bool); 230 void setClosedCaptionsVisible(bool);
231 231
232 static void setTextTrackKindUserPreferenceForAllMediaElements(Document*);
233 void automaticTrackSelectionForUpdatedUserPreference();
234
232 void remoteRouteAvailabilityChanged(bool); 235 void remoteRouteAvailabilityChanged(bool);
233 void connectedToRemoteDevice(); 236 void connectedToRemoteDevice();
234 void disconnectedFromRemoteDevice(); 237 void disconnectedFromRemoteDevice();
235 238
236 // Returns the MediaControls, or null if they have not been added yet. 239 // Returns the MediaControls, or null if they have not been added yet.
237 // Note that this can be non-null even if there is no controls attribute. 240 // Note that this can be non-null even if there is no controls attribute.
238 MediaControls* mediaControls() const; 241 MediaControls* mediaControls() const;
239 242
240 // Notifies the media element that the media controls became visible, so 243 // Notifies the media element that the media controls became visible, so
241 // that text track layout may be updated to avoid overlapping them. 244 // that text track layout may be updated to avoid overlapping them.
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 inline bool isHTMLMediaElement(const HTMLElement& element) 579 inline bool isHTMLMediaElement(const HTMLElement& element)
577 { 580 {
578 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 581 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
579 } 582 }
580 583
581 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 584 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
582 585
583 } // namespace blink 586 } // namespace blink
584 587
585 #endif // HTMLMediaElement_h 588 #endif // HTMLMediaElement_h
OLDNEW
« no previous file with comments | « Source/core/frame/SettingsDelegate.h ('k') | Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698