[ToolbarMVC] Reimplement MenuButton internals to follow MVC
This adds the familiar MVC pieces, in addition to the existing Coordinator and View: a Mediator, a ViewBinder, and a Properties class. Logic is moved out of the MenuButton and MenuButtonCoordinator to the Mediator. Of note, there are two compound properties for combinations of properties that need to be set together: * show/hide badge and shouldAnimate * useLight and ColorStateList Bug: 1086676 Change-Id: I12fb7aa1e21b78b0cddf6b72c322e3c030fae78e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2406378 Commit-Queue: Patrick Noland <pnoland@chromium.org> Reviewed-by:Matthew Jones <mdjones@chromium.org> Cr-Commit-Position: refs/heads/master@{#809896}
Showing
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment