OLD | NEW |
1 /* Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2014 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 /* From dev/ppp_find_dev.idl modified Wed Mar 19 14:02:22 2014. */ | 6 /* From private/ppp_find_private.idl modified Thu Mar 20 11:34:17 2014. */ |
7 | 7 |
8 #ifndef PPAPI_C_DEV_PPP_FIND_DEV_H_ | 8 #ifndef PPAPI_C_PRIVATE_PPP_FIND_PRIVATE_H_ |
9 #define PPAPI_C_DEV_PPP_FIND_DEV_H_ | 9 #define PPAPI_C_PRIVATE_PPP_FIND_PRIVATE_H_ |
10 | 10 |
11 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
12 #include "ppapi/c/pp_instance.h" | 12 #include "ppapi/c/pp_instance.h" |
13 #include "ppapi/c/pp_macros.h" | 13 #include "ppapi/c/pp_macros.h" |
14 #include "ppapi/c/pp_stdint.h" | 14 #include "ppapi/c/pp_stdint.h" |
15 | 15 |
16 #define PPP_FIND_DEV_INTERFACE_0_3 "PPP_Find(Dev);0.3" | 16 #define PPP_FIND_PRIVATE_INTERFACE_0_3 "PPP_Find_Private;0.3" |
17 #define PPP_FIND_DEV_INTERFACE PPP_FIND_DEV_INTERFACE_0_3 | 17 #define PPP_FIND_PRIVATE_INTERFACE PPP_FIND_PRIVATE_INTERFACE_0_3 |
18 | 18 |
19 /** | 19 /** |
20 * @file | 20 * @file |
21 */ | 21 */ |
22 | 22 |
23 | 23 |
24 /** | 24 /** |
25 * @addtogroup Interfaces | 25 * @addtogroup Interfaces |
26 * @{ | 26 * @{ |
27 */ | 27 */ |
28 /** | 28 struct PPP_Find_Private_0_3 { |
29 * TODO(raymes): Make PPP/PPB_Find_Dev a private interface. | |
30 */ | |
31 struct PPP_Find_Dev_0_3 { | |
32 /** | 29 /** |
33 * Finds the given UTF-8 text starting at the current selection. The number of | 30 * Finds the given UTF-8 text starting at the current selection. The number of |
34 * results will be updated asynchronously via NumberOfFindResultsChanged in | 31 * results will be updated asynchronously via NumberOfFindResultsChanged in |
35 * PPB_Find. Note that multiple StartFind calls can happen before StopFind is | 32 * PPB_Find. Note that multiple StartFind calls can happen before StopFind is |
36 * called in the case of the search term changing. | 33 * called in the case of the search term changing. |
37 * | 34 * |
38 * Return PP_FALSE if the plugin doesn't support find in page. Consequently, | 35 * Return PP_FALSE if the plugin doesn't support find in page. Consequently, |
39 * it won't call any callbacks. | 36 * it won't call any callbacks. |
40 */ | 37 */ |
41 PP_Bool (*StartFind)(PP_Instance instance, | 38 PP_Bool (*StartFind)(PP_Instance instance, |
42 const char* text, | 39 const char* text, |
43 PP_Bool case_sensitive); | 40 PP_Bool case_sensitive); |
44 /** | 41 /** |
45 * Go to the next/previous result. | 42 * Go to the next/previous result. |
46 */ | 43 */ |
47 void (*SelectFindResult)(PP_Instance instance, PP_Bool forward); | 44 void (*SelectFindResult)(PP_Instance instance, PP_Bool forward); |
48 /** | 45 /** |
49 * Tells the plugin that the find operation has stopped, so it should clear | 46 * Tells the plugin that the find operation has stopped, so it should clear |
50 * any highlighting. | 47 * any highlighting. |
51 */ | 48 */ |
52 void (*StopFind)(PP_Instance instance); | 49 void (*StopFind)(PP_Instance instance); |
53 }; | 50 }; |
54 | 51 |
55 typedef struct PPP_Find_Dev_0_3 PPP_Find_Dev; | 52 typedef struct PPP_Find_Private_0_3 PPP_Find_Private; |
56 /** | 53 /** |
57 * @} | 54 * @} |
58 */ | 55 */ |
59 | 56 |
60 #endif /* PPAPI_C_DEV_PPP_FIND_DEV_H_ */ | 57 #endif /* PPAPI_C_PRIVATE_PPP_FIND_PRIVATE_H_ */ |
61 | 58 |
OLD | NEW |