OLD | NEW |
(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 |
OLD | NEW |