summaryrefslogtreecommitdiffstats
path: root/views/controls/textfield/native_textfield_views.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/controls/textfield/native_textfield_views.cc')
-rw-r--r--views/controls/textfield/native_textfield_views.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/views/controls/textfield/native_textfield_views.cc b/views/controls/textfield/native_textfield_views.cc
index 107c95b..07725ff 100644
--- a/views/controls/textfield/native_textfield_views.cc
+++ b/views/controls/textfield/native_textfield_views.cc
@@ -555,7 +555,7 @@ void NativeTextfieldViews::HandleBlur() {
touch_selection_controller_->ClientViewLostFocus();
}
-ui::TextInputClient* NativeTextfieldViews::GetTextInputClient() {
+TextInputClient* NativeTextfieldViews::GetTextInputClient() {
return textfield_->read_only() ? NULL : this;
}
@@ -652,7 +652,7 @@ void NativeTextfieldViews::OnBoundsChanged(const gfx::Rect& previous_bounds) {
}
///////////////////////////////////////////////////////////////////////////////
-// NativeTextfieldViews, ui::TextInputClient implementation, private:
+// NativeTextfieldViews, TextInputClient implementation, private:
void NativeTextfieldViews::SetCompositionText(
const ui::CompositionText& composition) {
@@ -813,6 +813,10 @@ bool NativeTextfieldViews::ChangeTextDirectionAndLayoutAlignment(
return false;
}
+View* NativeTextfieldViews::GetOwnerViewOfTextInputClient() {
+ return textfield_;
+}
+
void NativeTextfieldViews::OnCompositionTextConfirmedOrCleared() {
if (skip_input_method_cancel_composition_)
return;