mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 02:29:21 +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,27 @@
|
|||
/*
|
||||
* Copyright (c) 2024, Jamie Mansfield <jmansfield@cadixdev.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibWeb/Bindings/PlatformObject.h>
|
||||
|
||||
namespace Web::MediaCapabilitiesAPI {
|
||||
|
||||
class MediaCapabilities final : public Bindings::PlatformObject {
|
||||
WEB_PLATFORM_OBJECT(MediaCapabilities, Bindings::PlatformObject);
|
||||
JS_DECLARE_ALLOCATOR(MediaCapabilities);
|
||||
|
||||
public:
|
||||
static JS::NonnullGCPtr<MediaCapabilities> create(JS::Realm&);
|
||||
virtual ~MediaCapabilities() override = default;
|
||||
|
||||
private:
|
||||
MediaCapabilities(JS::Realm&);
|
||||
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue