OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WRAPPER_H_ | 5 #ifndef VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WRAPPER_H_ |
6 #define VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WRAPPER_H_ | 6 #define VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WRAPPER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/string16.h" | 9 #include "base/string16.h" |
10 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 virtual TextStyle* CreateTextStyle() = 0; | 131 virtual TextStyle* CreateTextStyle() = 0; |
132 | 132 |
133 // Applies the |style| to the text specified by the |range|. | 133 // Applies the |style| to the text specified by the |range|. |
134 // See |Textfield::ApplyTextStyle| for detail. | 134 // See |Textfield::ApplyTextStyle| for detail. |
135 virtual void ApplyTextStyle(const TextStyle* style, | 135 virtual void ApplyTextStyle(const TextStyle* style, |
136 const ui::Range& range) = 0; | 136 const ui::Range& range) = 0; |
137 | 137 |
138 // Clears all text styles in this textfield. | 138 // Clears all text styles in this textfield. |
139 virtual void ClearAllTextStyles() = 0; | 139 virtual void ClearAllTextStyles() = 0; |
140 | 140 |
| 141 // Clears Edit history. |
| 142 virtual void ClearEditHistory() = 0; |
| 143 |
141 // Creates an appropriate NativeTextfieldWrapper for the platform. | 144 // Creates an appropriate NativeTextfieldWrapper for the platform. |
142 static NativeTextfieldWrapper* CreateWrapper(Textfield* field); | 145 static NativeTextfieldWrapper* CreateWrapper(Textfield* field); |
143 }; | 146 }; |
144 | 147 |
145 } // namespace views | 148 } // namespace views |
146 | 149 |
147 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WRAPPER_H_ | 150 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WRAPPER_H_ |
OLD | NEW |