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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
120 | 120 |
121 // ready state | 121 // ready state |
122 enum ReadyState { HAVE_NOTHING, HAVE_METADATA, HAVE_CURRENT_DATA, HAVE_FUTUR E_DATA, HAVE_ENOUGH_DATA }; | 122 enum ReadyState { HAVE_NOTHING, HAVE_METADATA, HAVE_CURRENT_DATA, HAVE_FUTUR E_DATA, HAVE_ENOUGH_DATA }; |
123 ReadyState readyState() const; | 123 ReadyState readyState() const; |
124 bool seeking() const; | 124 bool seeking() const; |
125 | 125 |
126 // playback state | 126 // playback state |
127 double currentTime() const; | 127 double currentTime() const; |
128 void setCurrentTime(double, ExceptionState&); | 128 void setCurrentTime(double, ExceptionState&); |
129 double duration() const; | 129 double duration() const; |
130 double getStartDate(); | |
130 bool paused() const; | 131 bool paused() const; |
131 double defaultPlaybackRate() const; | 132 double defaultPlaybackRate() const; |
132 void setDefaultPlaybackRate(double); | 133 void setDefaultPlaybackRate(double); |
133 double playbackRate() const; | 134 double playbackRate() const; |
134 void setPlaybackRate(double); | 135 void setPlaybackRate(double); |
135 void updatePlaybackRate(); | 136 void updatePlaybackRate(); |
136 PassRefPtr<TimeRanges> played(); | 137 PassRefPtr<TimeRanges> played(); |
137 PassRefPtr<TimeRanges> seekable() const; | 138 PassRefPtr<TimeRanges> seekable() const; |
138 bool ended() const; | 139 bool ended() const; |
139 bool autoplay() const; | 140 bool autoplay() const; |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
434 RefPtr<MediaError> m_error; | 435 RefPtr<MediaError> m_error; |
435 | 436 |
436 double m_volume; | 437 double m_volume; |
437 double m_lastSeekTime; | 438 double m_lastSeekTime; |
438 | 439 |
439 double m_previousProgressTime; | 440 double m_previousProgressTime; |
440 | 441 |
441 // Cached duration to suppress duplicate events if duration unchanged. | 442 // Cached duration to suppress duplicate events if duration unchanged. |
442 double m_duration; | 443 double m_duration; |
443 | 444 |
445 // Holds the "timeline offset" as described in the HTML5 spec. Represents th e | |
446 // number of seconds since January 1, 1970 or NaN if no offset is in effect. | |
acolwell GONE FROM CHROMIUM
2014/05/15 13:01:22
s/seconds/milliseconds.
| |
447 double m_timelineOffset; | |
448 | |
444 // The last time a timeupdate event was sent (wall clock). | 449 // The last time a timeupdate event was sent (wall clock). |
445 double m_lastTimeUpdateEventWallTime; | 450 double m_lastTimeUpdateEventWallTime; |
446 | 451 |
447 // The last time a timeupdate event was sent in movie time. | 452 // The last time a timeupdate event was sent in movie time. |
448 double m_lastTimeUpdateEventMovieTime; | 453 double m_lastTimeUpdateEventMovieTime; |
449 | 454 |
450 // Loading state. | 455 // Loading state. |
451 enum LoadState { WaitingForSource, LoadingFromSrcAttr, LoadingFromSourceElem ent }; | 456 enum LoadState { WaitingForSource, LoadingFromSrcAttr, LoadingFromSourceElem ent }; |
452 LoadState m_loadState; | 457 LoadState m_loadState; |
453 RefPtr<HTMLSourceElement> m_currentSourceNode; | 458 RefPtr<HTMLSourceElement> m_currentSourceNode; |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
551 inline bool isHTMLMediaElement(const HTMLElement& element) | 556 inline bool isHTMLMediaElement(const HTMLElement& element) |
552 { | 557 { |
553 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 558 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
554 } | 559 } |
555 | 560 |
556 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 561 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
557 | 562 |
558 } //namespace | 563 } //namespace |
559 | 564 |
560 #endif | 565 #endif |
OLD | NEW |