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 "base/macros.h" | 8 #include "base/macros.h" |
9 #include "ui/views/controls/textfield/textfield.h" | 9 #include "ui/views/controls/textfield/textfield.h" |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... |
34 } | 34 } |
35 | 35 |
36 ui::TouchEditingControllerDeprecated* touch_selection_controller() const { | 36 ui::TouchEditingControllerDeprecated* touch_selection_controller() const { |
37 return textfield_->touch_selection_controller_.get(); | 37 return textfield_->touch_selection_controller_.get(); |
38 } | 38 } |
39 | 39 |
40 ui::TextEditCommand scheduled_text_edit_command() const { | 40 ui::TextEditCommand scheduled_text_edit_command() const { |
41 return textfield_->scheduled_text_edit_command_; | 41 return textfield_->scheduled_text_edit_command_; |
42 } | 42 } |
43 | 43 |
| 44 ViewsTextServicesContextMenu* text_services_context_menu() const { |
| 45 return textfield_->text_services_context_menu_.get(); |
| 46 } |
| 47 |
44 bool IsCursorBlinkTimerRunning() const { | 48 bool IsCursorBlinkTimerRunning() const { |
45 return textfield_->cursor_blink_timer_.IsRunning(); | 49 return textfield_->cursor_blink_timer_.IsRunning(); |
46 } | 50 } |
47 | 51 |
48 private: | 52 private: |
49 Textfield* textfield_; | 53 Textfield* textfield_; |
50 | 54 |
51 DISALLOW_COPY_AND_ASSIGN(TextfieldTestApi); | 55 DISALLOW_COPY_AND_ASSIGN(TextfieldTestApi); |
52 }; | 56 }; |
53 | 57 |
54 } // namespace views | 58 } // namespace views |
55 | 59 |
56 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_TEST_API_H_ | 60 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_TEST_API_H_ |
OLD | NEW |