OLD | NEW |
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 "ui/views/controls/textfield/textfield.h" | 8 #include "ui/views/controls/textfield/textfield.h" |
9 | 9 |
10 namespace views { | 10 namespace views { |
(...skipping 10 matching lines...) Expand all Loading... |
21 void CreateTouchSelectionControllerAndNotifyIt(); | 21 void CreateTouchSelectionControllerAndNotifyIt(); |
22 | 22 |
23 void ResetTouchSelectionController(); | 23 void ResetTouchSelectionController(); |
24 | 24 |
25 TextfieldModel* model() const { return textfield_->model_.get(); } | 25 TextfieldModel* model() const { return textfield_->model_.get(); } |
26 | 26 |
27 ui::MenuModel* context_menu_contents() const { | 27 ui::MenuModel* context_menu_contents() const { |
28 return textfield_->context_menu_contents_.get(); | 28 return textfield_->context_menu_contents_.get(); |
29 } | 29 } |
30 | 30 |
31 ui::TouchSelectionController* touch_selection_controller() const { | 31 ui::TouchEditingControllerDeprecated* touch_selection_controller() const { |
32 return textfield_->touch_selection_controller_.get(); | 32 return textfield_->touch_selection_controller_.get(); |
33 } | 33 } |
34 | 34 |
35 private: | 35 private: |
36 Textfield* textfield_; | 36 Textfield* textfield_; |
37 | 37 |
38 DISALLOW_COPY_AND_ASSIGN(TextfieldTestApi); | 38 DISALLOW_COPY_AND_ASSIGN(TextfieldTestApi); |
39 }; | 39 }; |
40 | 40 |
41 } // namespace views | 41 } // namespace views |
42 | 42 |
43 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_TEST_API_H_ | 43 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_TEST_API_H_ |
OLD | NEW |