mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
Previously, the LibWeb bindings generator would output multiple per interface files like Prototype/Constructor/Namespace/GlobalMixin depending on the contents of that IDL file. This complicates the build system as it means that it does not know what files will be generated without knowledge of the contents of that IDL file. Instead, for each IDL file only generate a single Bindings/<IDLFile>.h and Bindings/<IDLFile>.cpp.
40 lines
883 B
C++
40 lines
883 B
C++
/*
|
|
* Copyright (c) 2024, Colin Reeder <colin@vpzom.click>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <LibWeb/Bindings/Intrinsics.h>
|
|
#include <LibWeb/Bindings/PerformanceNavigation.h>
|
|
#include <LibWeb/NavigationTiming/PerformanceNavigation.h>
|
|
|
|
namespace Web::NavigationTiming {
|
|
|
|
GC_DEFINE_ALLOCATOR(PerformanceNavigation);
|
|
|
|
PerformanceNavigation::PerformanceNavigation(JS::Realm& realm, u16 type, u16 redirect_count)
|
|
: PlatformObject(realm)
|
|
, m_type(type)
|
|
, m_redirect_count(redirect_count)
|
|
{
|
|
}
|
|
PerformanceNavigation::~PerformanceNavigation() = default;
|
|
|
|
void PerformanceNavigation::initialize(JS::Realm& realm)
|
|
{
|
|
WEB_SET_PROTOTYPE_FOR_INTERFACE(PerformanceNavigation);
|
|
Base::initialize(realm);
|
|
}
|
|
|
|
u16 PerformanceNavigation::type() const
|
|
{
|
|
return m_type;
|
|
}
|
|
|
|
u16 PerformanceNavigation::redirect_count() const
|
|
{
|
|
return m_redirect_count;
|
|
}
|
|
|
|
}
|