Index: public/platform/WebMediaStreamTrackSourcesRequest.h |
diff --git a/public/platform/WebSourceInfo.h b/public/platform/WebMediaStreamTrackSourcesRequest.h |
similarity index 55% |
copy from public/platform/WebSourceInfo.h |
copy to public/platform/WebMediaStreamTrackSourcesRequest.h |
index 0ae96e78fd9703599fc7687c4ad745e45e07829b..c1e4c01da8ff1ddfc408efacb8512c9a6ea2b7bf 100644 |
--- a/public/platform/WebSourceInfo.h |
+++ b/public/platform/WebMediaStreamTrackSourcesRequest.h |
@@ -23,57 +23,61 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-#ifndef WebSourceInfo_h |
-#define WebSourceInfo_h |
+#ifndef WebMediaStreamTrackSourcesRequest_h |
+#define WebMediaStreamTrackSourcesRequest_h |
#include "WebCommon.h" |
#include "WebNonCopyable.h" |
#include "WebPrivatePtr.h" |
#include "WebString.h" |
+#include "WebVector.h" |
-namespace WebKit { |
+namespace WebCore { |
+class MediaStreamTrackSourcesRequest; |
+} |
-class WebSourceInfoPrivate; |
+namespace WebKit { |
+class WebSourceInfo; |
-class WebSourceInfo { |
+class WebMediaStreamTrackSourcesRequest { |
public: |
- enum SourceKind { |
- SourceKindNone, |
- SourceKindAudio, |
- SourceKindVideo |
- }; |
- |
- enum VideoFacingMode { |
- VideoFacingModeNone, |
- VideoFacingModeUser, |
- VideoFacingModeEnvironment |
+ class ExtraData { |
+ public: |
+ virtual ~ExtraData() { } |
}; |
- WebSourceInfo() { } |
- WebSourceInfo(const WebSourceInfo& other) { assign(other); } |
- ~WebSourceInfo() { reset(); } |
+ WebMediaStreamTrackSourcesRequest() { } |
+ WebMediaStreamTrackSourcesRequest(const WebMediaStreamTrackSourcesRequest& other) { assign(other); } |
+ ~WebMediaStreamTrackSourcesRequest() { reset(); } |
- WebSourceInfo& operator=(const WebSourceInfo& other) |
+ WebMediaStreamTrackSourcesRequest& operator=(const WebMediaStreamTrackSourcesRequest& other) |
{ |
assign(other); |
return *this; |
} |
- WEBKIT_EXPORT void assign(const WebSourceInfo&); |
+ WEBKIT_EXPORT void assign(const WebMediaStreamTrackSourcesRequest&); |
- WEBKIT_EXPORT void initialize(const WebString& id, SourceKind, const WebString& label, VideoFacingMode); |
WEBKIT_EXPORT void reset(); |
bool isNull() const { return m_private.isNull(); } |
- WEBKIT_EXPORT WebString id() const; |
- WEBKIT_EXPORT SourceKind kind() const; |
- WEBKIT_EXPORT WebString label() const; |
- WEBKIT_EXPORT VideoFacingMode facing() const; |
+ WEBKIT_EXPORT void requestSucceeded(const WebVector<WebSourceInfo>&) const; |
+ |
+ // Extra data associated with this object. |
+ // If non-null, the extra data pointer will be deleted when the object is destroyed. |
+ // Setting the extra data pointer will cause any existing non-null |
+ // extra data pointer to be deleted. |
+ WEBKIT_EXPORT ExtraData* extraData() const; |
+ WEBKIT_EXPORT void setExtraData(ExtraData*); |
+ |
+#if WEBKIT_IMPLEMENTATION |
+ WebMediaStreamTrackSourcesRequest(const WTF::PassRefPtr<WebCore::MediaStreamTrackSourcesRequest>&); |
+#endif |
private: |
- WebPrivatePtr<WebSourceInfoPrivate> m_private; |
+ WebPrivatePtr<WebCore::MediaStreamTrackSourcesRequest> m_private; |
}; |
} // namespace WebKit |
-#endif // WebSourceInfo_h |
+#endif // WebMediaStreamTrackSourcesRequest_h |