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

Unified Diff: ui/views/corewm/tooltip_controller_test_helper.cc

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_test_helper.cc
diff --git a/ui/views/corewm/tooltip_controller_test_helper.cc b/ui/views/corewm/tooltip_controller_test_helper.cc
index 9a2f06f76ca5b9af7a1ba624a2d828b231155880..d740578ae1a5899c496209572f1fdff7f6a5c88b 100644
--- a/ui/views/corewm/tooltip_controller_test_helper.cc
+++ b/ui/views/corewm/tooltip_controller_test_helper.cc
@@ -49,9 +49,9 @@ bool TooltipControllerTestHelper::IsTooltipVisible() {
}
// static
-void TooltipControllerTestHelper::TrimTooltipToFit(int max_width,
+void TooltipControllerTestHelper::TrimTooltipToFit(float max_width,
string16* text,
- int* width,
+ float* width,
int* line_count) {
TooltipController::TrimTooltipToFit(max_width, text, width, line_count);
}

Powered by Google App Engine
This is Rietveld 408576698