diff options
author | varunjain@chromium.org <varunjain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-21 16:11:13 +0000 |
---|---|---|
committer | varunjain@chromium.org <varunjain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-21 16:11:13 +0000 |
commit | 5ef265defa58eee026b799e8ec0e15dc2e7e8113 (patch) | |
tree | 7ef249fcd4d3b802c5967cb444a2f8fb1a58f841 /ash/tooltips/tooltip_controller.h | |
parent | 8f91790d65a6228eeb71cad070b2ae5cd1fe6cbb (diff) | |
download | chromium_src-5ef265defa58eee026b799e8ec0e15dc2e7e8113.zip chromium_src-5ef265defa58eee026b799e8ec0e15dc2e7e8113.tar.gz chromium_src-5ef265defa58eee026b799e8ec0e15dc2e7e8113.tar.bz2 |
aura: Really long tooltips should be wrapped not truncated.
BUG=119083
TEST=manual
Review URL: http://codereview.chromium.org/9796004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127975 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 |