| 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 module blink.mojom; | 5 module blink.mojom; |
| 6 | 6 |
| 7 import "mojo/common/common_custom_types.mojom"; | 7 import "mojo/common/string16.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, |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 | 55 |
| 56 // Notifies the browser that the event handler for |action| has been set, | 56 // Notifies the browser that the event handler for |action| has been set, |
| 57 // browser needs to show a media button in the UI or register listeners to the | 57 // browser needs to show a media button in the UI or register listeners to the |
| 58 // platform. | 58 // platform. |
| 59 EnableAction(MediaSessionAction action); | 59 EnableAction(MediaSessionAction action); |
| 60 // Notifies the browser that the event handler for |action| has been set, | 60 // Notifies the browser that the event handler for |action| has been set, |
| 61 // browser needs to hide the media button in the UI and unregister listeners | 61 // browser needs to hide the media button in the UI and unregister listeners |
| 62 // from the platform. | 62 // from the platform. |
| 63 DisableAction(MediaSessionAction action); | 63 DisableAction(MediaSessionAction action); |
| 64 }; | 64 }; |
| OLD | NEW |