OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Ericsson AB. All rights reserved. | 2 * Copyright (C) 2011 Ericsson AB. 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 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 public: | 56 public: |
57 static PassRefPtr<UserMediaRequest> create(ScriptExecutionContext*, UserMedi
aController*, const Dictionary& options, PassRefPtr<NavigatorUserMediaSuccessCal
lback>, PassRefPtr<NavigatorUserMediaErrorCallback>, ExceptionCode&); | 57 static PassRefPtr<UserMediaRequest> create(ScriptExecutionContext*, UserMedi
aController*, const Dictionary& options, PassRefPtr<NavigatorUserMediaSuccessCal
lback>, PassRefPtr<NavigatorUserMediaErrorCallback>, ExceptionCode&); |
58 ~UserMediaRequest(); | 58 ~UserMediaRequest(); |
59 | 59 |
60 NavigatorUserMediaSuccessCallback* successCallback() const { return m_succes
sCallback.get(); } | 60 NavigatorUserMediaSuccessCallback* successCallback() const { return m_succes
sCallback.get(); } |
61 NavigatorUserMediaErrorCallback* errorCallback() const { return m_errorCallb
ack.get(); } | 61 NavigatorUserMediaErrorCallback* errorCallback() const { return m_errorCallb
ack.get(); } |
62 Document* ownerDocument(); | 62 Document* ownerDocument(); |
63 | 63 |
64 void start(); | 64 void start(); |
65 | 65 |
66 void succeed(const MediaStreamSourceVector& audioSources, const MediaStreamS
ourceVector& videoSources); | |
67 void succeed(PassRefPtr<MediaStreamDescriptor>); | 66 void succeed(PassRefPtr<MediaStreamDescriptor>); |
68 void fail(); | 67 void fail(); |
69 | 68 |
70 MediaConstraints* audioConstraints() const; | 69 MediaConstraints* audioConstraints() const; |
71 MediaConstraints* videoConstraints() const; | 70 MediaConstraints* videoConstraints() const; |
72 | 71 |
73 // MediaStreamSourcesQueryClient | 72 // MediaStreamSourcesQueryClient |
74 virtual bool audio() const; | 73 virtual bool audio() const; |
75 virtual bool video() const; | 74 virtual bool video() const; |
76 virtual void didCompleteQuery(const MediaStreamSourceVector& audioSources, c
onst MediaStreamSourceVector& videoSources); | 75 virtual void didCompleteQuery(const MediaStreamSourceVector& audioSources, c
onst MediaStreamSourceVector& videoSources); |
(...skipping 11 matching lines...) Expand all Loading... |
88 | 87 |
89 RefPtr<NavigatorUserMediaSuccessCallback> m_successCallback; | 88 RefPtr<NavigatorUserMediaSuccessCallback> m_successCallback; |
90 RefPtr<NavigatorUserMediaErrorCallback> m_errorCallback; | 89 RefPtr<NavigatorUserMediaErrorCallback> m_errorCallback; |
91 }; | 90 }; |
92 | 91 |
93 } // namespace WebCore | 92 } // namespace WebCore |
94 | 93 |
95 #endif // ENABLE(MEDIA_STREAM) | 94 #endif // ENABLE(MEDIA_STREAM) |
96 | 95 |
97 #endif // UserMediaRequest_h | 96 #endif // UserMediaRequest_h |
OLD | NEW |