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

Unified Diff: ui/views/examples/textfield_example.cc

Issue 24012002: Move Range code to gfx. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: d 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/controls/textfield/textfield_views_model_unittest.cc ('k') | ui/views/ime/input_method_bridge.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/examples/textfield_example.cc
diff --git a/ui/views/examples/textfield_example.cc b/ui/views/examples/textfield_example.cc
index 55f1c44c7eacbdfbd368ba8b83f67e64b163a81e..810e17cfc1ba7380db5d5a4f39bd9e5785784163 100644
--- a/ui/views/examples/textfield_example.cc
+++ b/ui/views/examples/textfield_example.cc
@@ -6,7 +6,7 @@
#include "base/strings/utf_string_conversions.h"
#include "ui/base/events/event.h"
-#include "ui/base/range/range.h"
+#include "ui/gfx/range/range.h"
#include "ui/gfx/render_text.h"
#include "ui/views/controls/button/label_button.h"
#include "ui/views/controls/label.h"
@@ -121,12 +121,12 @@ void TextfieldExample::ButtonPressed(Button* sender, const ui::Event& event) {
if (name_->text().length() >= 5) {
size_t fifth = name_->text().length() / 5;
- const ui::Range big_range(1 * fifth, 4 * fifth);
+ const gfx::Range big_range(1 * fifth, 4 * fifth);
name_->ApplyStyle(gfx::BOLD, false, big_range);
name_->ApplyStyle(gfx::UNDERLINE, true, big_range);
name_->ApplyColor(SK_ColorBLUE, big_range);
- const ui::Range small_range(2 * fifth, 3 * fifth);
+ const gfx::Range small_range(2 * fifth, 3 * fifth);
name_->ApplyStyle(gfx::ITALIC, true, small_range);
name_->ApplyStyle(gfx::UNDERLINE, false, small_range);
name_->ApplyStyle(gfx::DIAGONAL_STRIKE, true, small_range);
« no previous file with comments | « ui/views/controls/textfield/textfield_views_model_unittest.cc ('k') | ui/views/ime/input_method_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698