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

Unified Diff: ui/views/controls/textfield/textfield_model.cc

Issue 2348143003: MacViews: Implement Force Touch/Mac dictionary lookup for Textfields. (Closed)
Patch Set: Address review. Created 4 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: ui/views/controls/textfield/textfield_model.cc
diff --git a/ui/views/controls/textfield/textfield_model.cc b/ui/views/controls/textfield/textfield_model.cc
index a89c3cc99aa9ae0d48a321b85faef35ef54e74a0..ff70d8ef5d5ead1f4c094b69a13cecc76959ee9c 100644
--- a/ui/views/controls/textfield/textfield_model.cc
+++ b/ui/views/controls/textfield/textfield_model.cc
@@ -623,12 +623,6 @@ void TextfieldModel::DeleteSelectionAndInsertTextAt(
position);
}
-base::string16 TextfieldModel::GetTextFromRange(const gfx::Range& range) const {
- if (range.IsValid() && range.GetMin() < text().length())
- return text().substr(range.GetMin(), range.length());
- return base::string16();
-}
-
void TextfieldModel::GetTextRange(gfx::Range* range) const {
*range = gfx::Range(0, text().length());
}
« no previous file with comments | « ui/views/controls/textfield/textfield_model.h ('k') | ui/views/view.h » ('j') | ui/views/view.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698