| 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 DEFINE_ATTRIBUTE_EVENT_LISTENER(needkey); | 166 DEFINE_ATTRIBUTE_EVENT_LISTENER(needkey); |
| 167 | 167 |
| 168 // controls | 168 // controls |
| 169 bool controls() const; | 169 bool controls() const; |
| 170 void setControls(bool); | 170 void setControls(bool); |
| 171 virtual double volume() const OVERRIDE FINAL; | 171 virtual double volume() const OVERRIDE FINAL; |
| 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(); | |
| 177 virtual void beginScrubbing() OVERRIDE FINAL; | 176 virtual void beginScrubbing() OVERRIDE FINAL; |
| 178 virtual void endScrubbing() OVERRIDE FINAL; | 177 virtual void endScrubbing() OVERRIDE FINAL; |
| 179 | 178 |
| 180 virtual bool canPlay() const OVERRIDE FINAL; | 179 virtual bool canPlay() const OVERRIDE FINAL; |
| 181 | 180 |
| 182 PassRefPtr<TextTrack> addTextTrack(const AtomicString& kind, const AtomicStr
ing& label, const AtomicString& language, ExceptionState&); | 181 PassRefPtr<TextTrack> addTextTrack(const AtomicString& kind, const AtomicStr
ing& label, const AtomicString& language, ExceptionState&); |
| 183 PassRefPtr<TextTrack> addTextTrack(const AtomicString& kind, const AtomicStr
ing& label, ExceptionState& exceptionState) { return addTextTrack(kind, label, e
mptyAtom, exceptionState); } | 182 PassRefPtr<TextTrack> addTextTrack(const AtomicString& kind, const AtomicStr
ing& label, ExceptionState& exceptionState) { return addTextTrack(kind, label, e
mptyAtom, exceptionState); } |
| 184 PassRefPtr<TextTrack> addTextTrack(const AtomicString& kind, ExceptionState&
exceptionState) { return addTextTrack(kind, emptyAtom, emptyAtom, exceptionStat
e); } | 183 PassRefPtr<TextTrack> addTextTrack(const AtomicString& kind, ExceptionState&
exceptionState) { return addTextTrack(kind, emptyAtom, emptyAtom, exceptionStat
e); } |
| 185 | 184 |
| 186 TextTrackList* textTracks(); | 185 TextTrackList* textTracks(); |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 600 inline bool isHTMLMediaElement(const Node& node) | 599 inline bool isHTMLMediaElement(const Node& node) |
| 601 { | 600 { |
| 602 return node.isElementNode() && toElement(node).isMediaElement(); | 601 return node.isElementNode() && toElement(node).isMediaElement(); |
| 603 } | 602 } |
| 604 | 603 |
| 605 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 604 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
| 606 | 605 |
| 607 } //namespace | 606 } //namespace |
| 608 | 607 |
| 609 #endif | 608 #endif |
| OLD | NEW |