| 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 void setPreload(const AtomicString&); | 116 void setPreload(const AtomicString&); |
| 117 WebMediaPlayer::Preload preloadType() const; | 117 WebMediaPlayer::Preload preloadType() const; |
| 118 WebMediaPlayer::Preload effectivePreloadType() const; | 118 WebMediaPlayer::Preload effectivePreloadType() const; |
| 119 | 119 |
| 120 TimeRanges* buffered() const; | 120 TimeRanges* buffered() const; |
| 121 void load(); | 121 void load(); |
| 122 String canPlayType(const String& mimeType) const; | 122 String canPlayType(const String& mimeType) const; |
| 123 | 123 |
| 124 // ready state | 124 // ready state |
| 125 enum ReadyState { HAVE_NOTHING, HAVE_METADATA, HAVE_CURRENT_DATA, HAVE_FUTUR
E_DATA, HAVE_ENOUGH_DATA }; | 125 enum ReadyState { HAVE_NOTHING, HAVE_METADATA, HAVE_CURRENT_DATA, HAVE_FUTUR
E_DATA, HAVE_ENOUGH_DATA }; |
| 126 ReadyState readyState() const; | 126 ReadyState getReadyState() const; |
| 127 bool seeking() const; | 127 bool seeking() const; |
| 128 | 128 |
| 129 // playback state | 129 // playback state |
| 130 double currentTime() const; | 130 double currentTime() const; |
| 131 void setCurrentTime(double); | 131 void setCurrentTime(double); |
| 132 double duration() const; | 132 double duration() const; |
| 133 bool paused() const; | 133 bool paused() const; |
| 134 double defaultPlaybackRate() const; | 134 double defaultPlaybackRate() const; |
| 135 void setDefaultPlaybackRate(double); | 135 void setDefaultPlaybackRate(double); |
| 136 double playbackRate() const; | 136 double playbackRate() const; |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 | 268 |
| 269 void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicS
tring&) override; | 269 void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicS
tring&) override; |
| 270 void finishParsingChildren() final; | 270 void finishParsingChildren() final; |
| 271 bool isURLAttribute(const Attribute&) const override; | 271 bool isURLAttribute(const Attribute&) const override; |
| 272 void attach(const AttachContext& = AttachContext()) override; | 272 void attach(const AttachContext& = AttachContext()) override; |
| 273 | 273 |
| 274 void didMoveToNewDocument(Document& oldDocument) override; | 274 void didMoveToNewDocument(Document& oldDocument) override; |
| 275 virtual KURL posterImageURL() const { return KURL(); } | 275 virtual KURL posterImageURL() const { return KURL(); } |
| 276 | 276 |
| 277 enum DisplayMode { Unknown, Poster, Video }; | 277 enum DisplayMode { Unknown, Poster, Video }; |
| 278 DisplayMode displayMode() const { return m_displayMode; } | 278 DisplayMode getDisplayMode() const { return m_displayMode; } |
| 279 virtual void setDisplayMode(DisplayMode mode) { m_displayMode = mode; } | 279 virtual void setDisplayMode(DisplayMode mode) { m_displayMode = mode; } |
| 280 | 280 |
| 281 private: | 281 private: |
| 282 void resetMediaPlayerAndMediaSource(); | 282 void resetMediaPlayerAndMediaSource(); |
| 283 | 283 |
| 284 bool alwaysCreateUserAgentShadowRoot() const final { return true; } | 284 bool alwaysCreateUserAgentShadowRoot() const final { return true; } |
| 285 bool areAuthorShadowsAllowed() const final { return false; } | 285 bool areAuthorShadowsAllowed() const final { return false; } |
| 286 | 286 |
| 287 bool supportsFocus() const final; | 287 bool supportsFocus() const final; |
| 288 bool isMouseFocusable() const final; | 288 bool isMouseFocusable() const final; |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 643 inline bool isHTMLMediaElement(const HTMLElement& element) | 643 inline bool isHTMLMediaElement(const HTMLElement& element) |
| 644 { | 644 { |
| 645 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 645 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
| 646 } | 646 } |
| 647 | 647 |
| 648 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 648 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
| 649 | 649 |
| 650 } // namespace blink | 650 } // namespace blink |
| 651 | 651 |
| 652 #endif // HTMLMediaElement_h | 652 #endif // HTMLMediaElement_h |
| OLD | NEW |