Chromium Code Reviews| Index: ui/views/controls/textfield/textfield_test_api.h |
| diff --git a/ui/views/controls/textfield/textfield_test_api.h b/ui/views/controls/textfield/textfield_test_api.h |
| index 4505b71290700891866ea2a4820c8514f8cf2cda..285a64898f51474d42255ec3aaae53d962e62f20 100644 |
| --- a/ui/views/controls/textfield/textfield_test_api.h |
| +++ b/ui/views/controls/textfield/textfield_test_api.h |
| @@ -33,6 +33,18 @@ class TextfieldTestApi { |
| return textfield_->touch_selection_controller_.get(); |
| } |
| + ui::TextEditCommand scheduled_text_edit_command() const { |
| + return textfield_->scheduled_text_edit_command_; |
| + } |
| + |
| + bool OnKeyPressed(const ui::KeyEvent& event) { |
|
msw
2016/08/26 07:09:43
Can tests instead call Textfield/View::OnKeyEvent(
karandeepb
2016/08/26 10:05:16
Done.
|
| + return textfield_->OnKeyPressed(event); |
| + } |
| + |
| + bool OnKeyReleased(const ui::KeyEvent& event) { |
| + return textfield_->OnKeyReleased(event); |
| + } |
| + |
| private: |
| Textfield* textfield_; |