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

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

Issue 1018593004: Implement <video controls> dodging for text track layout (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: braces Created 5 years, 9 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
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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 void setClosedCaptionsVisible(bool); 229 void setClosedCaptionsVisible(bool);
230 230
231 void remoteRouteAvailabilityChanged(bool); 231 void remoteRouteAvailabilityChanged(bool);
232 void connectedToRemoteDevice(); 232 void connectedToRemoteDevice();
233 void disconnectedFromRemoteDevice(); 233 void disconnectedFromRemoteDevice();
234 234
235 // Returns the MediaControls, or null if they have not been added yet. 235 // Returns the MediaControls, or null if they have not been added yet.
236 // Note that this can be non-null even if there is no controls attribute. 236 // Note that this can be non-null even if there is no controls attribute.
237 MediaControls* mediaControls() const; 237 MediaControls* mediaControls() const;
238 238
239 // Notifies the media element that the media controls became visible, so
240 // that text track layout may be updated to avoid overlapping them.
241 void mediaControlsDidBecomeVisible();
242
239 void sourceWasRemoved(HTMLSourceElement*); 243 void sourceWasRemoved(HTMLSourceElement*);
240 void sourceWasAdded(HTMLSourceElement*); 244 void sourceWasAdded(HTMLSourceElement*);
241 245
242 // ActiveDOMObject functions. 246 // ActiveDOMObject functions.
243 virtual bool hasPendingActivity() const override final; 247 virtual bool hasPendingActivity() const override final;
244 virtual void contextDestroyed() override final; 248 virtual void contextDestroyed() override final;
245 249
246 #if ENABLE(WEB_AUDIO) 250 #if ENABLE(WEB_AUDIO)
247 AudioSourceProviderClient* audioSourceNode() { return m_audioSourceNode; } 251 AudioSourceProviderClient* audioSourceNode() { return m_audioSourceNode; }
248 void setAudioSourceNode(AudioSourceProviderClient*); 252 void setAudioSourceNode(AudioSourceProviderClient*);
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 inline bool isHTMLMediaElement(const HTMLElement& element) 585 inline bool isHTMLMediaElement(const HTMLElement& element)
582 { 586 {
583 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 587 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
584 } 588 }
585 589
586 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 590 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
587 591
588 } // namespace blink 592 } // namespace blink
589 593
590 #endif // HTMLMediaElement_h 594 #endif // HTMLMediaElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698