• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
4  */
5 
6 /* From dev/ppp_text_input_dev.idl modified Thu Mar 28 10:55:30 2013. */
7 
8 #ifndef PPAPI_C_DEV_PPP_TEXT_INPUT_DEV_H_
9 #define PPAPI_C_DEV_PPP_TEXT_INPUT_DEV_H_
10 
11 #include "ppapi/c/pp_instance.h"
12 #include "ppapi/c/pp_macros.h"
13 #include "ppapi/c/pp_stdint.h"
14 
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
17 
18 /**
19  * @file
20  * This file defines the <code>PPP_TextInput_Dev</code> interface.
21  */
22 
23 
24 /**
25  * @addtogroup Interfaces
26  * @{
27  */
28 /**
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).
31  */
32 struct PPP_TextInput_Dev_0_1 {
33   /**
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.
38    */
39   void (*RequestSurroundingText)(PP_Instance instance,
40                                  uint32_t desired_number_of_characters);
41 };
42 
43 typedef struct PPP_TextInput_Dev_0_1 PPP_TextInput_Dev;
44 /**
45  * @}
46  */
47 
48 #endif  /* PPAPI_C_DEV_PPP_TEXT_INPUT_DEV_H_ */
49 
50