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

Issue 340543004: views: Support longer tooltips.

Created:
6 years, 6 months ago by Daniel Erat
Modified:
6 years, 4 months ago
Reviewers:
sky, varunjain
CC:
chromium-reviews, tfarina, ben+views_chromium.org, tdanderson+views_chromium.org, ben+corewm_chromium.org, msw
Project:
chromium
Visibility:
Public.

Description

views: Support longer tooltips. Increase the maximum tooltip length from 1024 characters to 2048. Increase the maximum dimensions for tooltips. Delete the line-wrapping code and just use a views::Label instead. BUG=370226

Patch Set 1 #

Patch Set 2 : simplify code #

Patch Set 3 : one more simplification #

Total comments: 4

Patch Set 4 : update to use views::Label #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -253 lines) Patch
M ui/views/corewm/tooltip_aura.h View 1 2 3 1 chunk +2 lines, -13 lines 0 comments Download
M ui/views/corewm/tooltip_aura.cc View 1 2 3 5 chunks +7 lines, -106 lines 0 comments Download
M ui/views/corewm/tooltip_aura_unittest.cc View 1 2 3 1 chunk +0 lines, -132 lines 0 comments Download
M ui/views/views.gyp View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/widget/tooltip_manager.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
Daniel Erat
6 years, 6 months ago (2014-06-17 23:48:43 UTC) #1
sky
https://codereview.chromium.org/340543004/diff/40001/ui/views/corewm/tooltip_aura.cc File ui/views/corewm/tooltip_aura.cc (right): https://codereview.chromium.org/340543004/diff/40001/ui/views/corewm/tooltip_aura.cc#newcode68 ui/views/corewm/tooltip_aura.cc:68: void TooltipAura::TrimTooltipToFit(const gfx::FontList& font_list, I think we should convert ...
6 years, 6 months ago (2014-06-18 03:20:07 UTC) #2
Daniel Erat
https://codereview.chromium.org/340543004/diff/40001/ui/views/corewm/tooltip_aura.cc File ui/views/corewm/tooltip_aura.cc (right): https://codereview.chromium.org/340543004/diff/40001/ui/views/corewm/tooltip_aura.cc#newcode68 ui/views/corewm/tooltip_aura.cc:68: void TooltipAura::TrimTooltipToFit(const gfx::FontList& font_list, On 2014/06/18 03:20:07, sky wrote: ...
6 years, 6 months ago (2014-06-18 04:37:11 UTC) #3
Daniel Erat
On 2014/06/18 04:37:11, Daniel Erat wrote: > https://codereview.chromium.org/340543004/diff/40001/ui/views/corewm/tooltip_aura.cc > File ui/views/corewm/tooltip_aura.cc (right): > > https://codereview.chromium.org/340543004/diff/40001/ui/views/corewm/tooltip_aura.cc#newcode68 ...
6 years, 6 months ago (2014-06-22 04:27:56 UTC) #4
varunjain
https://codereview.chromium.org/340543004/diff/40001/ui/views/corewm/tooltip_aura.cc File ui/views/corewm/tooltip_aura.cc (right): https://codereview.chromium.org/340543004/diff/40001/ui/views/corewm/tooltip_aura.cc#newcode68 ui/views/corewm/tooltip_aura.cc:68: void TooltipAura::TrimTooltipToFit(const gfx::FontList& font_list, On 2014/06/18 04:37:11, Daniel Erat ...
6 years, 6 months ago (2014-06-22 20:00:31 UTC) #5
Daniel Erat
i've updated this to use views::Label instead. i think that there's a bug where Label::GetTextBounds() ...
6 years, 4 months ago (2014-07-30 23:03:40 UTC) #6
sky
6 years, 4 months ago (2014-07-31 15:11:48 UTC) #7
LGTM

Powered by Google App Engine
This is Rietveld 408576698