diff options
author | varunjain@chromium.org <varunjain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-22 06:10:15 +0000 |
---|---|---|
committer | varunjain@chromium.org <varunjain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-22 06:10:15 +0000 |
commit | 9e6baed5c4ae29bba801385f0b01fdf7f3ccd6a4 (patch) | |
tree | df7fff62f4973b8b509d7d39c3f7a75ff4290ef2 /ash/tooltips/tooltip_controller.h | |
parent | 2f67a7b29a8ce4f0023a7dfea4101cf6eafef3e0 (diff) | |
download | chromium_src-9e6baed5c4ae29bba801385f0b01fdf7f3ccd6a4.zip chromium_src-9e6baed5c4ae29bba801385f0b01fdf7f3ccd6a4.tar.gz chromium_src-9e6baed5c4ae29bba801385f0b01fdf7f3ccd6a4.tar.bz2 |
aura: Really long tooltips should be wrapped not truncated.
BUG=119083
TEST=manual
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=127975
Review URL: http://codereview.chromium.org/9796004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128177 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/tooltips/tooltip_controller.h')
-rw-r--r-- | ash/tooltips/tooltip_controller.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ash/tooltips/tooltip_controller.h b/ash/tooltips/tooltip_controller.h index e2b8ed6..5e9d103 100644 --- a/ash/tooltips/tooltip_controller.h +++ b/ash/tooltips/tooltip_controller.h @@ -60,6 +60,16 @@ class ASH_EXPORT TooltipController : public aura::client::TooltipClient, class Tooltip; + // Trims the tooltip to fit, setting |text| to the clipped result, + // |max_width| to the width (in pixels) of the clipped text and |line_count| + // to the number of lines of text in the tooltip. |x| and |y| give the + // location of the tooltip in screen coordinates. + static void TrimTooltipToFit(string16* text, + int* max_width, + int* line_count, + int x, + int y); + void TooltipTimerFired(); // Updates the tooltip if required (if there is any change in the tooltip |