commit | eaf6dceed917e79c1fd9ea46510906d9f0e49736 | [log] [tgz] |
---|---|---|
author | David Black <dmblack@google.com> | Thu Nov 14 22:25:47 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Nov 14 22:25:47 2019 |
tree | fcc5bbb5608bacb665526c400771c137aa3beb35 | |
parent | b79eac5646c14298a63a1f6096ffbae96951492f [diff] |
Refactor Assistant proactive suggestions logic in ash. Proactive suggestions controller logic in ash currently lives in AssistantUiController. It makes use of some of the same logic as standalone Assistant UI (e.g. for calculating usable work area). Proactive suggestions logic has grown and will grow again soon as we update triggering conditions (to only show UI as a result of user scrolling activity). This is going to further muddy the AssistantUiController if added to the code in its current state. To address this, I've refactored Proactive suggestions controller logic into AssistantProactiveSuggestionsController, a sub-controller owned by the AssistantSuggestionsController. It is fairly self-contained and copies some logic (e.g. for calculating usable work area) from the AssistantUiController. This will make it much easier to clean up the AssistantUiController when standalone UI is deprecated. Bug: b:142144655 Change-Id: I10f4892ae166618a588505d75634c6c18a7cc6d0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1906935 Reviewed-by: Xiyuan Xia <xiyuan@chromium.org> Reviewed-by: Xiaohui Chen <xiaohuic@chromium.org> Commit-Queue: David Black <dmblack@google.com> Cr-Commit-Position: refs/heads/master@{#715449}
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 .