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

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
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..0eab8ac2eda41516502c0e5932fe957edcec87dd 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_callback) {
+ scoped_ptr<blink::WebSetSinkIdCallbacks> callback(web_callback);
+ 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_);
}

Powered by Google App Engine
This is Rietveld 408576698