Chromium Code Reviews
Description❄ Add InfoBarCompactLayout
Adds the ability to create infobars that are "compact":
* Adds an InfoBarCompactLayout that is basically a LinearLayout:
it sandwiches custom controls in a 48dp high bar between an
optional icon and a close button.
* Pull out code that creates the icon ImageView and the close
ImageButton so that it can be reused.
* Add the ability for InfoBar subclasses to define whether or not
they produce these compact infobars.
* Add some stub code to TranslateCompactInfoBar that allows
uses this code.
This CL is meant to unblock the Sydney team from progressing;
refinements to the way InfoBar uses the InfoBarCompactaLayout
and the InfoBarLayout classes are forthcoming (along with a doc).
Screenshots:
https://drive.google.com/corp/drive/u/0/folders/0B7c8ZkXVwskDUmlESWpyZHRoeUk
BUG=705312
Review-Url: https://codereview.chromium.org/2767523002
Cr-Commit-Position: refs/heads/master@{#459834}
Committed: https://chromium.googlesource.com/chromium/src/+/7bc9bd3a6fa05f39eab314b3193e2ba382e96b45
Patch Set 1 #Patch Set 2 : ❄ Experimental compact InfoBar layout #Patch Set 3 : ❄ Experimental compact InfoBar layout #
Total comments: 8
Patch Set 4 : ❄ Experimental compact InfoBar layout #
Messages
Total messages: 13 (8 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||