| 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 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 double m_lastSeekTime; | 501 double m_lastSeekTime; |
| 502 | 502 |
| 503 double m_previousProgressTime; | 503 double m_previousProgressTime; |
| 504 | 504 |
| 505 // Cached duration to suppress duplicate events if duration unchanged. | 505 // Cached duration to suppress duplicate events if duration unchanged. |
| 506 double m_duration; | 506 double m_duration; |
| 507 | 507 |
| 508 // The last time a timeupdate event was sent (wall clock). | 508 // The last time a timeupdate event was sent (wall clock). |
| 509 double m_lastTimeUpdateEventWallTime; | 509 double m_lastTimeUpdateEventWallTime; |
| 510 | 510 |
| 511 // The last time a timeupdate event was sent in movie time. |
| 512 double m_lastTimeUpdateEventMovieTime; |
| 513 |
| 511 // The default playback start position. | 514 // The default playback start position. |
| 512 double m_defaultPlaybackStartPosition; | 515 double m_defaultPlaybackStartPosition; |
| 513 | 516 |
| 514 // Loading state. | 517 // Loading state. |
| 515 enum LoadState { WaitingForSource, LoadingFromSrcAttr, LoadingFromSourceElem
ent }; | 518 enum LoadState { WaitingForSource, LoadingFromSrcAttr, LoadingFromSourceElem
ent }; |
| 516 LoadState m_loadState; | 519 LoadState m_loadState; |
| 517 RefPtrWillBeMember<HTMLSourceElement> m_currentSourceNode; | 520 RefPtrWillBeMember<HTMLSourceElement> m_currentSourceNode; |
| 518 RefPtrWillBeMember<Node> m_nextChildNodeToConsider; | 521 RefPtrWillBeMember<Node> m_nextChildNodeToConsider; |
| 519 | 522 |
| 520 // "Deferred loading" state (for preload=none). | 523 // "Deferred loading" state (for preload=none). |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 635 inline bool isHTMLMediaElement(const HTMLElement& element) | 638 inline bool isHTMLMediaElement(const HTMLElement& element) |
| 636 { | 639 { |
| 637 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 640 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
| 638 } | 641 } |
| 639 | 642 |
| 640 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 643 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
| 641 | 644 |
| 642 } // namespace blink | 645 } // namespace blink |
| 643 | 646 |
| 644 #endif // HTMLMediaElement_h | 647 #endif // HTMLMediaElement_h |
| OLD | NEW |