summaryrefslogtreecommitdiffstats
path: root/sync/protocol
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-02 22:41:00 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-02 22:41:00 +0000
commit7ffa8815e1e13ede3313951fc001eba0fe9d9ef8 (patch)
treeb6e959dd7c2630dd07e73aad5e0aa3fd50f3bee6 /sync/protocol
parentaa2c10e9118c89703d7d717421c25951dd605b0b (diff)
downloadchromium_src-7ffa8815e1e13ede3313951fc001eba0fe9d9ef8.zip
chromium_src-7ffa8815e1e13ede3313951fc001eba0fe9d9ef8.tar.gz
chromium_src-7ffa8815e1e13ede3313951fc001eba0fe9d9ef8.tar.bz2
Elide labels in infobars more correctly.
For most infobars, this means shrinking the longest labels first, until the point when said longest labels can all be given the same width, as opposed to today where one label will get shrunk all the way to nothingness before the others change at all. This is also superior to reducing all labels proportionately to their desired sizes, since that means that as soon as they don't all fit, _all_ get elided, reducing readability more than is necessary. For the alternate nav infobar, this means eliding the set of labels correctly as one string so an ellipsis is always displayed at the end (eliminating the no-ellipsis edge cases possible today). In general, this has the side effect of making infobar Layout() functions more readable. BUG=none TEST=Trigger a translate infobar, then shrink the window width and ensure the labels get elided in a readable way. R=msw@chromium.org Review URL: https://codereview.chromium.org/115063005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242817 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/protocol')
0 files changed, 0 insertions, 0 deletions