DescriptionAdd ViewGroup for handling pairs of infobar controls
A recurring pattern in the infobar spec is to have two
controls that are placed horizontally if they fit, but
get stacked vertically otherwise. This happens for
buttons on the infobar row and for any control where
there is both a label and a value (e.g. spinners or
credit card information). The only differences
between them are defined by how the two controls are
laid out.
This CL introduces the InfoBarDualControlLayout for
handling these cases, but doesn't change the infobar
classes to use it, yet. It's meant to be general
enough for all of the cases above to plug into it.
BUG=543205
Committed: https://crrev.com/32f6f55409009f43e0425008bcc20aa57dbeac8e
Cr-Commit-Position: refs/heads/master@{#367590}
Patch Set 1 #Patch Set 2 : Old comments #Patch Set 3 : Fixing the width #Patch Set 4 : Unit test change #Patch Set 5 : Changing tests again; should hopefully catch inappropriately sized layouts #
Total comments: 16
Patch Set 6 : Comments #
Total comments: 2
Patch Set 7 : Comments #
Messages
Total messages: 13 (4 generated)
|