Chromium Code Reviews| Index: ui/views/controls/textfield/textfield_test_api.cc |
| diff --git a/ui/views/controls/textfield/textfield_test_api.cc b/ui/views/controls/textfield/textfield_test_api.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..32f343beb42348ea5254cc96909bb5d7bc8a7cb5 |
| --- /dev/null |
| +++ b/ui/views/controls/textfield/textfield_test_api.cc |
| @@ -0,0 +1,26 @@ |
| +#include "ui/views/controls/textfield/textfield_test_api.h" |
|
sky
2014/05/21 16:20:45
copyright.
mohsen
2014/05/21 19:54:28
Done.
|
| + |
| +namespace views { |
| + |
| +TextfieldTestApi::TextfieldTestApi(Textfield* textfield) |
| + : textfield_(textfield) { |
| + DCHECK(textfield); |
| +} |
| + |
| +void TextfieldTestApi::UpdateContextMenu() { |
| + textfield_->UpdateContextMenu(); |
| +} |
| + |
| +gfx::RenderText* TextfieldTestApi::GetRenderText() const { |
| + return textfield_->GetRenderText(); |
| +} |
| + |
| +void TextfieldTestApi::CreateTouchSelectionControllerAndNotifyIt() { |
| + textfield_->CreateTouchSelectionControllerAndNotifyIt(); |
| +} |
| + |
| +void TextfieldTestApi::ResetTouchSelectionController() { |
| + textfield_->touch_selection_controller_.reset(); |
| +} |
| + |
| +} // namespace views |