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
3 * found in the LICENSE file.
6 /* From dev/ppp_text_input_dev.idl modified Thu Mar 28 10:55:30 2013. */
8 #ifndef PPAPI_C_DEV_PPP_TEXT_INPUT_DEV_H_
9 #define PPAPI_C_DEV_PPP_TEXT_INPUT_DEV_H_
11 #include "ppapi/c/pp_instance.h"
12 #include "ppapi/c/pp_macros.h"
13 #include "ppapi/c/pp_stdint.h"
15 #define PPP_TEXTINPUT_DEV_INTERFACE_0_1 "PPP_TextInput(Dev);0.1"
16 #define PPP_TEXTINPUT_DEV_INTERFACE PPP_TEXTINPUT_DEV_INTERFACE_0_1
20 * This file defines the <code>PPP_TextInput_Dev</code> interface.
25 * @addtogroup Interfaces
29 * <code>PPP_TextInput_Dev</code> is a set of function pointers that the
30 * plugin has to implement to provide hints for text input system (IME).
32 struct PPP_TextInput_Dev_0_1
{
34 * Requests the plugin to send back the text around the current caret or
35 * selection by <code>PPB_TextInput_Dev::UpdateSurroundingText</code>.
36 * It is recommended to include the <code>desired_number_of_characters</code>
37 * characters before and after the selection, but not mandatory.
39 void (*RequestSurroundingText
)(PP_Instance instance
,
40 uint32_t desired_number_of_characters
);
43 typedef struct PPP_TextInput_Dev_0_1 PPP_TextInput_Dev
;
48 #endif /* PPAPI_C_DEV_PPP_TEXT_INPUT_DEV_H_ */