| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 WebMediaStreamTrack() { } | 43 WebMediaStreamTrack() { } |
| 44 WebMediaStreamTrack(const WebMediaStreamTrack& other) { assign(other); } | 44 WebMediaStreamTrack(const WebMediaStreamTrack& other) { assign(other); } |
| 45 ~WebMediaStreamTrack() { reset(); } | 45 ~WebMediaStreamTrack() { reset(); } |
| 46 | 46 |
| 47 WebMediaStreamTrack& operator=(const WebMediaStreamTrack& other) | 47 WebMediaStreamTrack& operator=(const WebMediaStreamTrack& other) |
| 48 { | 48 { |
| 49 assign(other); | 49 assign(other); |
| 50 return *this; | 50 return *this; |
| 51 } | 51 } |
| 52 WEBKIT_EXPORT void assign(const WebMediaStreamTrack&); | 52 WEBKIT_EXPORT void assign(const WebMediaStreamTrack&); |
| 53 |
| 53 WEBKIT_EXPORT void initialize(const WebMediaStreamSource&); | 54 WEBKIT_EXPORT void initialize(const WebMediaStreamSource&); |
| 55 WEBKIT_EXPORT void initialize(const WebString& id, const WebMediaStreamSourc
e&); |
| 56 |
| 54 WEBKIT_EXPORT void reset(); | 57 WEBKIT_EXPORT void reset(); |
| 55 bool isNull() const { return m_private.isNull(); } | 58 bool isNull() const { return m_private.isNull(); } |
| 56 | 59 |
| 57 WEBKIT_EXPORT WebString id() const; | 60 WEBKIT_EXPORT WebString id() const; |
| 58 | 61 |
| 59 WEBKIT_EXPORT WebMediaStream stream() const; | 62 WEBKIT_EXPORT WebMediaStream stream() const; |
| 60 WEBKIT_EXPORT WebMediaStreamSource source() const; | 63 WEBKIT_EXPORT WebMediaStreamSource source() const; |
| 61 WEBKIT_EXPORT bool isEnabled() const; | 64 WEBKIT_EXPORT bool isEnabled() const; |
| 62 | 65 |
| 63 #if WEBKIT_IMPLEMENTATION | 66 #if WEBKIT_IMPLEMENTATION |
| 64 WebMediaStreamTrack(PassRefPtr<WebCore::MediaStreamComponent>); | 67 WebMediaStreamTrack(PassRefPtr<WebCore::MediaStreamComponent>); |
| 65 WebMediaStreamTrack(WebCore::MediaStreamComponent*); | 68 WebMediaStreamTrack(WebCore::MediaStreamComponent*); |
| 66 WebMediaStreamTrack& operator=(WebCore::MediaStreamComponent*); | 69 WebMediaStreamTrack& operator=(WebCore::MediaStreamComponent*); |
| 67 operator WTF::PassRefPtr<WebCore::MediaStreamComponent>() const; | 70 operator WTF::PassRefPtr<WebCore::MediaStreamComponent>() const; |
| 68 operator WebCore::MediaStreamComponent*() const; | 71 operator WebCore::MediaStreamComponent*() const; |
| 69 #endif | 72 #endif |
| 70 | 73 |
| 71 private: | 74 private: |
| 72 WebPrivatePtr<WebCore::MediaStreamComponent> m_private; | 75 WebPrivatePtr<WebCore::MediaStreamComponent> m_private; |
| 73 }; | 76 }; |
| 74 | 77 |
| 75 } // namespace WebKit | 78 } // namespace WebKit |
| 76 | 79 |
| 77 #endif // WebMediaStreamTrack_h | 80 #endif // WebMediaStreamTrack_h |
| OLD | NEW |