mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Introduce CMediaSessionPlaybackState and CMediaSessionActionType
This commit is contained in:
parent
d5200ba453
commit
b01e3fdc7e
10 changed files with 71 additions and 41 deletions
|
@ -272,7 +272,10 @@ hstring ServoControl::LoadURIOrSearch(hstring input) {
|
|||
}
|
||||
|
||||
void ServoControl::SendMediaSessionAction(int32_t action) {
|
||||
RunOnGLThread([=] { mServo->SendMediaSessionAction(action); });
|
||||
RunOnGLThread([=] {
|
||||
mServo->SendMediaSessionAction(
|
||||
static_cast<Servo::MediaSessionActionType>(action));
|
||||
});
|
||||
}
|
||||
|
||||
void ServoControl::TryLoadUri(hstring input) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue