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

Unified Diff: ash/tooltips/tooltip_controller.h

Issue 9796004: aura: Really long tooltips should be wrapped not truncated. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trying to fix windows build again! Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ash/tooltips/tooltip_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/tooltips/tooltip_controller.h
diff --git a/ash/tooltips/tooltip_controller.h b/ash/tooltips/tooltip_controller.h
index e2b8ed611e1d239e9fe1e3aae6d13c1ccdf6c9d7..5e9d103418ddbe905d910204ec674cb2a705a02f 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
« no previous file with comments | « no previous file | ash/tooltips/tooltip_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698