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

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

Issue 2286433002: views: Textfield gets password reveal duration from ViewsDelegate (Closed)
Patch Set: no setter Created 4 years, 3 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/views/controls/textfield/textfield_test_api.h" 5 #include "ui/views/controls/textfield/textfield_test_api.h"
6 6
7 namespace views { 7 namespace views {
8 8
9 TextfieldTestApi::TextfieldTestApi(Textfield* textfield) 9 TextfieldTestApi::TextfieldTestApi(Textfield* textfield)
10 : textfield_(textfield) { 10 : textfield_(textfield) {
11 DCHECK(textfield); 11 DCHECK(textfield);
12 } 12 }
13 13
14 void TextfieldTestApi::UpdateContextMenu() { 14 void TextfieldTestApi::UpdateContextMenu() {
15 textfield_->UpdateContextMenu(); 15 textfield_->UpdateContextMenu();
16 } 16 }
17 17
18 gfx::RenderText* TextfieldTestApi::GetRenderText() const { 18 gfx::RenderText* TextfieldTestApi::GetRenderText() const {
19 return textfield_->GetRenderText(); 19 return textfield_->GetRenderText();
20 } 20 }
21 21
22 void TextfieldTestApi::CreateTouchSelectionControllerAndNotifyIt() { 22 void TextfieldTestApi::CreateTouchSelectionControllerAndNotifyIt() {
23 textfield_->CreateTouchSelectionControllerAndNotifyIt(); 23 textfield_->CreateTouchSelectionControllerAndNotifyIt();
24 } 24 }
25 25
26 void TextfieldTestApi::ResetTouchSelectionController() { 26 void TextfieldTestApi::ResetTouchSelectionController() {
27 textfield_->touch_selection_controller_.reset(); 27 textfield_->touch_selection_controller_.reset();
28 } 28 }
29 29
30 base::TimeDelta TextfieldTestApi::GetPasswordRevealDuration() const {
31 return textfield_->GetPasswordRevealDuration();
32 }
33
30 } // namespace views 34 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698