mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
LibWeb: Stub MediaCapabilities IDL interface
This commit is contained in:
parent
1240aaa294
commit
4c5a176354
Notes:
github-actions[bot]
2024-09-05 13:53:37 +00:00
Author: https://github.com/jamierocks
Commit: 4c5a176354
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1283
Reviewed-by: https://github.com/tcl3 ✅
8 changed files with 73 additions and 0 deletions
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* Copyright (c) 2024, Jamie Mansfield <jmansfield@cadixdev.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <LibWeb/Bindings/Intrinsics.h>
|
||||
#include <LibWeb/Bindings/MediaCapabilitiesPrototype.h>
|
||||
#include <LibWeb/HTML/Window.h>
|
||||
#include <LibWeb/MediaCapabilitiesAPI/MediaCapabilities.h>
|
||||
|
||||
namespace Web::MediaCapabilitiesAPI {
|
||||
|
||||
JS_DEFINE_ALLOCATOR(MediaCapabilities);
|
||||
|
||||
JS::NonnullGCPtr<MediaCapabilities> MediaCapabilities::create(JS::Realm& realm)
|
||||
{
|
||||
return realm.heap().allocate<MediaCapabilities>(realm, realm);
|
||||
}
|
||||
|
||||
MediaCapabilities::MediaCapabilities(JS::Realm& realm)
|
||||
: PlatformObject(realm)
|
||||
{
|
||||
}
|
||||
|
||||
void MediaCapabilities::initialize(JS::Realm& realm)
|
||||
{
|
||||
Base::initialize(realm);
|
||||
WEB_SET_PROTOTYPE_FOR_INTERFACE(MediaCapabilities);
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue