| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 | 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 BLINK_PLATFORM_EXPORT WebString id() const; | 65 BLINK_PLATFORM_EXPORT WebString id() const; |
| 66 | 66 |
| 67 BLINK_PLATFORM_EXPORT WebMediaStreamSource source() const; | 67 BLINK_PLATFORM_EXPORT WebMediaStreamSource source() const; |
| 68 BLINK_PLATFORM_EXPORT bool isEnabled() const; | 68 BLINK_PLATFORM_EXPORT bool isEnabled() const; |
| 69 BLINK_PLATFORM_EXPORT bool isMuted() const; | 69 BLINK_PLATFORM_EXPORT bool isMuted() const; |
| 70 | 70 |
| 71 // Extra data associated with this WebMediaStream. | 71 // Extra data associated with this WebMediaStream. |
| 72 // If non-null, the extra data pointer will be deleted when the object is de
stroyed. | 72 // If non-null, the extra data pointer will be deleted when the object is de
stroyed. |
| 73 // Setting the extra data pointer will cause any existing non-null | 73 // Setting the extra data pointer will cause any existing non-null |
| 74 // extra data pointer to be deleted. | 74 // extra data pointer to be deleted. |
| 75 BLINK_PLATFORM_EXPORT ExtraData* extraData() const; | 75 BLINK_PLATFORM_EXPORT ExtraData* getExtraData() const; |
| 76 BLINK_PLATFORM_EXPORT void setExtraData(ExtraData*); | 76 BLINK_PLATFORM_EXPORT void setExtraData(ExtraData*); |
| 77 | 77 |
| 78 // The lifetime of the WebAudioSourceProvider should outlive the | 78 // The lifetime of the WebAudioSourceProvider should outlive the |
| 79 // WebMediaStreamTrack, and clients are responsible for calling | 79 // WebMediaStreamTrack, and clients are responsible for calling |
| 80 // setSourceProvider(0) before the WebMediaStreamTrack is going away. | 80 // setSourceProvider(0) before the WebMediaStreamTrack is going away. |
| 81 BLINK_PLATFORM_EXPORT void setSourceProvider(WebAudioSourceProvider*); | 81 BLINK_PLATFORM_EXPORT void setSourceProvider(WebAudioSourceProvider*); |
| 82 | 82 |
| 83 #if INSIDE_BLINK | 83 #if INSIDE_BLINK |
| 84 BLINK_PLATFORM_EXPORT WebMediaStreamTrack(MediaStreamComponent*); | 84 BLINK_PLATFORM_EXPORT WebMediaStreamTrack(MediaStreamComponent*); |
| 85 BLINK_PLATFORM_EXPORT WebMediaStreamTrack& operator=(MediaStreamComponent*); | 85 BLINK_PLATFORM_EXPORT WebMediaStreamTrack& operator=(MediaStreamComponent*); |
| 86 BLINK_PLATFORM_EXPORT operator WTF::PassRefPtr<MediaStreamComponent>() const
; | 86 BLINK_PLATFORM_EXPORT operator WTF::PassRefPtr<MediaStreamComponent>() const
; |
| 87 BLINK_PLATFORM_EXPORT operator MediaStreamComponent*() const; | 87 BLINK_PLATFORM_EXPORT operator MediaStreamComponent*() const; |
| 88 #endif | 88 #endif |
| 89 | 89 |
| 90 private: | 90 private: |
| 91 WebPrivatePtr<MediaStreamComponent> m_private; | 91 WebPrivatePtr<MediaStreamComponent> m_private; |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 } // namespace blink | 94 } // namespace blink |
| 95 | 95 |
| 96 #endif // WebMediaStreamTrack_h | 96 #endif // WebMediaStreamTrack_h |
| OLD | NEW |