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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 virtual void setVolume(double, ExceptionState&) OVERRIDE FINAL; | 172 virtual void setVolume(double, ExceptionState&) OVERRIDE FINAL; |
173 virtual bool muted() const OVERRIDE FINAL; | 173 virtual bool muted() const OVERRIDE FINAL; |
174 virtual void setMuted(bool) OVERRIDE FINAL; | 174 virtual void setMuted(bool) OVERRIDE FINAL; |
175 | 175 |
176 void togglePlayState(); | 176 void togglePlayState(); |
177 virtual void beginScrubbing() OVERRIDE FINAL; | 177 virtual void beginScrubbing() OVERRIDE FINAL; |
178 virtual void endScrubbing() OVERRIDE FINAL; | 178 virtual void endScrubbing() OVERRIDE FINAL; |
179 | 179 |
180 virtual bool canPlay() const OVERRIDE FINAL; | 180 virtual bool canPlay() const OVERRIDE FINAL; |
181 | 181 |
182 double percentLoaded() const; | |
183 | |
184 PassRefPtr<TextTrack> addTextTrack(const AtomicString& kind, const AtomicStr
ing& label, const AtomicString& language, ExceptionState&); | 182 PassRefPtr<TextTrack> addTextTrack(const AtomicString& kind, const AtomicStr
ing& label, const AtomicString& language, ExceptionState&); |
185 PassRefPtr<TextTrack> addTextTrack(const AtomicString& kind, const AtomicStr
ing& label, ExceptionState& exceptionState) { return addTextTrack(kind, label, e
mptyAtom, exceptionState); } | 183 PassRefPtr<TextTrack> addTextTrack(const AtomicString& kind, const AtomicStr
ing& label, ExceptionState& exceptionState) { return addTextTrack(kind, label, e
mptyAtom, exceptionState); } |
186 PassRefPtr<TextTrack> addTextTrack(const AtomicString& kind, ExceptionState&
exceptionState) { return addTextTrack(kind, emptyAtom, emptyAtom, exceptionStat
e); } | 184 PassRefPtr<TextTrack> addTextTrack(const AtomicString& kind, ExceptionState&
exceptionState) { return addTextTrack(kind, emptyAtom, emptyAtom, exceptionStat
e); } |
187 | 185 |
188 TextTrackList* textTracks(); | 186 TextTrackList* textTracks(); |
189 CueList currentlyActiveCues() const { return m_currentlyActiveCues; } | 187 CueList currentlyActiveCues() const { return m_currentlyActiveCues; } |
190 | 188 |
191 void addTrack(TextTrack*); | 189 void addTrack(TextTrack*); |
192 void removeTrack(TextTrack*); | 190 void removeTrack(TextTrack*); |
193 void removeAllInbandTracks(); | 191 void removeAllInbandTracks(); |
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
603 inline bool isHTMLMediaElement(const Node& node) | 601 inline bool isHTMLMediaElement(const Node& node) |
604 { | 602 { |
605 return node.isElementNode() && toElement(node).isMediaElement(); | 603 return node.isElementNode() && toElement(node).isMediaElement(); |
606 } | 604 } |
607 | 605 |
608 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 606 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
609 | 607 |
610 } //namespace | 608 } //namespace |
611 | 609 |
612 #endif | 610 #endif |
OLD | NEW |