2023-08-20 16:14:31 -04:00
|
|
|
/*
|
2024-08-17 16:23:13 -04:00
|
|
|
* Copyright (c) 2023-2024, Tim Flynn <trflynn89@serenityos.org>
|
2023-08-20 16:14:31 -04:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2024-08-17 16:23:13 -04:00
|
|
|
#include <AK/Vector.h>
|
|
|
|
|
#include <LibURL/Forward.h>
|
2024-03-05 16:11:22 -05:00
|
|
|
#include <LibWeb/Page/InputEvent.h>
|
2023-08-20 16:14:31 -04:00
|
|
|
|
2024-07-16 23:54:53 -06:00
|
|
|
#import <Cocoa/Cocoa.h>
|
2023-08-20 16:14:31 -04:00
|
|
|
|
|
|
|
|
namespace Ladybird {
|
|
|
|
|
|
2024-11-07 12:26:42 -05:00
|
|
|
Web::MouseEvent ns_event_to_mouse_event(Web::MouseEvent::Type, NSEvent*, NSView*, Web::UIEvents::MouseButton);
|
2024-08-17 16:23:13 -04:00
|
|
|
|
|
|
|
|
Web::DragEvent ns_event_to_drag_event(Web::DragEvent::Type, id<NSDraggingInfo>, NSView*);
|
|
|
|
|
Vector<URL::URL> drag_event_url_list(Web::DragEvent const&);
|
|
|
|
|
|
2024-03-05 16:11:22 -05:00
|
|
|
Web::KeyEvent ns_event_to_key_event(Web::KeyEvent::Type, NSEvent*);
|
|
|
|
|
NSEvent* key_event_to_ns_event(Web::KeyEvent const&);
|
2023-08-20 16:14:31 -04:00
|
|
|
|
|
|
|
|
NSEvent* create_context_menu_mouse_event(NSView*, Gfx::IntPoint);
|
|
|
|
|
NSEvent* create_context_menu_mouse_event(NSView*, NSPoint);
|
|
|
|
|
|
|
|
|
|
}
|