• sczs's avatar
    [ios] Makes SettingsRootTableVC conform to AdaptivePresentationControllerDelegate · d82f3a1a
    sczs authored
    Since Settings might embed 3rd party ViewControllers, the only interface we could
    expect from them in order to clean up or rubberband when swiping down to dismiss
    are the AdaptivePresentationControllerDelegate instance methods. For this reason
    SettingsRootTableVC now conforms to AdaptivePresentationControllerDelegate, and
    any subclass can override or implement any of the these methods.
    
    This CL also forwards all AdaptivePresentationControllerDelegate method calls into
    the currently presented Settings VC.
    
    Bug: 1006304
    Change-Id: I0ff47d755e5c3e67029e210dfb94d21d700520cd
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1832104Reviewed-by: default avatarGauthier Ambard <gambard@chromium.org>
    Commit-Queue: Sergio Collazos <sczs@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#702016}
    d82f3a1a
settings_navigation_controller.mm 21.3 KB