• danakj's avatar
    Move SetHasTouchEventHandlers from WebLayerTreeView to WebWidgetClient (14/n) · 4645c02b
    danakj authored
    We are removing the WebLayerTreeView interface as it is redundant with
    WebWidgetClient now that we always composite web contents.
    
    More importantly this helps us Close/Restart the WebWidget parts of
    WebViewImpl by not requiring plumbing 2 pointers with slightly different
    lifetimes (WebLayerTreeView is created inside the Init of the
    WebWidgetClient). This will help avoid a bunch of complexity in
    creating WebFrameWidgets and other WebWidgets.
    
    The HaveScrollEventHandlers() method is only used in blink_unittests
    and they can get at the TestWebWidgetClient, so remove it from the
    public APIs entirely.
    
    WebPagePopups don't have scroll event handlers, and even if they did
    they don't need to tell the compositor. Add a comment and a
    NOTREACHED() instead of code.
    
    R=dcheng@chromium.org
    
    Bug: 912193
    Change-Id: I5aed86e0773953428aded533df4395c29f3bd451
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1713746
    Commit-Queue: danakj <danakj@chromium.org>
    Reviewed-by: default avatarDaniel Cheng <dcheng@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#680063}
    4645c02b
render_widget.h 50.6 KB