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

Side by Side Diff: chrome/browser/media/router/mojo/media_controller.mojom

Issue 2724513002: (Not for review) Dummy C++ side Custom Controls implementation (Closed)
Patch Set: . 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 module media_router.mojom;
6
7 import "chrome/browser/media/router/mojo/media_status.mojom";
8
9 // Interface for a controller to change the current state of a media content.
10 // This interface should be kept free of details specific to Media Router, so
11 // that it can be moved to the media namespace and be reused for other features
12 // in the future.
13 interface MediaController {
14 // Starts playing the media if it is paused. Is a no-op if not supported by
15 // the media or the media is already playing.
16 Play();
17 // Pauses the media if it is playing. Is a no-op if not supported by the media
18 // or the media is already paused.
19 Pause();
20 // Mutes the media if |mute| is true, and unmutes it if false. Is a no-op if
21 // not supported by the media.
22 SetMute(bool mute);
23 // Changes the current volume of the media, with 1 being the highest and 0
24 // being the lowest/no sound. Does not change the (un)muted state of the
25 // media. Is a no-op if not supported by the media.
26 SetVolume(float volume);
27 // Sets the current playback position in milliseconds. |time| must be less
28 // than or equal to the duration of the media. Is a no-op if the media
29 // doesn't support seeking.
30 Seek(uint32 time);
31 // Sets the observer to be notified whenever there is a change in the status
32 // of the media. There can be at most one observer at a time, and it will be
33 // overwritten each time this method is called.
34 // TODO(takumif): Consider allowing multiple observers to be registered.
35 SetObserver(MediaStatusObserver observer);
36 };
OLDNEW
« no previous file with comments | « chrome/browser/media/router/media_status.cc ('k') | chrome/browser/media/router/mojo/media_route_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698