| Index: ui/views/controls/textfield/textfield.cc
|
| diff --git a/ui/views/controls/textfield/textfield.cc b/ui/views/controls/textfield/textfield.cc
|
| index 4642d23fc89a89633cc84ff72fbb5011959a7b9d..1a1f3add1374b8fc74e3ef44215bce1cd9bf3389 100644
|
| --- a/ui/views/controls/textfield/textfield.cc
|
| +++ b/ui/views/controls/textfield/textfield.cc
|
| @@ -649,6 +649,10 @@ void Textfield::OnMouseReleased(const ui::MouseEvent& event) {
|
| OnAfterUserAction();
|
| }
|
|
|
| +WordLookupClient* Textfield::GetWordLookupClient() {
|
| + return this;
|
| +}
|
| +
|
| bool Textfield::OnKeyPressed(const ui::KeyEvent& event) {
|
| ui::TextEditCommand edit_command = scheduled_text_edit_command_;
|
| scheduled_text_edit_command_ = ui::TextEditCommand::INVALID_COMMAND;
|
| @@ -1097,6 +1101,16 @@ bool Textfield::CanStartDragForView(View* sender,
|
| }
|
|
|
| ////////////////////////////////////////////////////////////////////////////////
|
| +// Textfield, WordLookupClient overrides:
|
| +
|
| +bool Textfield::GetDecoratedWordAtPoint(const gfx::Point& point,
|
| + gfx::DecoratedText* decorated_word,
|
| + gfx::Point* baseline_point) {
|
| + return GetRenderText()->GetDecoratedWordAtPoint(point, decorated_word,
|
| + baseline_point);
|
| +}
|
| +
|
| +////////////////////////////////////////////////////////////////////////////////
|
| // Textfield, ui::TouchEditable overrides:
|
|
|
| void Textfield::SelectRect(const gfx::Point& start, const gfx::Point& end) {
|
|
|