commit | 01adeb07b9337623a0dfc1266afc6a6dfc9145a8 | [log] [tgz] |
---|---|---|
author | Michael Giuffrida <michaelpg@chromium.org> | Thu Mar 21 22:05:30 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Mar 21 22:05:30 2019 |
tree | 8374a86705810c26a22c98ea6ba8ca0c693ac352 | |
parent | 4422d0647b12fcc7852838cef8ffb83b238a66ce [diff] |
Separate AppListButton view from business logic AppListButton observes several global states to change how it draws itself, based on Tablet Mode, App List visibility, etc. It also has complex Assistant-related logic. This CL moves this business logic to AppListButtonController, so that AppListButton only has to know how to paint. The controller observes global state and directs AppListButton to animate itself to different states as needed. This will allow changing the controller logic without affecting the button, and changing the button style (and how different states are represented) without affecting the controller logic. Bug: 937549 Change-Id: I8bededc22e06675da46e6fa8b91f7eea46ed87cb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1529078 Commit-Queue: Michael Giuffrida <michaelpg@chromium.org> Reviewed-by: James Cook <jamescook@chromium.org> Cr-Commit-Position: refs/heads/master@{#643148}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .