OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BASE_IME_TEXT_INPUT_CLIENT_H_ | 5 #ifndef UI_BASE_IME_TEXT_INPUT_CLIENT_H_ |
6 #define UI_BASE_IME_TEXT_INPUT_CLIENT_H_ | 6 #define UI_BASE_IME_TEXT_INPUT_CLIENT_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/i18n/rtl.h" | 9 #include "base/i18n/rtl.h" |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 // Called whenever current keyboard layout or input method is changed, | 120 // Called whenever current keyboard layout or input method is changed, |
121 // especially the change of input locale and text direction. | 121 // especially the change of input locale and text direction. |
122 virtual void OnInputMethodChanged() = 0; | 122 virtual void OnInputMethodChanged() = 0; |
123 | 123 |
124 // Called whenever the user requests to change the text direction and layout | 124 // Called whenever the user requests to change the text direction and layout |
125 // alignment of the current text box. It’s for supporting ctrl-shift on | 125 // alignment of the current text box. It’s for supporting ctrl-shift on |
126 // Windows. | 126 // Windows. |
127 // Returns false if the operation is not supported. | 127 // Returns false if the operation is not supported. |
128 virtual bool ChangeTextDirectionAndLayoutAlignment( | 128 virtual bool ChangeTextDirectionAndLayoutAlignment( |
129 base::i18n::TextDirection direction) = 0; | 129 base::i18n::TextDirection direction) = 0; |
| 130 |
| 131 // Deletes the current selection plus the specified number of characters |
| 132 // before and after the selection or caret. |
| 133 virtual void ExtendSelectionAndDelete(size_t before, size_t after) = 0; |
130 }; | 134 }; |
131 | 135 |
132 } // namespace ui | 136 } // namespace ui |
133 | 137 |
134 #endif // UI_BASE_IME_TEXT_INPUT_CLIENT_H_ | 138 #endif // UI_BASE_IME_TEXT_INPUT_CLIENT_H_ |
OLD | NEW |