| 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 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 // This does not check user gesture restrictions. | 387 // This does not check user gesture restrictions. |
| 388 void playInternal(); | 388 void playInternal(); |
| 389 | 389 |
| 390 void allowVideoRendering(); | 390 void allowVideoRendering(); |
| 391 | 391 |
| 392 void updateVolume(); | 392 void updateVolume(); |
| 393 void updatePlayState(); | 393 void updatePlayState(); |
| 394 bool potentiallyPlaying() const; | 394 bool potentiallyPlaying() const; |
| 395 bool endedPlayback() const; | 395 bool endedPlayback() const; |
| 396 bool stoppedDueToErrors() const; | 396 bool stoppedDueToErrors() const; |
| 397 bool pausedForUserInteraction() const; | |
| 398 bool couldPlayIfEnoughData() const; | 397 bool couldPlayIfEnoughData() const; |
| 399 | 398 |
| 400 // Pauses playback without changing any states or generating events | 399 // Pauses playback without changing any states or generating events |
| 401 void setPausedInternal(bool); | 400 void setPausedInternal(bool); |
| 402 | 401 |
| 403 void setShouldDelayLoadEvent(bool); | 402 void setShouldDelayLoadEvent(bool); |
| 404 void invalidateCachedTime(); | 403 void invalidateCachedTime(); |
| 405 void refreshCachedTime() const; | 404 void refreshCachedTime() const; |
| 406 | 405 |
| 407 bool hasMediaControls() const; | 406 bool hasMediaControls() const; |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 560 inline bool isHTMLMediaElement(const HTMLElement& element) | 559 inline bool isHTMLMediaElement(const HTMLElement& element) |
| 561 { | 560 { |
| 562 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 561 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
| 563 } | 562 } |
| 564 | 563 |
| 565 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 564 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
| 566 | 565 |
| 567 } //namespace | 566 } //namespace |
| 568 | 567 |
| 569 #endif | 568 #endif |
| OLD | NEW |