mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 04:14:58 +00:00

SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
38 lines
891 B
C++
38 lines
891 B
C++
/*
|
|
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibJS/Runtime/Object.h>
|
|
#include <LibWeb/Forward.h>
|
|
|
|
namespace Web {
|
|
namespace Bindings {
|
|
|
|
class LocationObject final : public JS::Object {
|
|
JS_OBJECT(LocationObject, JS::Object);
|
|
|
|
public:
|
|
explicit LocationObject(JS::GlobalObject&);
|
|
virtual void initialize(JS::GlobalObject&) override;
|
|
virtual ~LocationObject() override;
|
|
|
|
private:
|
|
JS_DECLARE_NATIVE_FUNCTION(reload);
|
|
|
|
JS_DECLARE_NATIVE_GETTER(href_getter);
|
|
JS_DECLARE_NATIVE_SETTER(href_setter);
|
|
|
|
JS_DECLARE_NATIVE_GETTER(host_getter);
|
|
JS_DECLARE_NATIVE_GETTER(hostname_getter);
|
|
JS_DECLARE_NATIVE_GETTER(pathname_getter);
|
|
JS_DECLARE_NATIVE_GETTER(hash_getter);
|
|
JS_DECLARE_NATIVE_GETTER(search_getter);
|
|
JS_DECLARE_NATIVE_GETTER(protocol_getter);
|
|
};
|
|
|
|
}
|
|
}
|