/* * Copyright (c) 2026, Jelle Raaijmakers * * SPDX-License-Identifier: BSD-2-Clause */ #include #include #include #include #include namespace Web::Speech { GC_DEFINE_ALLOCATOR(SpeechGrammar); WebIDL::ExceptionOr> SpeechGrammar::construct_impl(JS::Realm& realm) { return realm.create(realm); } SpeechGrammar::SpeechGrammar(JS::Realm& realm) : Bindings::PlatformObject(realm) { } SpeechGrammar::~SpeechGrammar() = default; void SpeechGrammar::initialize(JS::Realm& realm) { WEB_SET_PROTOTYPE_FOR_INTERFACE(SpeechGrammar); Base::initialize(realm); } }