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

Side by Side Diff: media/blink/webmediacapabilitiesclient_impl.cc

Issue 2706313002: Media Capabilities: add plumbing between Blink and media/blink/. (Closed)
Patch Set: oups Created 3 years, 9 months 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "media/blink/webmediacapabilitiesclient_impl.h"
6
7 #include "third_party/WebKit/public/platform/modules/media_capabilities/WebMedia DecodingAbility.h"
8
9 namespace media {
10
11 WebMediaCapabilitiesClientImpl::WebMediaCapabilitiesClientImpl() = default;
12
13 WebMediaCapabilitiesClientImpl::~WebMediaCapabilitiesClientImpl() = default;
14
15 void WebMediaCapabilitiesClientImpl::query(
16 const blink::WebMediaConfiguration& configuration,
17 std::unique_ptr<blink::WebMediaCapabilitiesQueryCallbacks> callbacks) {
18 // TODO(chcunningham, mlamouri): this is a dummy implementation that returns
19 // true for all the fields.
20 std::unique_ptr<blink::WebMediaDecodingAbility> ability(
21 new blink::WebMediaDecodingAbility());
22 ability->supported = true;
23 ability->smooth = true;
24 ability->powerEfficient = true;
25 callbacks->onSuccess(std::move(ability));
26 }
27
28 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698