• Nick Diego Yamane's avatar
    Make XEvent => ui::Event translation code reusable · 2cc1c99e
    Nick Diego Yamane authored
    Since non-Ozone X11 PlatformEvent implementation is meant to be migrated
    soon to use ui::Event, as ozone path currently does, it makes sense to
    move it to a separate class. This is what this CL does, and in a
    follow-up change, tests will be modified to re-use this new class so
    that we can ensure ui::EVent's construction is equivalent to the one
    used in current Aura/X11 code.
    
    Also, this prepares X11EventSource delegate implementations to be
    refactored to use the same interfaces to comunicate about X11 events
    (e.g: event translation, XEventDispatcher, etc). Such change will be
    sent soon in separate CL.
    
    Bug: 965991, 1008755
    Change-Id: I6153ad7ff1e3c2f5baf4b94df6a13af4ca7fe71a
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1866752Reviewed-by: default avatarSadrul Chowdhury <sadrul@chromium.org>
    Commit-Queue: Nick Yamane <nickdiego@igalia.com>
    Cr-Commit-Position: refs/heads/master@{#711619}
    2cc1c99e
BUILD.gn 19.8 KB