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

Unified Diff: chrome/browser/ui/autofill/autofill_popup_controller_impl.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
Index: chrome/browser/ui/autofill/autofill_popup_controller_impl.cc
diff --git a/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc b/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc
index 043e8c15476debacaaae0f1b1db0b2204675b5fd..837025f0aeaed76383b9e14805128a00b59fb92d 100644
--- a/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc
+++ b/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc
@@ -15,10 +15,10 @@
#include "grit/webkit_resources.h"
#include "third_party/WebKit/public/web/WebAutofillClient.h"
#include "ui/base/events/event.h"
-#include "ui/base/text/text_elider.h"
#include "ui/gfx/display.h"
#include "ui/gfx/rect_conversions.h"
#include "ui/gfx/screen.h"
+#include "ui/gfx/text_elider.h"
#include "ui/gfx/vector2d.h"
using base::WeakPtr;
@@ -143,16 +143,16 @@ void AutofillPopupControllerImpl::Show(
// Each field recieves space in proportion to its length.
int name_size = available_width * name_width / total_text_length;
- names_[i] = ui::ElideText(names_[i],
+ names_[i] = gfx::ElideText(names_[i],
GetNameFontForRow(i),
name_size,
- ui::ELIDE_AT_END);
+ gfx::ELIDE_AT_END);
int subtext_size = available_width * subtext_width / total_text_length;
- subtexts_[i] = ui::ElideText(subtexts_[i],
+ subtexts_[i] = gfx::ElideText(subtexts_[i],
subtext_font(),
subtext_size,
- ui::ELIDE_AT_END);
+ gfx::ELIDE_AT_END);
}
#endif

Powered by Google App Engine
This is Rietveld 408576698