Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / ui / views / controls / textfield / textfield_test_api.cc
blobbe45d24cc42f3da5c8ba5934a9f9cd10ce1c16eb
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ui/views/controls/textfield/textfield_test_api.h"
7 namespace views {
9 TextfieldTestApi::TextfieldTestApi(Textfield* textfield)
10 : textfield_(textfield) {
11 DCHECK(textfield);
14 void TextfieldTestApi::UpdateContextMenu() {
15 textfield_->UpdateContextMenu();
18 gfx::RenderText* TextfieldTestApi::GetRenderText() const {
19 return textfield_->GetRenderText();
22 void TextfieldTestApi::CreateTouchSelectionControllerAndNotifyIt() {
23 textfield_->CreateTouchSelectionControllerAndNotifyIt();
26 void TextfieldTestApi::ResetTouchSelectionController() {
27 textfield_->touch_selection_controller_.reset();
30 } // namespace views