#pragma once

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

namespace Web::Bindings {

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

private:
};

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

private:
    JS_DECLARE_NATIVE_FUNCTION(avail_width_getter);
    JS_DECLARE_NATIVE_FUNCTION(avail_height_getter);
    JS_DECLARE_NATIVE_FUNCTION(width_getter);
    JS_DECLARE_NATIVE_FUNCTION(height_getter);
    JS_DECLARE_NATIVE_FUNCTION(color_depth_getter);
    JS_DECLARE_NATIVE_FUNCTION(pixel_depth_getter);
    JS_DECLARE_NATIVE_FUNCTION(orientation_getter);
    JS_DECLARE_NATIVE_FUNCTION(is_extended_getter);
    JS_DECLARE_NATIVE_FUNCTION(onchange_getter);
    JS_DECLARE_NATIVE_FUNCTION(onchange_setter);
};

} // namespace Web::Bindings
