Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(188)

Side by Side Diff: ui/views/controls/textfield/textfield_test_api.cc

Issue 297733002: Deactivate omnibox touch editing on command execution (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added test api for textfield Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 #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.
2
3 namespace views {
4
5 TextfieldTestApi::TextfieldTestApi(Textfield* textfield)
6 : textfield_(textfield) {
7 DCHECK(textfield);
8 }
9
10 void TextfieldTestApi::UpdateContextMenu() {
11 textfield_->UpdateContextMenu();
12 }
13
14 gfx::RenderText* TextfieldTestApi::GetRenderText() const {
15 return textfield_->GetRenderText();
16 }
17
18 void TextfieldTestApi::CreateTouchSelectionControllerAndNotifyIt() {
19 textfield_->CreateTouchSelectionControllerAndNotifyIt();
20 }
21
22 void TextfieldTestApi::ResetTouchSelectionController() {
23 textfield_->touch_selection_controller_.reset();
24 }
25
26 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698