diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-05-07 11:21:11 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-05-07 11:21:11 +0200 |
commit | 2cf6c8816a73e0132bd8fa3b509d62d7c51b6e47 (patch) | |
tree | 988e8c5b116dd0466244ae2fe5af8ee9be926d76 /Source/WebKit/chromium/src/WebUserMediaRequest.cpp | |
parent | dd91e772430dc294e3bf478c119ef8d43c0a3358 (diff) | |
download | qtwebkit-2cf6c8816a73e0132bd8fa3b509d62d7c51b6e47.tar.gz |
Imported WebKit commit 7e538425aa020340619e927792f3d895061fb54b (http://svn.webkit.org/repository/webkit/trunk@116286)
Diffstat (limited to 'Source/WebKit/chromium/src/WebUserMediaRequest.cpp')
-rw-r--r-- | Source/WebKit/chromium/src/WebUserMediaRequest.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/Source/WebKit/chromium/src/WebUserMediaRequest.cpp b/Source/WebKit/chromium/src/WebUserMediaRequest.cpp index 5a76c83b0..dcd270385 100644 --- a/Source/WebKit/chromium/src/WebUserMediaRequest.cpp +++ b/Source/WebKit/chromium/src/WebUserMediaRequest.cpp @@ -70,16 +70,6 @@ bool WebUserMediaRequest::video() const return m_private->video(); } -bool WebUserMediaRequest::cameraPreferenceUser() const -{ - return m_private->cameraPreferenceUser(); -} - -bool WebUserMediaRequest::cameraPreferenceEnvironment() const -{ - return m_private->cameraPreferenceEnvironment(); -} - WebSecurityOrigin WebUserMediaRequest::securityOrigin() const { ASSERT(m_private->scriptExecutionContext()); @@ -105,24 +95,6 @@ void WebUserMediaRequest::requestSucceeded(const WebVector<WebMediaStreamSource> m_private->succeed(audio, video); } -// FIXME: Cleanup when the chromium code has switched to the split sources implementation. -void WebUserMediaRequest::requestSucceeded(const WebVector<WebMediaStreamSource>& sources) -{ - if (m_private.isNull()) - return; - - MediaStreamSourceVector audio, video; - for (size_t i = 0; i < sources.size(); ++i) { - MediaStreamSource* curr = sources[i]; - if (curr->type() == MediaStreamSource::TypeAudio) - audio.append(curr); - else if (curr->type() == MediaStreamSource::TypeVideo) - video.append(curr); - } - - m_private->succeed(audio, video); -} - void WebUserMediaRequest::requestFailed() { m_private->fail(); |