diff options
author | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-27 10:54:03 +0000 |
---|---|---|
committer | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-27 10:54:03 +0000 |
commit | 2fd79454fad60e9d08845145225bfaeec8b32c07 (patch) | |
tree | f3651741987e7dedb64ee68e0f2de09d6c6e2fcc /tools/valgrind | |
parent | 395ac11a5b06270ffdcc0157b23949f5df21583b (diff) | |
download | chromium_src-2fd79454fad60e9d08845145225bfaeec8b32c07.zip chromium_src-2fd79454fad60e9d08845145225bfaeec8b32c07.tar.gz chromium_src-2fd79454fad60e9d08845145225bfaeec8b32c07.tar.bz2 |
Mac: Add nice fade effect to overflowing bookmark buttons in the bookmark bar
Port magic from GTMFadeTruncatingTextFieldCell to Chrome's GradientButtonCell, used by buttons in the bookmark bar. Any button that inherits from this class will now get overflowing titles truncated with a nice gradient (same as tab titles), rather than the default ellipsis.
Using GTMFadeTruncatingTextFieldCell in this case wasn't feasible because bookmark buttons are subclasses of NSButtonCell and already use a bunch of specialized behavior provided by it.
BUG=45104
TEST=Add a bookmark to the bookmark bar and increase the length of it's title. Once you get past a certain length, rather than truncate the title should fade out nicely. Exactly in the same way long tab titles do. Bookmark buttons with titles that aren't truncated should look exactly the same. Also test with Dolce & Gabbana theme which has inverted contrast.
Review URL: http://codereview.chromium.org/2806066
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53773 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/valgrind')
0 files changed, 0 insertions, 0 deletions