Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(702)

Unified Diff: components/test_runner/web_test_proxy.cc

Issue 1416123005: Implement setSinkId() for media elements without src. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/test_runner/web_test_proxy.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/web_test_proxy.cc
diff --git a/components/test_runner/web_test_proxy.cc b/components/test_runner/web_test_proxy.cc
index d2667cdd7d1bba9f776ebc6760826d0d5c5c715c..44a1fc9740c153d690655a151ce3ff64b6ff938c 100644
--- a/components/test_runner/web_test_proxy.cc
+++ b/components/test_runner/web_test_proxy.cc
@@ -1408,6 +1408,20 @@ void WebTestProxyBase::ResetInputMethod() {
web_widget_->confirmComposition();
}
+void WebTestProxyBase::CheckIfAudioSinkExistsAndIsAuthorized(
+ const blink::WebString& sink_id,
+ const blink::WebSecurityOrigin& security_origin,
+ blink::WebSetSinkIdCallbacks* web_callbacks) {
+ scoped_ptr<blink::WebSetSinkIdCallbacks> callback(web_callbacks);
+ std::string device_id = sink_id.utf8();
+ if (device_id == "valid" || device_id.empty())
+ callback->onSuccess();
+ else if (device_id == "unauthorized")
+ callback->onError(blink::WebSetSinkIdError::NotAuthorized);
+ else
+ callback->onError(blink::WebSetSinkIdError::NotFound);
+}
+
blink::WebString WebTestProxyBase::acceptLanguages() {
return blink::WebString::fromUTF8(accept_languages_);
}
« no previous file with comments | « components/test_runner/web_test_proxy.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698