| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 NetworkState networkState() const; | 111 NetworkState networkState() const; |
| 112 | 112 |
| 113 String preload() const; | 113 String preload() const; |
| 114 void setPreload(const AtomicString&); | 114 void setPreload(const AtomicString&); |
| 115 | 115 |
| 116 virtual PassRefPtr<TimeRanges> buffered() const OVERRIDE FINAL; | 116 virtual PassRefPtr<TimeRanges> buffered() const OVERRIDE FINAL; |
| 117 void load(); | 117 void load(); |
| 118 String canPlayType(const String& mimeType, const String& keySystem = String(
)) const; | 118 String canPlayType(const String& mimeType, const String& keySystem = String(
)) const; |
| 119 | 119 |
| 120 // ready state | 120 // ready state |
| 121 virtual ReadyState readyState() const OVERRIDE FINAL; | 121 enum ReadyState { HAVE_NOTHING, HAVE_METADATA, HAVE_CURRENT_DATA, HAVE_FUTUR
E_DATA, HAVE_ENOUGH_DATA }; |
| 122 ReadyState readyState() const; |
| 122 bool seeking() const; | 123 bool seeking() const; |
| 123 | 124 |
| 124 // playback state | 125 // playback state |
| 125 virtual double currentTime() const OVERRIDE FINAL; | 126 virtual double currentTime() const OVERRIDE FINAL; |
| 126 virtual void setCurrentTime(double, ExceptionState&) OVERRIDE FINAL; | 127 virtual void setCurrentTime(double, ExceptionState&) OVERRIDE FINAL; |
| 127 virtual double duration() const OVERRIDE FINAL; | 128 virtual double duration() const OVERRIDE FINAL; |
| 128 virtual bool paused() const OVERRIDE FINAL; | 129 virtual bool paused() const OVERRIDE FINAL; |
| 129 virtual double defaultPlaybackRate() const OVERRIDE FINAL; | 130 virtual double defaultPlaybackRate() const OVERRIDE FINAL; |
| 130 virtual void setDefaultPlaybackRate(double) OVERRIDE FINAL; | 131 virtual void setDefaultPlaybackRate(double) OVERRIDE FINAL; |
| 131 virtual double playbackRate() const OVERRIDE FINAL; | 132 virtual double playbackRate() const OVERRIDE FINAL; |
| (...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 600 inline bool isHTMLMediaElement(const Node& node) | 601 inline bool isHTMLMediaElement(const Node& node) |
| 601 { | 602 { |
| 602 return node.isElementNode() && toElement(node).isMediaElement(); | 603 return node.isElementNode() && toElement(node).isMediaElement(); |
| 603 } | 604 } |
| 604 | 605 |
| 605 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 606 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
| 606 | 607 |
| 607 } //namespace | 608 } //namespace |
| 608 | 609 |
| 609 #endif | 610 #endif |
| OLD | NEW |