OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 | 97 |
98 BLINK_PLATFORM_EXPORT WebString id() const; | 98 BLINK_PLATFORM_EXPORT WebString id() const; |
99 BLINK_PLATFORM_EXPORT Type getType() const; | 99 BLINK_PLATFORM_EXPORT Type getType() const; |
100 BLINK_PLATFORM_EXPORT WebString name() const; | 100 BLINK_PLATFORM_EXPORT WebString name() const; |
101 BLINK_PLATFORM_EXPORT bool remote() const; | 101 BLINK_PLATFORM_EXPORT bool remote() const; |
102 | 102 |
103 BLINK_PLATFORM_EXPORT void setReadyState(ReadyState); | 103 BLINK_PLATFORM_EXPORT void setReadyState(ReadyState); |
104 BLINK_PLATFORM_EXPORT ReadyState getReadyState() const; | 104 BLINK_PLATFORM_EXPORT ReadyState getReadyState() const; |
105 | 105 |
106 // Extra data associated with this object. | 106 // Extra data associated with this object. |
107 // If non-null, the extra data pointer will be deleted when the object is dest
royed. | 107 // If non-null, the extra data pointer will be deleted when the object is |
108 // Setting the extra data pointer will cause any existing non-null | 108 // destroyed. Setting the extra data pointer will cause any existing non-null |
109 // extra data pointer to be deleted. | 109 // extra data pointer to be deleted. |
110 BLINK_PLATFORM_EXPORT ExtraData* getExtraData() const; | 110 BLINK_PLATFORM_EXPORT ExtraData* getExtraData() const; |
111 BLINK_PLATFORM_EXPORT void setExtraData(ExtraData*); | 111 BLINK_PLATFORM_EXPORT void setExtraData(ExtraData*); |
112 | 112 |
113 BLINK_PLATFORM_EXPORT WebMediaConstraints constraints(); | 113 BLINK_PLATFORM_EXPORT WebMediaConstraints constraints(); |
114 | 114 |
115 // Only used if if this is a WebAudio source. | 115 // Only used if if this is a WebAudio source. |
116 // The WebAudioDestinationConsumer is not owned, and has to be disposed of sep
arately | 116 // The WebAudioDestinationConsumer is not owned, and has to be disposed of |
117 // after calling removeAudioConsumer. | 117 // separately after calling removeAudioConsumer. |
118 BLINK_PLATFORM_EXPORT bool requiresAudioConsumer() const; | 118 BLINK_PLATFORM_EXPORT bool requiresAudioConsumer() const; |
119 BLINK_PLATFORM_EXPORT void addAudioConsumer(WebAudioDestinationConsumer*); | 119 BLINK_PLATFORM_EXPORT void addAudioConsumer(WebAudioDestinationConsumer*); |
120 BLINK_PLATFORM_EXPORT bool removeAudioConsumer(WebAudioDestinationConsumer*); | 120 BLINK_PLATFORM_EXPORT bool removeAudioConsumer(WebAudioDestinationConsumer*); |
121 | 121 |
122 #if INSIDE_BLINK | 122 #if INSIDE_BLINK |
123 BLINK_PLATFORM_EXPORT WebMediaStreamSource(MediaStreamSource*); | 123 BLINK_PLATFORM_EXPORT WebMediaStreamSource(MediaStreamSource*); |
124 BLINK_PLATFORM_EXPORT WebMediaStreamSource& operator=(MediaStreamSource*); | 124 BLINK_PLATFORM_EXPORT WebMediaStreamSource& operator=(MediaStreamSource*); |
125 BLINK_PLATFORM_EXPORT operator WTF::PassRefPtr<MediaStreamSource>() const; | 125 BLINK_PLATFORM_EXPORT operator WTF::PassRefPtr<MediaStreamSource>() const; |
126 BLINK_PLATFORM_EXPORT operator MediaStreamSource*() const; | 126 BLINK_PLATFORM_EXPORT operator MediaStreamSource*() const; |
127 #endif | 127 #endif |
128 | 128 |
129 private: | 129 private: |
130 WebPrivatePtr<MediaStreamSource> m_private; | 130 WebPrivatePtr<MediaStreamSource> m_private; |
131 }; | 131 }; |
132 | 132 |
133 } // namespace blink | 133 } // namespace blink |
134 | 134 |
135 #endif // WebMediaStreamSource_h | 135 #endif // WebMediaStreamSource_h |
OLD | NEW |