DescriptionMisc. cleanup:
All:
* Add/update/clarify comments.
ContentSettingImageView:
* This doesn't directly subclass views::View. Move those overrides into the IconLabelBubbleView list and reorder the code to match.
* Nuke IsBubbleShowing() and just inline its trivial code into its lone caller.
IconLabelBubbleView:
* Rename GetBubbleOutPadding() to GetOuterPadding(), the class already has "bubble" in the name.
* Factor code into some helpers in preparation for adding more uses/complexity in the future.
* Functional change: Make the leading padding match the trailing padding for MD in all cases, not just when there's no image. This looks better to me, is simpler, and will be necessary for an upcoming change.
* Add missing const to unittest code.
layout_constants.*:
* Rename "padding" to "spacing" in a place where we're referring to the distance between objects instead of at the edge of an object.
BUG=586423
TEST=none
Committed: https://crrev.com/031b547b8763c3026b53dea120ccf3d4fa176492
Cr-Commit-Position: refs/heads/master@{#383917}
Patch Set 1 #Patch Set 2 : Missing bits #Patch Set 3 : Fix compile #Patch Set 4 : Move more code around #
Total comments: 4
Patch Set 5 : Fix missing spacing #
Dependent Patchsets: Messages
Total messages: 14 (7 generated)
|