mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add multi-touch support for OSR (issue #1059)
This commit is contained in:
committed by
Marshall Greenblatt
parent
9ba28dd730
commit
5f615a95bc
@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=db01cea0d5a144e6998c6f897df832b992034646$
|
||||
// $hash=48d8640bfbc9fede99ac411c163b2717ad84d373$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/browser_host_cpptoc.h"
|
||||
@ -801,6 +801,30 @@ browser_host_send_mouse_wheel_event(struct _cef_browser_host_t* self,
|
||||
deltaY);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK
|
||||
browser_host_send_touch_event(struct _cef_browser_host_t* self,
|
||||
const struct _cef_touch_event_t* event) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self)
|
||||
return;
|
||||
// Verify param: event; type: struct_byref_const
|
||||
DCHECK(event);
|
||||
if (!event)
|
||||
return;
|
||||
|
||||
// Translate param: event; type: struct_byref_const
|
||||
CefTouchEvent eventObj;
|
||||
if (event)
|
||||
eventObj.Set(*event, false);
|
||||
|
||||
// Execute
|
||||
CefBrowserHostCppToC::Get(self)->SendTouchEvent(eventObj);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK
|
||||
browser_host_send_focus_event(struct _cef_browser_host_t* self, int setFocus) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
@ -1276,6 +1300,7 @@ CefBrowserHostCppToC::CefBrowserHostCppToC() {
|
||||
GetStruct()->send_mouse_click_event = browser_host_send_mouse_click_event;
|
||||
GetStruct()->send_mouse_move_event = browser_host_send_mouse_move_event;
|
||||
GetStruct()->send_mouse_wheel_event = browser_host_send_mouse_wheel_event;
|
||||
GetStruct()->send_touch_event = browser_host_send_touch_event;
|
||||
GetStruct()->send_focus_event = browser_host_send_focus_event;
|
||||
GetStruct()->send_capture_lost_event = browser_host_send_capture_lost_event;
|
||||
GetStruct()->notify_move_or_resize_started =
|
||||
|
Reference in New Issue
Block a user