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

Unified Diff: ui/views/widget/tooltip_manager.cc

Issue 23731010: Move text_elider to gfx. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update3 Created 7 years, 3 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 | « ui/views/corewm/tooltip_controller_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/tooltip_manager.cc
diff --git a/ui/views/widget/tooltip_manager.cc b/ui/views/widget/tooltip_manager.cc
index af51f0d0ddf2ac98fa066c9e1ebc3766749a7e9f..cbfba8f2993e86ddc306a5f2128b73112089d757 100644
--- a/ui/views/widget/tooltip_manager.cc
+++ b/ui/views/widget/tooltip_manager.cc
@@ -8,7 +8,7 @@
#include "base/strings/string_split.h"
#include "base/strings/utf_string_conversions.h"
-#include "ui/base/text/text_elider.h"
+#include "ui/gfx/text_elider.h"
#include "ui/gfx/text_utils.h"
// Maximum number of characters we allow in a tooltip.
@@ -50,7 +50,7 @@ void TooltipManager::TrimTooltipToFit(string16* text,
for (std::vector<string16>::iterator i = lines.begin(); i != lines.end();
++i) {
string16 elided_text =
- ui::ElideText(*i, font_list, available_width, ui::ELIDE_AT_END);
+ gfx::ElideText(*i, font_list, available_width, gfx::ELIDE_AT_END);
*max_width = std::max(*max_width,
gfx::GetStringWidth(elided_text, font_list));
if (!result.empty())
« no previous file with comments | « ui/views/corewm/tooltip_controller_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698