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

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

Issue 1156993013: New media playback UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: minor decrufting. 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
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 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 421
422 void changeNetworkStateFromLoadingToIdle(); 422 void changeNetworkStateFromLoadingToIdle();
423 423
424 const AtomicString& mediaGroup() const; 424 const AtomicString& mediaGroup() const;
425 void setMediaGroup(const AtomicString&); 425 void setMediaGroup(const AtomicString&);
426 void updateMediaController(); 426 void updateMediaController();
427 bool isBlocked() const; 427 bool isBlocked() const;
428 bool isBlockedOnMediaController() const; 428 bool isBlockedOnMediaController() const;
429 bool isAutoplaying() const { return m_autoplaying; } 429 bool isAutoplaying() const { return m_autoplaying; }
430 430
431 void setAllowHiddenAudioElements(bool);
432
431 WebMediaPlayer::CORSMode corsMode() const; 433 WebMediaPlayer::CORSMode corsMode() const;
432 434
433 // Returns the "direction of playback" value as specified in the HTML5 spec. 435 // Returns the "direction of playback" value as specified in the HTML5 spec.
434 enum DirectionOfPlayback { Backward, Forward }; 436 enum DirectionOfPlayback { Backward, Forward };
435 DirectionOfPlayback directionOfPlayback() const; 437 DirectionOfPlayback directionOfPlayback() const;
436 438
437 // Returns the "effective playback rate" value as specified in the HTML5 spe c. 439 // Returns the "effective playback rate" value as specified in the HTML5 spe c.
438 double effectivePlaybackRate() const; 440 double effectivePlaybackRate() const;
439 441
440 // Creates placeholder AudioTrack and/or VideoTrack objects when WebMemediaP layer objects 442 // Creates placeholder AudioTrack and/or VideoTrack objects when WebMemediaP layer objects
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 inline bool isHTMLMediaElement(const HTMLElement& element) 581 inline bool isHTMLMediaElement(const HTMLElement& element)
580 { 582 {
581 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 583 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
582 } 584 }
583 585
584 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 586 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
585 587
586 } // namespace blink 588 } // namespace blink
587 589
588 #endif // HTMLMediaElement_h 590 #endif // HTMLMediaElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698