| 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 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 void setPausedInternal(bool); | 437 void setPausedInternal(bool); |
| 438 | 438 |
| 439 void setShouldDelayLoadEvent(bool); | 439 void setShouldDelayLoadEvent(bool); |
| 440 void invalidateCachedTime(); | 440 void invalidateCachedTime(); |
| 441 void refreshCachedTime() const; | 441 void refreshCachedTime() const; |
| 442 | 442 |
| 443 bool hasMediaControls() const; | 443 bool hasMediaControls() const; |
| 444 bool createMediaControls(); | 444 bool createMediaControls(); |
| 445 void configureMediaControls(); | 445 void configureMediaControls(); |
| 446 | 446 |
| 447 void prepareMediaFragmentURI(); | |
| 448 void applyMediaFragmentURI(); | |
| 449 | |
| 450 virtual void* preDispatchEventHandler(Event*) OVERRIDE FINAL; | 447 virtual void* preDispatchEventHandler(Event*) OVERRIDE FINAL; |
| 451 | 448 |
| 452 void changeNetworkStateFromLoadingToIdle(); | 449 void changeNetworkStateFromLoadingToIdle(); |
| 453 | 450 |
| 454 const AtomicString& mediaGroup() const; | 451 const AtomicString& mediaGroup() const; |
| 455 void setMediaGroup(const AtomicString&); | 452 void setMediaGroup(const AtomicString&); |
| 456 void updateMediaController(); | 453 void updateMediaController(); |
| 457 bool isBlocked() const; | 454 bool isBlocked() const; |
| 458 bool isBlockedOnMediaController() const; | 455 bool isBlockedOnMediaController() const; |
| 459 bool isAutoplaying() const { return m_autoplaying; } | 456 bool isAutoplaying() const { return m_autoplaying; } |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 540 MediaPlayer::Preload m_preload; | 537 MediaPlayer::Preload m_preload; |
| 541 | 538 |
| 542 DisplayMode m_displayMode; | 539 DisplayMode m_displayMode; |
| 543 | 540 |
| 544 RefPtrWillBeMember<HTMLMediaSource> m_mediaSource; | 541 RefPtrWillBeMember<HTMLMediaSource> m_mediaSource; |
| 545 | 542 |
| 546 // Cached time value. Only valid when ready state is HAVE_METADATA or | 543 // Cached time value. Only valid when ready state is HAVE_METADATA or |
| 547 // higher, otherwise the current time is assumed to be zero. | 544 // higher, otherwise the current time is assumed to be zero. |
| 548 mutable double m_cachedTime; | 545 mutable double m_cachedTime; |
| 549 | 546 |
| 550 double m_fragmentStartTime; | |
| 551 double m_fragmentEndTime; | 547 double m_fragmentEndTime; |
| 552 | 548 |
| 553 typedef unsigned PendingActionFlags; | 549 typedef unsigned PendingActionFlags; |
| 554 PendingActionFlags m_pendingActionFlags; | 550 PendingActionFlags m_pendingActionFlags; |
| 555 | 551 |
| 556 // FIXME: MediaElement has way too many state bits. | 552 // FIXME: MediaElement has way too many state bits. |
| 557 bool m_userGestureRequiredForPlay : 1; | 553 bool m_userGestureRequiredForPlay : 1; |
| 558 bool m_playing : 1; | 554 bool m_playing : 1; |
| 559 bool m_shouldDelayLoadEvent : 1; | 555 bool m_shouldDelayLoadEvent : 1; |
| 560 bool m_haveFiredLoadedData : 1; | 556 bool m_haveFiredLoadedData : 1; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 635 inline bool isHTMLMediaElement(const HTMLElement& element) | 631 inline bool isHTMLMediaElement(const HTMLElement& element) |
| 636 { | 632 { |
| 637 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 633 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
| 638 } | 634 } |
| 639 | 635 |
| 640 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 636 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
| 641 | 637 |
| 642 } // namespace blink | 638 } // namespace blink |
| 643 | 639 |
| 644 #endif // HTMLMediaElement_h | 640 #endif // HTMLMediaElement_h |
| OLD | NEW |