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

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

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 #ifndef UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_TEST_API_H_ 5 #ifndef UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_TEST_API_H_
6 #define UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_TEST_API_H_ 6 #define UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_TEST_API_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/time/time.h"
9 #include "ui/views/controls/textfield/textfield.h" 10 #include "ui/views/controls/textfield/textfield.h"
10 11
11 namespace views { 12 namespace views {
12 13
13 // Helper class to access internal state of Textfield in tests. 14 // Helper class to access internal state of Textfield in tests.
14 class TextfieldTestApi { 15 class TextfieldTestApi {
15 public: 16 public:
16 explicit TextfieldTestApi(Textfield* textfield); 17 explicit TextfieldTestApi(Textfield* textfield);
17 18
18 void UpdateContextMenu(); 19 void UpdateContextMenu();
(...skipping 11 matching lines...) Expand all
30 } 31 }
31 32
32 ui::MenuModel* context_menu_contents() const { 33 ui::MenuModel* context_menu_contents() const {
33 return textfield_->context_menu_contents_.get(); 34 return textfield_->context_menu_contents_.get();
34 } 35 }
35 36
36 ui::TouchEditingControllerDeprecated* touch_selection_controller() const { 37 ui::TouchEditingControllerDeprecated* touch_selection_controller() const {
37 return textfield_->touch_selection_controller_.get(); 38 return textfield_->touch_selection_controller_.get();
38 } 39 }
39 40
41 base::TimeDelta GetPasswordRevealDuration() const;
42
40 private: 43 private:
41 Textfield* textfield_; 44 Textfield* textfield_;
42 45
43 DISALLOW_COPY_AND_ASSIGN(TextfieldTestApi); 46 DISALLOW_COPY_AND_ASSIGN(TextfieldTestApi);
44 }; 47 };
45 48
46 } // namespace views 49 } // namespace views
47 50
48 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_TEST_API_H_ 51 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_TEST_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698