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

Unified Diff: ui/views/controls/textfield/textfield.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_wrapper.h ('k') | ui/views/controls/textfield/textfield.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/textfield/textfield.h
diff --git a/ui/views/controls/textfield/textfield.h b/ui/views/controls/textfield/textfield.h
index 4b0ae4efa041e64808997cc5d2402563760ad70d..4247e8b50066ccf7dcac7db5bbd897636e23340b 100644
--- a/ui/views/controls/textfield/textfield.h
+++ b/ui/views/controls/textfield/textfield.h
@@ -27,11 +27,11 @@
#endif
namespace gfx {
+class Range;
class ImageSkia;
}
namespace ui {
-class Range;
class TextInputClient;
} // namespace ui
@@ -206,11 +206,11 @@ class VIEWS_EXPORT Textfield : public View {
// Gets the selected range. This is views-implementation only and
// has to be called after the wrapper is created.
// TODO(msw): Return a const reference when NativeTextfieldWin is gone.
- ui::Range GetSelectedRange() const;
+ gfx::Range GetSelectedRange() const;
// Selects the text given by |range|. This is views-implementation only and
// has to be called after the wrapper is created.
- void SelectRange(const ui::Range& range);
+ void SelectRange(const gfx::Range& range);
// Gets the selection model. This is views-implementation only and
// has to be called after the wrapper is created.
@@ -229,14 +229,14 @@ class VIEWS_EXPORT Textfield : public View {
// Empty and invalid ranges are ignored. This is views-implementation only and
// has to be called after the wrapper is created.
void SetColor(SkColor value);
- void ApplyColor(SkColor value, const ui::Range& range);
+ void ApplyColor(SkColor value, const gfx::Range& range);
// Set various text styles over the entire text or a logical character range.
// The respective |style| is applied if |value| is true, or removed if false.
// Empty and invalid ranges are ignored. This is views-implementation only and
// has to be called after the wrapper is created.
void SetStyle(gfx::TextStyle style, bool value);
- void ApplyStyle(gfx::TextStyle style, bool value, const ui::Range& range);
+ void ApplyStyle(gfx::TextStyle style, bool value, const gfx::Range& range);
// Clears Edit history.
void ClearEditHistory();
« no previous file with comments | « ui/views/controls/textfield/native_textfield_wrapper.h ('k') | ui/views/controls/textfield/textfield.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698