[remoting] Don't resize buttons in permission wizard.
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:Yuwei Huang <yuweih@chromium.org> Cr-Commit-Position: refs/heads/master@{#721278}
Showing
Please register or sign in to comment