Add platform dependent methods for GTK+ to synthesize events.
Created attachment 308528 [details]
This won't apply because it depends on two other patches.
Comment on attachment 308528 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=308528&action=review
This looks good to me, though I cannot really assess bugs in usage of GTK platform specifics. You probably want a GTK reviewer too.
> + // GTK+ doesn't keep track of the active modifiers when using synthesizez events.
> +static inline unsigned modifiersToEventState(WebEvent::Modifiers modifiers)
These probably don't need to be 'inline'.
> +static inline unsigned mouseButtonToGdkButton(Inspector::Protocol::Automation::MouseButton button)
> +static void doMotionEvent(GtkWidget* widget, const WebCore::IntPoint& location, unsigned state)
Just FYI, on Mac we don't interpolate intermediate mouse positions. We might do so once the Actions API is implemented since it naturally specifies a duration for transitions.
Brian, this patch depends on bug #171107, could you cq+ the patch there when you are around to make sure it doesn't break anything on your side?
Committed r216114: <http://trac.webkit.org/changeset/216114>