#pragma once

#include <LibJS/Runtime/NativeFunction.h>
#include <LibJS/Runtime/Object.h>
#include <LibWeb/Bindings/InterfaceObject.h>

namespace Web::Bindings {

struct MediaDevicesConstructor {
public:
    static void initialize(JS::Realm&, JS::NativeFunction&);
    static JS::ThrowCompletionOr<GC::Ref<JS::Object>> construct(InterfaceConstructor&, JS::FunctionObject&);

private:
};

struct MediaDevicesPrototype {
public:
    static void initialize(JS::Realm&, JS::Object&);
    static void define_unforgeable_attributes(JS::Realm&, JS::Object&);

private:
    JS_DECLARE_NATIVE_FUNCTION(ondevicechange_getter);
    JS_DECLARE_NATIVE_FUNCTION(ondevicechange_setter);
    JS_DECLARE_NATIVE_FUNCTION(enumerate_devices);
    JS_DECLARE_NATIVE_FUNCTION(get_supported_constraints);
    JS_DECLARE_NATIVE_FUNCTION(get_user_media);
};

} // namespace Web::Bindings
