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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
80 | 80 |
81 WebMediaStreamSource& operator=(const WebMediaStreamSource& other) { | 81 WebMediaStreamSource& operator=(const WebMediaStreamSource& other) { |
82 assign(other); | 82 assign(other); |
83 return *this; | 83 return *this; |
84 } | 84 } |
85 | 85 |
86 BLINK_PLATFORM_EXPORT void assign(const WebMediaStreamSource&); | 86 BLINK_PLATFORM_EXPORT void assign(const WebMediaStreamSource&); |
87 | 87 |
88 BLINK_PLATFORM_EXPORT void initialize(const WebString& id, | 88 BLINK_PLATFORM_EXPORT void initialize(const WebString& id, |
89 Type, | 89 Type, |
90 const WebString& name); // DEPRECATED | 90 const WebString& name); // DEPRECATED |
mcasas
2016/10/17 18:08:25
I guess this initialize() is not DEPRECATED anymor
| |
91 BLINK_PLATFORM_EXPORT void initialize(const WebString& id, | |
92 Type, | |
93 const WebString& name, | |
94 bool remote); | |
95 BLINK_PLATFORM_EXPORT void reset(); | 91 BLINK_PLATFORM_EXPORT void reset(); |
96 bool isNull() const { return m_private.isNull(); } | 92 bool isNull() const { return m_private.isNull(); } |
97 | 93 |
98 BLINK_PLATFORM_EXPORT WebString id() const; | 94 BLINK_PLATFORM_EXPORT WebString id() const; |
99 BLINK_PLATFORM_EXPORT Type getType() const; | 95 BLINK_PLATFORM_EXPORT Type getType() const; |
100 BLINK_PLATFORM_EXPORT WebString name() const; | 96 BLINK_PLATFORM_EXPORT WebString name() const; |
101 BLINK_PLATFORM_EXPORT bool remote() const; | |
102 | 97 |
103 BLINK_PLATFORM_EXPORT void setReadyState(ReadyState); | 98 BLINK_PLATFORM_EXPORT void setReadyState(ReadyState); |
104 BLINK_PLATFORM_EXPORT ReadyState getReadyState() const; | 99 BLINK_PLATFORM_EXPORT ReadyState getReadyState() const; |
105 | 100 |
106 // Extra data associated with this object. | 101 // Extra data associated with this object. |
107 // If non-null, the extra data pointer will be deleted when the object is | 102 // If non-null, the extra data pointer will be deleted when the object is |
108 // destroyed. Setting the extra data pointer will cause any existing non-null | 103 // destroyed. Setting the extra data pointer will cause any existing non-null |
109 // extra data pointer to be deleted. | 104 // extra data pointer to be deleted. |
110 BLINK_PLATFORM_EXPORT ExtraData* getExtraData() const; | 105 BLINK_PLATFORM_EXPORT ExtraData* getExtraData() const; |
111 BLINK_PLATFORM_EXPORT void setExtraData(ExtraData*); | 106 BLINK_PLATFORM_EXPORT void setExtraData(ExtraData*); |
(...skipping 14 matching lines...) Expand all Loading... | |
126 BLINK_PLATFORM_EXPORT operator MediaStreamSource*() const; | 121 BLINK_PLATFORM_EXPORT operator MediaStreamSource*() const; |
127 #endif | 122 #endif |
128 | 123 |
129 private: | 124 private: |
130 WebPrivatePtr<MediaStreamSource> m_private; | 125 WebPrivatePtr<MediaStreamSource> m_private; |
131 }; | 126 }; |
132 | 127 |
133 } // namespace blink | 128 } // namespace blink |
134 | 129 |
135 #endif // WebMediaStreamSource_h | 130 #endif // WebMediaStreamSource_h |
OLD | NEW |