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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 274 #if ENABLE(WEB_AUDIO) | 274 #if ENABLE(WEB_AUDIO) |
| 275 AudioSourceProviderClient* audioSourceNode() { return m_audioSourceNode; } | 275 AudioSourceProviderClient* audioSourceNode() { return m_audioSourceNode; } |
| 276 void setAudioSourceNode(AudioSourceProviderClient*); | 276 void setAudioSourceNode(AudioSourceProviderClient*); |
| 277 | 277 |
| 278 AudioSourceProvider* audioSourceProvider(); | 278 AudioSourceProvider* audioSourceProvider(); |
| 279 #endif | 279 #endif |
| 280 | 280 |
| 281 enum InvalidURLAction { DoNothing, Complain }; | 281 enum InvalidURLAction { DoNothing, Complain }; |
| 282 bool isSafeToLoadURL(const KURL&, InvalidURLAction); | 282 bool isSafeToLoadURL(const KURL&, InvalidURLAction); |
| 283 | 283 |
| 284 // Checks to see if |origin| is allowed access to the current src. | |
| 285 bool canAccessSrcFromOrigin(SecurityOrigin*) const; | |
|
ddorwin
2015/02/04 23:56:51
"CurrentSrc" to match the attribute (and impl)?
I
| |
| 286 | |
| 284 MediaController* controller() const; | 287 MediaController* controller() const; |
| 285 void setController(PassRefPtrWillBeRawPtr<MediaController>); // Resets the M ediaGroup and sets the MediaController. | 288 void setController(PassRefPtrWillBeRawPtr<MediaController>); // Resets the M ediaGroup and sets the MediaController. |
| 286 | 289 |
| 287 void scheduleEvent(PassRefPtrWillBeRawPtr<Event>); | 290 void scheduleEvent(PassRefPtrWillBeRawPtr<Event>); |
| 288 | 291 |
| 289 // Returns the "effective media volume" value as specified in the HTML5 spec . | 292 // Returns the "effective media volume" value as specified in the HTML5 spec . |
| 290 double effectiveMediaVolume() const; | 293 double effectiveMediaVolume() const; |
| 291 | 294 |
| 292 #if ENABLE(OILPAN) | 295 #if ENABLE(OILPAN) |
| 293 bool isFinalizing() const { return m_isFinalizing; } | 296 bool isFinalizing() const { return m_isFinalizing; } |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 629 inline bool isHTMLMediaElement(const HTMLElement& element) | 632 inline bool isHTMLMediaElement(const HTMLElement& element) |
| 630 { | 633 { |
| 631 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 634 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
| 632 } | 635 } |
| 633 | 636 |
| 634 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 637 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
| 635 | 638 |
| 636 } // namespace blink | 639 } // namespace blink |
| 637 | 640 |
| 638 #endif // HTMLMediaElement_h | 641 #endif // HTMLMediaElement_h |
| OLD | NEW |