mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-03-13 00:49:55 +00:00
This was the only thing LibWeb needed from LibGUI, and we can just duplicate the enum in LibWeb and get rid of a bogus dependency.
23 lines
589 B
Objective-C
23 lines
589 B
Objective-C
/*
|
|
* Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibWeb/Page/InputEvent.h>
|
|
|
|
#import <System/Cocoa.h>
|
|
|
|
namespace Ladybird {
|
|
|
|
Web::MouseEvent ns_event_to_mouse_event(Web::MouseEvent::Type, NSEvent*, NSView*, NSScrollView*, Web::UIEvents::MouseButton);
|
|
Web::KeyEvent ns_event_to_key_event(Web::KeyEvent::Type, NSEvent*);
|
|
NSEvent* key_event_to_ns_event(Web::KeyEvent const&);
|
|
|
|
NSEvent* create_context_menu_mouse_event(NSView*, Gfx::IntPoint);
|
|
NSEvent* create_context_menu_mouse_event(NSView*, NSPoint);
|
|
|
|
}
|