| 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 | 174 |
| 175 void togglePlayState(); | 175 void togglePlayState(); |
| 176 void beginScrubbing(); | 176 void beginScrubbing(); |
| 177 void endScrubbing(); | 177 void endScrubbing(); |
| 178 | 178 |
| 179 bool canPlay() const; | 179 bool canPlay() const; |
| 180 | 180 |
| 181 double percentLoaded() const; | 181 double percentLoaded() const; |
| 182 | 182 |
| 183 PassRefPtr<TextTrack> addTextTrack(const String& kind, const String& label,
const String& language, ExceptionState&); | 183 PassRefPtr<TextTrack> addTextTrack(const String& kind, const String& label,
const String& language, ExceptionState&); |
| 184 PassRefPtr<TextTrack> addTextTrack(const String& kind, const String& label,
ExceptionState& es) { return addTextTrack(kind, label, emptyString(), es); } | 184 PassRefPtr<TextTrack> addTextTrack(const String& kind, const String& label,
ExceptionState& exceptionState) { return addTextTrack(kind, label, emptyString()
, exceptionState); } |
| 185 PassRefPtr<TextTrack> addTextTrack(const String& kind, ExceptionState& es) {
return addTextTrack(kind, emptyString(), emptyString(), es); } | 185 PassRefPtr<TextTrack> addTextTrack(const String& kind, ExceptionState& excep
tionState) { return addTextTrack(kind, emptyString(), emptyString(), exceptionSt
ate); } |
| 186 | 186 |
| 187 TextTrackList* textTracks(); | 187 TextTrackList* textTracks(); |
| 188 CueList currentlyActiveCues() const { return m_currentlyActiveCues; } | 188 CueList currentlyActiveCues() const { return m_currentlyActiveCues; } |
| 189 | 189 |
| 190 void addTrack(TextTrack*); | 190 void addTrack(TextTrack*); |
| 191 void removeTrack(TextTrack*); | 191 void removeTrack(TextTrack*); |
| 192 void removeAllInbandTracks(); | 192 void removeAllInbandTracks(); |
| 193 void closeCaptionTracksChanged(); | 193 void closeCaptionTracksChanged(); |
| 194 void notifyMediaPlayerOfTextTrackChanges(); | 194 void notifyMediaPlayerOfTextTrackChanges(); |
| 195 | 195 |
| (...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 594 inline bool isHTMLMediaElement(const Node& node) | 594 inline bool isHTMLMediaElement(const Node& node) |
| 595 { | 595 { |
| 596 return node.isElementNode() && toElement(node).isMediaElement(); | 596 return node.isElementNode() && toElement(node).isMediaElement(); |
| 597 } | 597 } |
| 598 | 598 |
| 599 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 599 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
| 600 | 600 |
| 601 } //namespace | 601 } //namespace |
| 602 | 602 |
| 603 #endif | 603 #endif |
| OLD | NEW |