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

Side by Side Diff: third_party/WebKit/public/platform/modules/mediasession/media_session.mojom

Issue 2497493005: Reordering MediaSessionAction seek backward/forward (Closed)
Patch Set: rebased Created 4 years, 1 month 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
« no previous file with comments | « third_party/WebKit/Source/modules/mediasession/MediaSession.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 module blink.mojom; 5 module blink.mojom;
6 6
7 import "mojo/common/common_custom_types.mojom"; 7 import "mojo/common/common_custom_types.mojom";
8 import "ui/gfx/geometry/mojo/geometry.mojom"; 8 import "ui/gfx/geometry/mojo/geometry.mojom";
9 import "url/mojo/url.mojom"; 9 import "url/mojo/url.mojom";
10 10
11 // Spec: https://wicg.github.io/mediasession/ 11 // Spec: https://wicg.github.io/mediasession/
12 enum MediaSessionAction { 12 enum MediaSessionAction {
13 PLAY, 13 PLAY,
14 PAUSE, 14 PAUSE,
15 PLAY_PAUSE, 15 PLAY_PAUSE,
16 PREVIOUS_TRACK, 16 PREVIOUS_TRACK,
17 NEXT_TRACK, 17 NEXT_TRACK,
18 SEEK_BACKWARD,
18 SEEK_FORWARD, 19 SEEK_FORWARD,
19 SEEK_BACKWARD,
20 }; 20 };
21 21
22 // Album art in MediaMetadata 22 // Album art in MediaMetadata
23 // Spec: https://wicg.github.io/mediasession/ 23 // Spec: https://wicg.github.io/mediasession/
24 struct MediaImage { 24 struct MediaImage {
25 url.mojom.Url src; 25 url.mojom.Url src;
26 mojo.common.mojom.String16 type; 26 mojo.common.mojom.String16 type;
27 array<gfx.mojom.Size> sizes; 27 array<gfx.mojom.Size> sizes;
28 }; 28 };
29 29
(...skipping 23 matching lines...) Expand all
53 53
54 // Notifies the browser that the event handler for |action| has been set, 54 // Notifies the browser that the event handler for |action| has been set,
55 // browser needs to show a media button in the UI or register listeners to the 55 // browser needs to show a media button in the UI or register listeners to the
56 // platform. 56 // platform.
57 EnableAction(MediaSessionAction action); 57 EnableAction(MediaSessionAction action);
58 // Notifies the browser that the event handler for |action| has been set, 58 // Notifies the browser that the event handler for |action| has been set,
59 // browser needs to hide the media button in the UI and unregister listeners 59 // browser needs to hide the media button in the UI and unregister listeners
60 // from the platform. 60 // from the platform.
61 DisableAction(MediaSessionAction action); 61 DisableAction(MediaSessionAction action);
62 }; 62 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/mediasession/MediaSession.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698