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 | 5 |
6 /** | 6 /** |
7 * This file defines the <code>PPP_TextInput_Dev</code> interface. | 7 * This file defines the <code>PPP_TextInput_Dev</code> interface. |
8 */ | 8 */ |
9 | 9 |
10 label Chrome { | 10 label Chrome { |
11 M19 = 0.1 | 11 M19 = 0.1 |
12 }; | 12 }; |
13 | 13 |
14 /** | 14 /** |
15 * <code>PPP_TextInput_Dev</code> is a set of function pointers that the | 15 * <code>PPP_TextInput_Dev</code> is a set of function pointers that the |
16 * plugin has to implement to provide hints for text input system (IME). | 16 * plugin has to implement to provide hints for text input system (IME). |
17 */ | 17 */ |
18 interface PPP_TextInput_Dev { | 18 interface PPP_TextInput_Dev { |
19 /** | 19 /** |
20 * Requests the plugin to send back the text arround the current caret or | 20 * Requests the plugin to send back the text around the current caret or |
21 * selection by <code>PPB_TextInput_Dev::UpdateSurroundingText</code>. | 21 * selection by <code>PPB_TextInput_Dev::UpdateSurroundingText</code>. |
22 * It is recommended to include the <code>desired_number_of_characters</code> | 22 * It is recommended to include the <code>desired_number_of_characters</code> |
23 * characters before and after the selection, but not mandatory. | 23 * characters before and after the selection, but not mandatory. |
24 */ | 24 */ |
25 void RequestSurroundingText([in] PP_Instance instance, | 25 void RequestSurroundingText([in] PP_Instance instance, |
26 [in] uint32_t desired_number_of_characters); | 26 [in] uint32_t desired_number_of_characters); |
27 }; | 27 }; |
OLD | NEW |