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

Unified Diff: ui/views/controls/textfield/native_textfield_wrapper.h

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/native_textfield_win.cc ('k') | ui/views/controls/textfield/textfield.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/textfield/native_textfield_wrapper.h
diff --git a/ui/views/controls/textfield/native_textfield_wrapper.h b/ui/views/controls/textfield/native_textfield_wrapper.h
index 82e75b381b9c4a450e02dac8d4752519bf1101c3..383a5ebad54d40b6366ec7930142f9d91455816d 100644
--- a/ui/views/controls/textfield/native_textfield_wrapper.h
+++ b/ui/views/controls/textfield/native_textfield_wrapper.h
@@ -7,8 +7,8 @@
#include "base/i18n/rtl.h"
#include "base/strings/string16.h"
-#include "ui/base/range/range.h"
#include "ui/gfx/native_widget_types.h"
+#include "ui/gfx/range/range.h"
#include "ui/gfx/selection_model.h"
#include "ui/gfx/text_constants.h"
#include "ui/views/views_export.h"
@@ -109,10 +109,10 @@ class VIEWS_EXPORT NativeTextfieldWrapper {
virtual bool IsIMEComposing() const = 0;
// Gets the selected range.
- virtual ui::Range GetSelectedRange() const = 0;
+ virtual gfx::Range GetSelectedRange() const = 0;
// Selects the text given by |range|.
- virtual void SelectRange(const ui::Range& range) = 0;
+ virtual void SelectRange(const gfx::Range& range) = 0;
// Gets the selection model.
virtual gfx::SelectionModel GetSelectionModel() const = 0;
@@ -149,13 +149,13 @@ class VIEWS_EXPORT NativeTextfieldWrapper {
// Set the text colors; see the corresponding Textfield functions for details.
virtual void SetColor(SkColor value) = 0;
- virtual void ApplyColor(SkColor value, const ui::Range& range) = 0;
+ virtual void ApplyColor(SkColor value, const gfx::Range& range) = 0;
// Set the text styles; see the corresponding Textfield functions for details.
virtual void SetStyle(gfx::TextStyle style, bool value) = 0;
virtual void ApplyStyle(gfx::TextStyle style,
bool value,
- const ui::Range& range) = 0;
+ const gfx::Range& range) = 0;
// Clears Edit history.
virtual void ClearEditHistory() = 0;
« no previous file with comments | « ui/views/controls/textfield/native_textfield_win.cc ('k') | ui/views/controls/textfield/textfield.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698