/* * Copyright (c) 2025, Niccolo Antonelli-Dziri * * SPDX-License-Identifier: BSD-2-Clause */ #include #include #include #include namespace Web::NotificationsAPI { GC_DEFINE_ALLOCATOR(Notification); Notification::Notification(JS::Realm& realm) : DOM::EventTarget(realm) { } // https://notifications.spec.whatwg.org/#constructors WebIDL::ExceptionOr> Notification::construct_impl( JS::Realm& realm, String, // FIXME: title is unused Optional) // FIXME: options is unused { // FIXME: all of the steps specified in the spec return realm.create(realm); } void Notification::initialize(JS::Realm& realm) { WEB_SET_PROTOTYPE_FOR_INTERFACE(Notification); Base::initialize(realm); } }