mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
No other third layer folder in LibWeb has its own namespace which makes this a special case for the IDLGenerator when determining namespaces. Instead of adding a special case, simply remove the namespace.
32 lines
765 B
C++
32 lines
765 B
C++
/*
|
|
* Copyright (c) 2025, Undefine <undefine@undefine.pl>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibWeb/Bindings/PlatformObject.h>
|
|
#include <LibWeb/Forward.h>
|
|
|
|
namespace Web::WebGL {
|
|
|
|
class OESStandardDerivatives : public Bindings::PlatformObject {
|
|
WEB_PLATFORM_OBJECT(OESStandardDerivatives, Bindings::PlatformObject);
|
|
GC_DECLARE_ALLOCATOR(OESStandardDerivatives);
|
|
|
|
public:
|
|
static JS::ThrowCompletionOr<GC::Ref<JS::Object>> create(JS::Realm&, GC::Ref<WebGLRenderingContextBase>);
|
|
|
|
protected:
|
|
void initialize(JS::Realm&) override;
|
|
void visit_edges(Visitor&) override;
|
|
|
|
private:
|
|
OESStandardDerivatives(JS::Realm&, GC::Ref<WebGLRenderingContextBase>);
|
|
|
|
GC::Ref<WebGLRenderingContextBase> m_context;
|
|
};
|
|
|
|
}
|