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