From efc6060df08ce05e9e267dc7b7d925930595333c Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 16 Mar 2021 18:03:43 +0100 Subject: LibWeb: Dispatch "resize" events on the Window object It's a little awkward that we do this in two places, but IPWV and OOPWV currently implement resizing a little differently from each other so we need to cover both paths. --- Userland/Libraries/LibWeb/UIEvents/EventNames.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Userland/Libraries/LibWeb/UIEvents') diff --git a/Userland/Libraries/LibWeb/UIEvents/EventNames.h b/Userland/Libraries/LibWeb/UIEvents/EventNames.h index 3667a32f9b..adb1e3cdd5 100644 --- a/Userland/Libraries/LibWeb/UIEvents/EventNames.h +++ b/Userland/Libraries/LibWeb/UIEvents/EventNames.h @@ -1,5 +1,6 @@ /* * Copyright (c) 2020, the SerenityOS developers. + * Copyright (c) 2021, Andreas Kling * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -40,7 +41,8 @@ namespace Web::UIEvents::EventNames { __ENUMERATE_UI_EVENT(mousemove) \ __ENUMERATE_UI_EVENT(mouseout) \ __ENUMERATE_UI_EVENT(mouseover) \ - __ENUMERATE_UI_EVENT(mouseup) + __ENUMERATE_UI_EVENT(mouseup) \ + __ENUMERATE_UI_EVENT(resize) #define __ENUMERATE_UI_EVENT(name) extern FlyString name; ENUMERATE_UI_EVENTS -- cgit v1.2.3