Pepper_47_C_interfaces
ppp_find_private.h
Go to the documentation of this file.
1 /* Copyright 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 private/ppp_find_private.idl modified Thu Oct 20 13:57:04 2016. */
7 
8 #ifndef PPAPI_C_PRIVATE_PPP_FIND_PRIVATE_H_
9 #define PPAPI_C_PRIVATE_PPP_FIND_PRIVATE_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_PRIVATE_INTERFACE_0_3 "PPP_Find_Private;0.3"
17 #define PPP_FIND_PRIVATE_INTERFACE PPP_FIND_PRIVATE_INTERFACE_0_3
18 
19 /**
20  * @file
21  */
22 
23 
24 /**
25  * @addtogroup Interfaces
26  * @{
27  */
29  /**
30  * Finds the given UTF-8 text starting at the current selection. The number of
31  * results will be updated asynchronously via NumberOfFindResultsChanged in
32  * PPB_Find. Note that multiple StartFind calls can happen before StopFind is
33  * called in the case of the search term changing.
34  *
35  * Return PP_FALSE if the plugin doesn't support find in page. Consequently,
36  * it won't call any callbacks.
37  */
39  const char* text,
40  PP_Bool case_sensitive);
41  /**
42  * Go to the next/previous result.
43  */
44  void (*SelectFindResult)(PP_Instance instance, PP_Bool forward);
45  /**
46  * Tells the plugin that the find operation has stopped, so it should clear
47  * any highlighting.
48  */
49  void (*StopFind)(PP_Instance instance);
50 };
51 
53 /**
54  * @}
55  */
56 
57 #endif /* PPAPI_C_PRIVATE_PPP_FIND_PRIVATE_H_ */
58 
void(* StopFind)(PP_Instance instance)
PP_Bool(* StartFind)(PP_Instance instance, const char *text, PP_Bool case_sensitive)
void(* SelectFindResult)(PP_Instance instance, PP_Bool forward)
int32_t PP_Instance
Definition: pp_instance.h:34
PP_Bool
Definition: pp_bool.h:30