| 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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 | 256 |
| 257 AudioSourceProvider* audioSourceProvider(); | 257 AudioSourceProvider* audioSourceProvider(); |
| 258 #endif | 258 #endif |
| 259 | 259 |
| 260 enum InvalidURLAction { DoNothing, Complain }; | 260 enum InvalidURLAction { DoNothing, Complain }; |
| 261 bool isSafeToLoadURL(const KURL&, InvalidURLAction); | 261 bool isSafeToLoadURL(const KURL&, InvalidURLAction); |
| 262 | 262 |
| 263 MediaController* controller() const; | 263 MediaController* controller() const; |
| 264 void setController(PassRefPtr<MediaController>); // Resets the MediaGroup an
d sets the MediaController. | 264 void setController(PassRefPtr<MediaController>); // Resets the MediaGroup an
d sets the MediaController. |
| 265 | 265 |
| 266 void scheduleEvent(PassRefPtr<Event>); | 266 void scheduleEvent(PassRefPtrWillBeRawPtr<Event>); |
| 267 | 267 |
| 268 // Current volume that should be used by the webMediaPlayer(). This method t
akes muted state | 268 // Current volume that should be used by the webMediaPlayer(). This method t
akes muted state |
| 269 // and m_mediaController multipliers into account. | 269 // and m_mediaController multipliers into account. |
| 270 double playerVolume() const; | 270 double playerVolume() const; |
| 271 | 271 |
| 272 protected: | 272 protected: |
| 273 HTMLMediaElement(const QualifiedName&, Document&); | 273 HTMLMediaElement(const QualifiedName&, Document&); |
| 274 virtual ~HTMLMediaElement(); | 274 virtual ~HTMLMediaElement(); |
| 275 | 275 |
| 276 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 276 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 552 inline bool isHTMLMediaElement(const HTMLElement& element) | 552 inline bool isHTMLMediaElement(const HTMLElement& element) |
| 553 { | 553 { |
| 554 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 554 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
| 555 } | 555 } |
| 556 | 556 |
| 557 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 557 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
| 558 | 558 |
| 559 } //namespace | 559 } //namespace |
| 560 | 560 |
| 561 #endif | 561 #endif |
| OLD | NEW |