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

Unified Diff: views/controls/label.cc

Issue 6257006: Move a bunch of random other files to src/ui/base... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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 | « views/controls/combobox/native_combobox_gtk.h ('k') | views/controls/menu/native_menu_gtk.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/label.cc
===================================================================
--- views/controls/label.cc (revision 71854)
+++ views/controls/label.cc (working copy)
@@ -8,7 +8,6 @@
#include <limits>
#include "app/resource_bundle.h"
-#include "app/text_elider.h"
#include "base/i18n/rtl.h"
#include "base/logging.h"
#include "base/string_split.h"
@@ -18,6 +17,7 @@
#include "gfx/color_utils.h"
#include "gfx/font.h"
#include "gfx/insets.h"
+#include "ui/base/text/text_elider.h"
#include "views/background.h"
namespace views {
@@ -428,7 +428,7 @@
// TODO(jungshik) : Figure out how to get 'intl.accept_languages'
// preference and use it when calling ElideUrl.
*paint_text = UTF16ToWideHack(
- gfx::ElideUrl(url_, font_, GetAvailableRect().width(), std::wstring()));
+ ui::ElideUrl(url_, font_, GetAvailableRect().width(), std::wstring()));
// An URLs is always treated as an LTR text and therefore we should
// explicitly mark it as such if the locale is RTL so that URLs containing
@@ -442,7 +442,7 @@
*paint_text = UTF16ToWide(base::i18n::GetDisplayStringInLTRDirectionality(
WideToUTF16(*paint_text)));
} else if (elide_in_middle_) {
- *paint_text = UTF16ToWideHack(gfx::ElideText(text_,
+ *paint_text = UTF16ToWideHack(ui::ElideText(text_,
font_, GetAvailableRect().width(), true));
} else {
*paint_text = UTF16ToWideHack(text_);
« no previous file with comments | « views/controls/combobox/native_combobox_gtk.h ('k') | views/controls/menu/native_menu_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698