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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 void setCurrentTime(double, ExceptionState&); | 125 void setCurrentTime(double, ExceptionState&); |
126 double initialTime() const; | 126 double initialTime() const; |
127 double startTime() const; | 127 double startTime() const; |
128 double duration() const; | 128 double duration() const; |
129 bool paused() const; | 129 bool paused() const; |
130 double defaultPlaybackRate() const; | 130 double defaultPlaybackRate() const; |
131 void setDefaultPlaybackRate(double); | 131 void setDefaultPlaybackRate(double); |
132 double playbackRate() const; | 132 double playbackRate() const; |
133 void setPlaybackRate(double); | 133 void setPlaybackRate(double); |
134 void updatePlaybackRate(); | 134 void updatePlaybackRate(); |
135 bool webkitPreservesPitch() const; | |
136 void setWebkitPreservesPitch(bool); | |
137 PassRefPtr<TimeRanges> played(); | 135 PassRefPtr<TimeRanges> played(); |
138 PassRefPtr<TimeRanges> seekable() const; | 136 PassRefPtr<TimeRanges> seekable() const; |
139 bool ended() const; | 137 bool ended() const; |
140 bool autoplay() const; | 138 bool autoplay() const; |
141 void setAutoplay(bool b); | 139 void setAutoplay(bool b); |
142 bool loop() const; | 140 bool loop() const; |
143 void setLoop(bool b); | 141 void setLoop(bool b); |
144 void play(); | 142 void play(); |
145 void pause(); | 143 void pause(); |
146 | 144 |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 bool isAutoplaying() const { return m_autoplaying; } | 468 bool isAutoplaying() const { return m_autoplaying; } |
471 | 469 |
472 Timer<HTMLMediaElement> m_loadTimer; | 470 Timer<HTMLMediaElement> m_loadTimer; |
473 Timer<HTMLMediaElement> m_progressEventTimer; | 471 Timer<HTMLMediaElement> m_progressEventTimer; |
474 Timer<HTMLMediaElement> m_playbackProgressTimer; | 472 Timer<HTMLMediaElement> m_playbackProgressTimer; |
475 RefPtr<TimeRanges> m_playedTimeRanges; | 473 RefPtr<TimeRanges> m_playedTimeRanges; |
476 OwnPtr<GenericEventQueue> m_asyncEventQueue; | 474 OwnPtr<GenericEventQueue> m_asyncEventQueue; |
477 | 475 |
478 double m_playbackRate; | 476 double m_playbackRate; |
479 double m_defaultPlaybackRate; | 477 double m_defaultPlaybackRate; |
480 bool m_webkitPreservesPitch; | |
481 NetworkState m_networkState; | 478 NetworkState m_networkState; |
482 ReadyState m_readyState; | 479 ReadyState m_readyState; |
483 ReadyState m_readyStateMaximum; | 480 ReadyState m_readyStateMaximum; |
484 KURL m_currentSrc; | 481 KURL m_currentSrc; |
485 | 482 |
486 RefPtr<MediaError> m_error; | 483 RefPtr<MediaError> m_error; |
487 | 484 |
488 double m_volume; | 485 double m_volume; |
489 double m_lastSeekTime; | 486 double m_lastSeekTime; |
490 | 487 |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
611 | 608 |
612 inline HTMLMediaElement* toHTMLMediaElement(Node* node) | 609 inline HTMLMediaElement* toHTMLMediaElement(Node* node) |
613 { | 610 { |
614 ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLMediaElement(node)); | 611 ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLMediaElement(node)); |
615 return static_cast<HTMLMediaElement*>(node); | 612 return static_cast<HTMLMediaElement*>(node); |
616 } | 613 } |
617 | 614 |
618 } //namespace | 615 } //namespace |
619 | 616 |
620 #endif | 617 #endif |
OLD | NEW |