Chromium Code Reviews| 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 150 void pause(); | 150 void pause(); |
| 151 | 151 |
| 152 // statistics | 152 // statistics |
| 153 unsigned webkitAudioDecodedByteCount() const; | 153 unsigned webkitAudioDecodedByteCount() const; |
| 154 unsigned webkitVideoDecodedByteCount() const; | 154 unsigned webkitVideoDecodedByteCount() const; |
| 155 | 155 |
| 156 // media source extensions | 156 // media source extensions |
| 157 void closeMediaSource(); | 157 void closeMediaSource(); |
| 158 void durationChanged(double duration, bool requestSeek); | 158 void durationChanged(double duration, bool requestSeek); |
| 159 | 159 |
| 160 // controls | 160 // Takes scripting and full screen mode into account. |
|
philipj_slow
2014/06/27 14:26:19
Leave this as it was, since some effort appears to
| |
| 161 bool controls() const; | 161 bool shouldShowControls() const; |
| 162 void setControls(bool); | 162 |
| 163 double volume() const; | 163 double volume() const; |
| 164 void setVolume(double, ExceptionState&); | 164 void setVolume(double, ExceptionState&); |
| 165 bool muted() const; | 165 bool muted() const; |
| 166 void setMuted(bool); | 166 void setMuted(bool); |
| 167 | 167 |
| 168 // play/pause toggling that uses the media controller if present. togglePlay StateWillPlay() is | 168 // play/pause toggling that uses the media controller if present. togglePlay StateWillPlay() is |
| 169 // true if togglePlayState() will call play() or unpause() on the media elem ent or controller. | 169 // true if togglePlayState() will call play() or unpause() on the media elem ent or controller. |
| 170 bool togglePlayStateWillPlay() const; | 170 bool togglePlayStateWillPlay() const; |
| 171 void togglePlayState(); | 171 void togglePlayState(); |
| 172 | 172 |
| (...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 622 inline bool isHTMLMediaElement(const HTMLElement& element) | 622 inline bool isHTMLMediaElement(const HTMLElement& element) |
| 623 { | 623 { |
| 624 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 624 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
| 625 } | 625 } |
| 626 | 626 |
| 627 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 627 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
| 628 | 628 |
| 629 } //namespace | 629 } //namespace |
| 630 | 630 |
| 631 #endif | 631 #endif |
| OLD | NEW |