• Lambros Lambrou's avatar
    [remoting] Don't resize buttons in permission wizard. · 43d64fe0
    Lambros Lambrou authored
    The permission wizard had a multi-purpose "Next" button whose text and
    behavior were adjusted, depending on the wizard state. Resizing the
    button sometimes caused rendering glitches in the bezel outline.
    
    This CL simplifies things by creating separate buttons (and event
    handlers) for each purpose, and it shows/hides them instead of
    replacing the title strings.
    
    This CL also enables/disables the "Next" button (according to
    permission grant state), so that the buttons don't jump around as much.
    The "Open .. preferences" button and "Next" buttons remain visible, but
    the user can still only advance when permission is granted.
    
    Bug: 1015201
    Change-Id: I255fcc8bc3f8c18acfef0dc830964c40dd081e98
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1949673
    Commit-Queue: Lambros Lambrou <lambroslambrou@chromium.org>
    Commit-Queue: Yuwei Huang <yuweih@chromium.org>
    Auto-Submit: Lambros Lambrou <lambroslambrou@chromium.org>
    Reviewed-by: default avatarYuwei Huang <yuweih@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#721278}
    43d64fe0
permission_wizard.mm 17.5 KB