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 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 void allowVideoRendering(); | 420 void allowVideoRendering(); |
421 | 421 |
422 void updateVolume(); | 422 void updateVolume(); |
423 void updatePlayState(); | 423 void updatePlayState(); |
424 bool potentiallyPlaying() const; | 424 bool potentiallyPlaying() const; |
425 bool endedPlayback() const; | 425 bool endedPlayback() const; |
426 bool stoppedDueToErrors() const; | 426 bool stoppedDueToErrors() const; |
427 bool pausedForUserInteraction() const; | 427 bool pausedForUserInteraction() const; |
428 bool couldPlayIfEnoughData() const; | 428 bool couldPlayIfEnoughData() const; |
429 | 429 |
430 double minTimeSeekable() const; | |
431 double maxTimeSeekable() const; | |
432 | |
433 // Pauses playback without changing any states or generating events | 430 // Pauses playback without changing any states or generating events |
434 void setPausedInternal(bool); | 431 void setPausedInternal(bool); |
435 | 432 |
436 void setPlaybackRateInternal(double); | 433 void setPlaybackRateInternal(double); |
437 | 434 |
438 void setShouldDelayLoadEvent(bool); | 435 void setShouldDelayLoadEvent(bool); |
439 void invalidateCachedTime(); | 436 void invalidateCachedTime(); |
440 void refreshCachedTime() const; | 437 void refreshCachedTime() const; |
441 | 438 |
442 bool hasMediaControls() const; | 439 bool hasMediaControls() const; |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
597 inline bool isHTMLMediaElement(const Node& node) | 594 inline bool isHTMLMediaElement(const Node& node) |
598 { | 595 { |
599 return node.isElementNode() && toElement(node).isMediaElement(); | 596 return node.isElementNode() && toElement(node).isMediaElement(); |
600 } | 597 } |
601 | 598 |
602 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 599 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
603 | 600 |
604 } //namespace | 601 } //namespace |
605 | 602 |
606 #endif | 603 #endif |
OLD | NEW |