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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 PassRefPtr<TimeRanges> played(); | 135 PassRefPtr<TimeRanges> played(); |
136 PassRefPtr<TimeRanges> seekable() const; | 136 PassRefPtr<TimeRanges> seekable() const; |
137 bool ended() const; | 137 bool ended() const; |
138 bool autoplay() const; | 138 bool autoplay() const; |
139 void setAutoplay(bool b); | 139 void setAutoplay(bool b); |
140 bool loop() const; | 140 bool loop() const; |
141 void setLoop(bool b); | 141 void setLoop(bool b); |
142 void play(); | 142 void play(); |
143 void pause(); | 143 void pause(); |
144 | 144 |
145 // captions | |
146 bool webkitHasClosedCaptions() const; | |
147 bool webkitClosedCaptionsVisible() const; | |
148 void setWebkitClosedCaptionsVisible(bool); | |
149 | |
150 // Statistics | 145 // Statistics |
151 unsigned webkitAudioDecodedByteCount() const; | 146 unsigned webkitAudioDecodedByteCount() const; |
152 unsigned webkitVideoDecodedByteCount() const; | 147 unsigned webkitVideoDecodedByteCount() const; |
153 | 148 |
154 // Media Source. | 149 // Media Source. |
155 void closeMediaSource(); | 150 void closeMediaSource(); |
156 | 151 |
157 void durationChanged(double duration); | 152 void durationChanged(double duration); |
158 | 153 |
159 void webkitGenerateKeyRequest(const String& keySystem, PassRefPtr<Uint8Array
> initData, ExceptionState&); | 154 void webkitGenerateKeyRequest(const String& keySystem, PassRefPtr<Uint8Array
> initData, ExceptionState&); |
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
608 | 603 |
609 inline HTMLMediaElement* toHTMLMediaElement(Node* node) | 604 inline HTMLMediaElement* toHTMLMediaElement(Node* node) |
610 { | 605 { |
611 ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLMediaElement(node)); | 606 ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLMediaElement(node)); |
612 return static_cast<HTMLMediaElement*>(node); | 607 return static_cast<HTMLMediaElement*>(node); |
613 } | 608 } |
614 | 609 |
615 } //namespace | 610 } //namespace |
616 | 611 |
617 #endif | 612 #endif |
OLD | NEW |