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

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

Issue 331063006: Fix HTMLMediaElement "direction of playback" behavior. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 440
441 const AtomicString& mediaGroup() const; 441 const AtomicString& mediaGroup() const;
442 void setMediaGroup(const AtomicString&); 442 void setMediaGroup(const AtomicString&);
443 void updateMediaController(); 443 void updateMediaController();
444 bool isBlocked() const; 444 bool isBlocked() const;
445 bool isBlockedOnMediaController() const; 445 bool isBlockedOnMediaController() const;
446 bool isAutoplaying() const { return m_autoplaying; } 446 bool isAutoplaying() const { return m_autoplaying; }
447 447
448 blink::WebMediaPlayer::CORSMode corsMode() const; 448 blink::WebMediaPlayer::CORSMode corsMode() const;
449 449
450 // Returns the "direction of playback" value as specified in the HTML5 spec.
451 enum DirectionOfPlayback { Backward, Forward };
452 DirectionOfPlayback directionOfPlayback() const;
453
450 // Creates placeholder AudioTrack and/or VideoTrack objects when WebMemediaP layer objects 454 // Creates placeholder AudioTrack and/or VideoTrack objects when WebMemediaP layer objects
451 // advertise they have audio and/or video, but don't explicitly signal them via 455 // advertise they have audio and/or video, but don't explicitly signal them via
452 // addAudioTrack() and addVideoTrack(). 456 // addAudioTrack() and addVideoTrack().
453 // FIXME: Remove this once all WebMediaPlayer implementations properly repor t their track info. 457 // FIXME: Remove this once all WebMediaPlayer implementations properly repor t their track info.
454 void createPlaceholderTracksIfNecessary(); 458 void createPlaceholderTracksIfNecessary();
455 459
456 // Sets the selected/enabled tracks if they aren't set before we initially 460 // Sets the selected/enabled tracks if they aren't set before we initially
457 // transition to HAVE_METADATA. 461 // transition to HAVE_METADATA.
458 void selectInitialTracksIfNecessary(); 462 void selectInitialTracksIfNecessary();
459 463
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 inline bool isHTMLMediaElement(const HTMLElement& element) 619 inline bool isHTMLMediaElement(const HTMLElement& element)
616 { 620 {
617 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 621 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
618 } 622 }
619 623
620 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 624 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
621 625
622 } //namespace 626 } //namespace
623 627
624 #endif 628 #endif
OLDNEW
« no previous file with comments | « LayoutTests/media/video-seek-to-duration-with-playbackrate-zero-expected.txt ('k') | Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698