OLD | NEW |
---|---|
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 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
404 // This does not check user gesture restrictions. | 404 // This does not check user gesture restrictions. |
405 void playInternal(); | 405 void playInternal(); |
406 | 406 |
407 void gesturelessInitialPlayHalted(); | 407 void gesturelessInitialPlayHalted(); |
408 void autoplayMediaEncountered(); | 408 void autoplayMediaEncountered(); |
409 void allowVideoRendering(); | 409 void allowVideoRendering(); |
410 | 410 |
411 void updateVolume(); | 411 void updateVolume(); |
412 void updatePlayState(); | 412 void updatePlayState(); |
413 bool potentiallyPlaying() const; | 413 bool potentiallyPlaying() const; |
414 bool endedPlayback() const; | 414 bool endedPlayback() const; |
wolenetz
2015/02/12 22:12:27
There are only a few calls to this method. I'm not
chcunningham
2015/02/13 03:37:29
For me its less about the convenience, more about
fs
2015/02/13 11:49:22
It's fairly common in Blink to use default argumen
wolenetz
2015/02/13 22:24:23
Good points. I would prefer default argument, with
chcunningham
2015/02/13 23:01:43
Acknowledged.
chcunningham
2015/02/13 23:01:43
Done.
| |
415 bool endedPlayback(bool ignoreLoopAttr) const; | |
415 bool stoppedDueToErrors() const; | 416 bool stoppedDueToErrors() const; |
416 bool couldPlayIfEnoughData() const; | 417 bool couldPlayIfEnoughData() const; |
417 | 418 |
418 void setShouldDelayLoadEvent(bool); | 419 void setShouldDelayLoadEvent(bool); |
419 void invalidateCachedTime(); | 420 void invalidateCachedTime(); |
420 void refreshCachedTime() const; | 421 void refreshCachedTime() const; |
421 | 422 |
422 bool hasMediaControls() const; | 423 bool hasMediaControls() const; |
423 void ensureMediaControls(); | 424 void ensureMediaControls(); |
424 void configureMediaControls(); | 425 void configureMediaControls(); |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
611 inline bool isHTMLMediaElement(const HTMLElement& element) | 612 inline bool isHTMLMediaElement(const HTMLElement& element) |
612 { | 613 { |
613 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 614 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
614 } | 615 } |
615 | 616 |
616 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 617 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
617 | 618 |
618 } // namespace blink | 619 } // namespace blink |
619 | 620 |
620 #endif // HTMLMediaElement_h | 621 #endif // HTMLMediaElement_h |
OLD | NEW |