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

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

Issue 2024003002: Add GetTextDirection to ui::TextInputClient API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/textfield/textfield.cc
diff --git a/ui/views/controls/textfield/textfield.cc b/ui/views/controls/textfield/textfield.cc
index 814adb5fde6667300513d288d1b6ea3ccd5283ec..62edf6c275cf70962891cfb349b985e8191c19f5 100644
--- a/ui/views/controls/textfield/textfield.cc
+++ b/ui/views/controls/textfield/textfield.cc
@@ -363,10 +363,6 @@ void Textfield::InsertOrReplaceText(const base::string16& new_text) {
SchedulePaint();
}
-base::i18n::TextDirection Textfield::GetTextDirection() const {
- return GetRenderText()->GetDisplayTextDirection();
-}
-
base::string16 Textfield::GetSelectedText() const {
return model_->GetSelectedText();
}
@@ -1509,6 +1505,10 @@ ui::TextInputMode Textfield::GetTextInputMode() const {
return ui::TEXT_INPUT_MODE_DEFAULT;
}
+base::i18n::TextDirection Textfield::GetTextDirection() const {
+ return GetRenderText()->GetDisplayTextDirection();
+}
+
int Textfield::GetTextInputFlags() const {
return text_input_flags_;
}
« no previous file with comments | « ui/views/controls/textfield/textfield.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698