Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(502)

Issue 265003: Fix long tooltips flashing like crazy under Windows. (Closed)

Created:
11 years, 2 months ago by Simon Radford
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, brettw+cc_chromium.org, jam, ben+cc_chromium.org
Visibility:
Public.

Description

Fix long tooltips flashing like crazy under Windows. Tooltips longer than 1024 chars get truncated. However, to determine if the tooltip changed, the un-truncated new text was compared to the truncated old text. Thus, for long tooltips, the tooltip text was considered to be constantly changing, causing the tooltip to be destroyed and re-created constantly. R=Ben Goodger, Darin Fisher BUG=4754 TEST=Go to (for example) http://people.mozilla.org/~rdoherty/tooltips.html and check that the long tooltips do not flash on Windows (I used Vista).

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 1

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -7 lines) Patch
M chrome/browser/renderer_host/render_widget_host_view_win.cc View 1 2 3 1 chunk +7 lines, -7 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Simon Radford
11 years, 2 months ago (2009-10-07 03:27:12 UTC) #1
Ben Goodger (Google)
OK LGTM.
11 years, 2 months ago (2009-10-07 23:43:56 UTC) #2
Peter Kasting
Thanks a ton for fixing this, it shows up a lot on the buildbot pages ...
11 years, 2 months ago (2009-10-07 23:52:30 UTC) #3
darin (slow to review)
http://codereview.chromium.org/265003/diff/5001/4 File chrome/browser/renderer_host/render_widget_host_view_win.cc (right): http://codereview.chromium.org/265003/diff/5001/4#newcode633 Line 633: tooltip_text.substr(0, kMaxTooltipLength); style nit: const std::wstring& new_tooltip_text = ...
11 years, 2 months ago (2009-10-07 23:52:30 UTC) #4
Simon Radford
Fixed comments, and added localized, better truncation including ellipsis (...) and break-on-word-boundary.
11 years, 2 months ago (2009-10-08 03:47:24 UTC) #5
darin (slow to review)
LGTM
11 years, 2 months ago (2009-10-08 06:26:24 UTC) #6
darin (slow to review)
11 years, 2 months ago (2009-10-08 06:50:13 UTC) #7
committed as r28383

Powered by Google App Engine
This is Rietveld 408576698