2025-06-19 15:28:02 +02:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2025, Jelle Raaijmakers <jelle@ladybird.org>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <LibWeb/Bindings/GeolocationCoordinatesPrototype.h>
|
|
|
|
#include <LibWeb/Bindings/Intrinsics.h>
|
|
|
|
#include <LibWeb/Geolocation/GeolocationCoordinates.h>
|
|
|
|
|
|
|
|
namespace Web::Geolocation {
|
|
|
|
|
|
|
|
GC_DEFINE_ALLOCATOR(GeolocationCoordinates);
|
|
|
|
|
|
|
|
GeolocationCoordinates::GeolocationCoordinates(JS::Realm& realm)
|
|
|
|
: PlatformObject(realm)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2025-06-22 20:26:03 +02:00
|
|
|
GeolocationCoordinates::GeolocationCoordinates(JS::Realm& realm, CoordinatesData data)
|
|
|
|
: PlatformObject(realm)
|
|
|
|
, m_coordinates_data(move(data))
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2025-06-19 15:28:02 +02:00
|
|
|
void GeolocationCoordinates::initialize(JS::Realm& realm)
|
|
|
|
{
|
|
|
|
WEB_SET_PROTOTYPE_FOR_INTERFACE(GeolocationCoordinates);
|
|
|
|
Base::initialize(realm);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|