• Evan Stade's avatar
    Don't use ui::CursorData as PlatformCursor for mash clients. · 891067b2
    Evan Stade authored
    ui::Cursor now holds the data necessary for custom cursors, although for
    simplicity this patch still converts to CursorData for serializing over
    mojo.
    
    CursorFactoryOzone goes back to being a true singleton, which shouldn't
    be used from client code in Mash (in Oop Mash, it's actually null; in
    single process Mash it is avoided by checking the feature switch).
    
    This patch also makes some tweaks to how custom web cursors are stored
    as ui::Cursors, which shouldn't impact other platforms but brings the
    ui::Cursor representation into alignment with the PlatformCursor
    representation for ozone.
    
    As a future cleanup we should be able to get rid of CursorData and
    serialize ui::Cursor directly.
    
    Bug: 904039, 734668
    Change-Id: I4168c0266899bd276c60a0ac6a286b3a79df572f
    Reviewed-on: https://chromium-review.googlesource.com/c/1334968
    Commit-Queue: Evan Stade <estade@chromium.org>
    Reviewed-by: default avatarScott Violet <sky@chromium.org>
    Reviewed-by: default avatarBret Sepulveda <bsep@chromium.org>
    Reviewed-by: default avatarMichael Spang <spang@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#608617}
    891067b2
webcursor.h 4.79 KB