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

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

Issue 2557043003: Make media controls not depend on the webkitfullscreenchange event (Closed)
Patch Set: Created 4 years 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 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights
3 * reserved. 3 * reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 double currentPlaybackPosition() const; 476 double currentPlaybackPosition() const;
477 double officialPlaybackPosition() const; 477 double officialPlaybackPosition() const;
478 void setOfficialPlaybackPosition(double) const; 478 void setOfficialPlaybackPosition(double) const;
479 void requireOfficialPlaybackPositionUpdate() const; 479 void requireOfficialPlaybackPositionUpdate() const;
480 480
481 void ensureMediaControls(); 481 void ensureMediaControls();
482 void configureMediaControls(); 482 void configureMediaControls();
483 483
484 TextTrackContainer& ensureTextTrackContainer(); 484 TextTrackContainer& ensureTextTrackContainer();
485 485
486 EventDispatchHandlingState* preDispatchEventHandler(Event*) final;
487
488 void changeNetworkStateFromLoadingToIdle(); 486 void changeNetworkStateFromLoadingToIdle();
489 487
490 bool isAutoplaying() const { return m_autoplaying; } 488 bool isAutoplaying() const { return m_autoplaying; }
491 489
492 WebMediaPlayer::CORSMode corsMode() const; 490 WebMediaPlayer::CORSMode corsMode() const;
493 491
494 // Returns the "direction of playback" value as specified in the HTML5 spec. 492 // Returns the "direction of playback" value as specified in the HTML5 spec.
495 enum DirectionOfPlayback { Backward, Forward }; 493 enum DirectionOfPlayback { Backward, Forward };
496 DirectionOfPlayback getDirectionOfPlayback() const; 494 DirectionOfPlayback getDirectionOfPlayback() const;
497 495
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 739
742 inline bool isHTMLMediaElement(const HTMLElement& element) { 740 inline bool isHTMLMediaElement(const HTMLElement& element) {
743 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 741 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
744 } 742 }
745 743
746 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 744 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
747 745
748 } // namespace blink 746 } // namespace blink
749 747
750 #endif // HTMLMediaElement_h 748 #endif // HTMLMediaElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698