/* * Copyright (c) 2021, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include namespace Web::HTML { struct EventHandler { EventHandler() { } EventHandler(String s) : string(move(s)) { } EventHandler(JS::Handle c) : callback(move(c)) { } String string; JS::Handle callback; }; }