[Webkit-unassigned] [Bug 60258] New: [GTK] Make native events code more consistent
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu May 5 01:49:10 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=60258
Summary: [GTK] Make native events code more consistent
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Linux
Status: NEW
Keywords: Gtk
Severity: Normal
Priority: P2
Component: WebKit2
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: cgarcia at igalia.com
Currently we have:
- NativeWebKeyboardEvent: Uses GOwnPtr for the native GdkEvent and ::nativeEvent() returns a const GdkEvent.
- NativeWebMouseEvent: Doesn't use GOwnPtr, and ::nativeEvent() returns a GdkEvent.
- NativeWebWheelEvent: Doesn't use GOwnPtr, and ::nativeEvent() returns a GdkEventScroll.
and for WebEventFactory:
- createWebKeyboardEvent() receives a const GdkEventKey
- createWebMouseEvent() receives a GdkEvent
- createWebWheelEvent() receives a GdkEventScroll
I think the we could unify the way events are created following the current keyboard events code. We should use a GOwnPtr for the native event (it could be destroyed before the class is deleted) and use always const GdkEvent in public API.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list