| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // https://html.spec.whatwg.org/multipage/embedded-content.html#dom-media-srcobj
ect | 5 // https://html.spec.whatwg.org/multipage/embedded-content.html#dom-media-srcobj
ect |
| 6 | 6 |
| 7 // TODO(guidou): Add support for MediaSource and Blob, as defined in the spec. | 7 // TODO(guidou): Add support for MediaSource and Blob, as defined in the spec. |
| 8 typedef MediaStream MediaProvider; | 8 typedef MediaStream MediaProvider; |
| 9 | 9 |
| 10 partial interface HTMLMediaElement { | 10 partial interface HTMLMediaElement { |
| 11 // TODO(haraken): Per the spec, the srcObject should be defined in | 11 // TODO(haraken): Per the spec, the srcObject should be defined in |
| 12 // HTMLMediaElement.idl. However, we cannot define srcObject in | 12 // HTMLMediaElement.idl. However, we cannot define srcObject in |
| 13 // HTMLMediaElement.idl because of the dependency restriction from modules/ | 13 // HTMLMediaElement.idl because of the dependency restriction from modules/ |
| 14 // to core/. For now we avoid the problem by using a partial interface. | 14 // to core/. For now we avoid the problem by using a partial interface. |
| 15 attribute MediaProvider? srcObject; | 15 [Measure] attribute MediaProvider? srcObject; |
| 16 }; | 16 }; |
| OLD | NEW |