Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 module media.mojom; | 5 module media.mojom; |
| 6 | 6 |
| 7 import "media/mojo/interfaces/demuxer_stream.mojom"; | 7 import "media/mojo/interfaces/demuxer_stream.mojom"; |
| 8 import "media/mojo/interfaces/media_types.mojom"; | 8 import "media/mojo/interfaces/media_types.mojom"; |
| 9 import "mojo/common/common_custom_types.mojom"; | 9 import "mojo/common/common_custom_types.mojom"; |
| 10 import "ui/gfx/geometry/mojo/geometry.mojom"; | 10 import "ui/gfx/geometry/mojo/geometry.mojom"; |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 28 | 28 |
| 29 // Updates the current playback rate. The default playback rate should be 1. | 29 // Updates the current playback rate. The default playback rate should be 1. |
| 30 SetPlaybackRate(double playback_rate); | 30 SetPlaybackRate(double playback_rate); |
| 31 | 31 |
| 32 // Sets the output volume. The default volume should be 1. | 32 // Sets the output volume. The default volume should be 1. |
| 33 SetVolume(float volume); | 33 SetVolume(float volume); |
| 34 | 34 |
| 35 // Attaches the CDM associated with |cdm_id| to the renderer service, | 35 // Attaches the CDM associated with |cdm_id| to the renderer service, |
| 36 // executing the callback with whether the CDM was successfully attached. | 36 // executing the callback with whether the CDM was successfully attached. |
| 37 SetCdm(int32 cdm_id) => (bool success); | 37 SetCdm(int32 cdm_id) => (bool success); |
| 38 | |
| 39 // Registers a new request in the ScopedSurfaceRequestManager, and returns | |
| 40 // its token. | |
|
liberato (no reviews please)
2016/09/15 19:40:40
please document |supported|
tguilbert
2016/09/21 02:02:30
Removed (but also updated the comment)
| |
| 41 InitiateScopedSurfaceRequest() | |
| 42 => (bool supported, mojo.common.mojom.Nonce request_token); | |
| 38 }; | 43 }; |
| 39 | 44 |
| 40 interface RendererClient { | 45 interface RendererClient { |
| 41 // Called to report media time advancement by |time|. | 46 // Called to report media time advancement by |time|. |
| 42 // |time| and |max_time| can be used to interpolate time between | 47 // |time| and |max_time| can be used to interpolate time between |
| 43 // calls to OnTimeUpdate(). | 48 // calls to OnTimeUpdate(). |
| 44 // |max_time| is typically the media timestamp of the last audio frame | 49 // |max_time| is typically the media timestamp of the last audio frame |
| 45 // buffered by the audio hardware. | 50 // buffered by the audio hardware. |
| 46 // |max_time| must be greater or equal to |time|. | 51 // |max_time| must be greater or equal to |time|. |
| 47 OnTimeUpdate(mojo.common.mojom.TimeDelta time, | 52 OnTimeUpdate(mojo.common.mojom.TimeDelta time, |
| (...skipping 21 matching lines...) Expand all Loading... | |
| 69 OnStatisticsUpdate(PipelineStatistics stats); | 74 OnStatisticsUpdate(PipelineStatistics stats); |
| 70 | 75 |
| 71 // Called when the remote renderering service is waiting on the decryption | 76 // Called when the remote renderering service is waiting on the decryption |
| 72 // key. | 77 // key. |
| 73 OnWaitingForDecryptionKey(); | 78 OnWaitingForDecryptionKey(); |
| 74 | 79 |
| 75 // Executed the first time the metadata is updated, and whenever the duration | 80 // Executed the first time the metadata is updated, and whenever the duration |
| 76 // changes. | 81 // changes. |
| 77 OnDurationChange(mojo.common.mojom.TimeDelta duration); | 82 OnDurationChange(mojo.common.mojom.TimeDelta duration); |
| 78 }; | 83 }; |
| OLD | NEW |