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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 const KURL& currentSrc() const { return m_currentSrc; } | 107 const KURL& currentSrc() const { return m_currentSrc; } |
108 | 108 |
109 enum NetworkState { NETWORK_EMPTY, NETWORK_IDLE, NETWORK_LOADING, NETWORK_NO
_SOURCE }; | 109 enum NetworkState { NETWORK_EMPTY, NETWORK_IDLE, NETWORK_LOADING, NETWORK_NO
_SOURCE }; |
110 NetworkState networkState() const; | 110 NetworkState networkState() const; |
111 | 111 |
112 String preload() const; | 112 String preload() const; |
113 void setPreload(const AtomicString&); | 113 void setPreload(const AtomicString&); |
114 | 114 |
115 virtual PassRefPtr<TimeRanges> buffered() const OVERRIDE FINAL; | 115 virtual PassRefPtr<TimeRanges> buffered() const OVERRIDE FINAL; |
116 void load(); | 116 void load(); |
117 String canPlayType(const String& mimeType, const String& keySystem = String(
), const KURL& = KURL()) const; | 117 String canPlayType(const String& mimeType, const String& keySystem = String(
)) const; |
118 | 118 |
119 // ready state | 119 // ready state |
120 virtual ReadyState readyState() const OVERRIDE FINAL; | 120 virtual ReadyState readyState() const OVERRIDE FINAL; |
121 bool seeking() const; | 121 bool seeking() const; |
122 | 122 |
123 // playback state | 123 // playback state |
124 virtual double currentTime() const OVERRIDE FINAL; | 124 virtual double currentTime() const OVERRIDE FINAL; |
125 virtual void setCurrentTime(double, ExceptionState&) OVERRIDE FINAL; | 125 virtual void setCurrentTime(double, ExceptionState&) OVERRIDE FINAL; |
126 virtual double duration() const OVERRIDE FINAL; | 126 virtual double duration() const OVERRIDE FINAL; |
127 virtual bool paused() const OVERRIDE FINAL; | 127 virtual bool paused() const OVERRIDE FINAL; |
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
587 inline bool isHTMLMediaElement(const Node& node) | 587 inline bool isHTMLMediaElement(const Node& node) |
588 { | 588 { |
589 return node.isElementNode() && toElement(node).isMediaElement(); | 589 return node.isElementNode() && toElement(node).isMediaElement(); |
590 } | 590 } |
591 | 591 |
592 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 592 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
593 | 593 |
594 } //namespace | 594 } //namespace |
595 | 595 |
596 #endif | 596 #endif |
OLD | NEW |