Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup SearchBoxViewBase initialization
Few improvements that reduce number of virtual methods in SearchBoxViewBase, and make search box initialization easier to follow. * Makes SearchBoxViewBase::Init protected and non virtual - the SearchBoxView and KSVSearchBoxView now expose easier to use Initialize* methods that set up init params as required. Introduces `textfield_margins` param to be used for bubble launcher search box. * Removes virtual methods for setting up close and assistant buttons from SearchBoxViewBase - instead exposes methods to create close and assistant button, that SearchBoxView and KSVSearchBoxView can use to add buttons, and initialize them. * Moves UpdateSearchIcon() virtual method out of SearchBoxViewBase (it's only used from app list SearchBoxView). BUG=1346358 Change-Id: I21700a71cbb44f2ce2bbf0d902c37c43ab5a8925 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3806802 Commit-Queue: Toni Barzic <tbarzic@chromium.org> Reviewed-by: Tao Wu <wutao@chromium.org> Cr-Commit-Position: refs/heads/main@{#1031340}
- Loading branch information
Toni Barzic
authored and
Chromium LUCI CQ
committed
Aug 4, 2022
1 parent
0fa9769
commit 4785d75
Showing
11 changed files
with
234 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.