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

Unified Diff: ui/views/corewm/tooltip_controller.h

Issue 24883002: Uses and returns the fractional width in text eliding (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix round-down problems Created 7 years, 2 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
Index: ui/views/corewm/tooltip_controller.h
diff --git a/ui/views/corewm/tooltip_controller.h b/ui/views/corewm/tooltip_controller.h
index 9cd04d3cb8a5ddc26c19488eb501d519a8696f88..cad5667ddc0728d5ceeeef2518025f2837747335 100644
--- a/ui/views/corewm/tooltip_controller.h
+++ b/ui/views/corewm/tooltip_controller.h
@@ -69,9 +69,9 @@ class VIEWS_EXPORT TooltipController : public aura::client::TooltipClient,
// 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. |max_width| comes
// from GetMaxWidth().
- static void TrimTooltipToFit(int max_width,
+ static void TrimTooltipToFit(float max_width,
string16* text,
- int* width,
+ float* width,
int* line_count);
void TooltipTimerFired();

Powered by Google App Engine
This is Rietveld 408576698