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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 public: | 81 public: |
82 static blink::WebMimeRegistry::SupportsType supportsType(const ContentType&,
const String& keySystem = String()); | 82 static blink::WebMimeRegistry::SupportsType supportsType(const ContentType&,
const String& keySystem = String()); |
83 | 83 |
84 static void setMediaStreamRegistry(URLRegistry*); | 84 static void setMediaStreamRegistry(URLRegistry*); |
85 static bool isMediaStreamURL(const String& url); | 85 static bool isMediaStreamURL(const String& url); |
86 | 86 |
87 virtual void trace(Visitor*) OVERRIDE; | 87 virtual void trace(Visitor*) OVERRIDE; |
88 #if ENABLE(WEB_AUDIO) | 88 #if ENABLE(WEB_AUDIO) |
89 void clearWeakMembers(Visitor*); | 89 void clearWeakMembers(Visitor*); |
90 #endif | 90 #endif |
91 | |
92 // Do not use player(). | |
93 // FIXME: Replace all uses with webMediaPlayer() and remove this API. | |
94 MediaPlayer* player() const { return m_player.get(); } | |
95 blink::WebMediaPlayer* webMediaPlayer() const { return m_player ? m_player->
webMediaPlayer() : 0; } | 91 blink::WebMediaPlayer* webMediaPlayer() const { return m_player ? m_player->
webMediaPlayer() : 0; } |
96 | 92 |
97 virtual bool hasVideo() const { return false; } | 93 virtual bool hasVideo() const { return false; } |
98 bool hasAudio() const; | 94 bool hasAudio() const; |
99 | 95 |
100 bool supportsSave() const; | 96 bool supportsSave() const; |
101 | 97 |
102 blink::WebLayer* platformLayer() const; | 98 blink::WebLayer* platformLayer() const; |
103 | 99 |
104 enum DelayedActionType { | 100 enum DelayedActionType { |
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
635 inline bool isHTMLMediaElement(const HTMLElement& element) | 631 inline bool isHTMLMediaElement(const HTMLElement& element) |
636 { | 632 { |
637 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 633 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
638 } | 634 } |
639 | 635 |
640 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 636 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
641 | 637 |
642 } // namespace blink | 638 } // namespace blink |
643 | 639 |
644 #endif // HTMLMediaElement_h | 640 #endif // HTMLMediaElement_h |
OLD | NEW |