Remove max_width from TrayBubbleView::InitParams
This change removes max_width, and renames min_width to preferred_width. Currently, if max_width is left at its default value (0), any attempt to set the bubble's width via SetWidth() is blocked, because the width is clamped to min_width, max_width. Further, there is only one case in which max_width is initialized to a different value than min_width, so the decision was made to move the clamping logic from the base class into that subclass. Relnotes: N/A Bug: 973719 Change-Id: I2a1512f5e955834529f4ed5fbb7d3926cfba5d0a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2140591Reviewed-by:Tetsui Ohkubo <tetsui@chromium.org> Commit-Queue: Anastasia Helfinstein <anastasi@google.com> Cr-Commit-Position: refs/heads/master@{#757940}
Showing
Please register or sign in to comment