Pepper_31_C_interfaces
ppp_find_dev.h
Go to the documentation of this file.
1 /* Copyright (c) 2010 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 #ifndef PPAPI_C_DEV_PPP_FIND_DEV_H_
6 #define PPAPI_C_DEV_PPP_FIND_DEV_H_
7 
8 #include "ppapi/c/pp_bool.h"
9 #include "ppapi/c/pp_instance.h"
10 
11 #define PPP_FIND_DEV_INTERFACE "PPP_Find(Dev);0.3"
12 
13 struct PPP_Find_Dev {
14  // Finds the given UTF-8 text starting at the current selection. The number of
15  // results will be updated asynchronously via NumberOfFindResultsChanged in
16  // PPB_Find. Note that multiple StartFind calls can happen before StopFind is
17  // called in the case of the search term changing.
18  //
19  // Return PP_FALSE if the plugin doesn't support find in page. Consequently,
20  // it won't call any callbacks.
22  const char* text,
23  PP_Bool case_sensitive);
24 
25  // Go to the next/previous result.
26  void (*SelectFindResult)(PP_Instance instance,
27  PP_Bool forward);
28 
29  // Tells the plugin that the find operation has stopped, so it should clear
30  // any highlighting.
31  void (*StopFind)(PP_Instance instance);
32 };
33 
34 #endif /* PPAPI_C_DEV_PPP_FIND_DEV_H_ */
35 
void(* SelectFindResult)(PP_Instance instance, PP_Bool forward)
Definition: ppp_find_dev.h:26
PP_Bool(* StartFind)(PP_Instance instance, const char *text, PP_Bool case_sensitive)
Definition: ppp_find_dev.h:21
void(* StopFind)(PP_Instance instance)
Definition: ppp_find_dev.h:31
int32_t PP_Instance
Definition: pp_instance.h:34
PP_Bool
Definition: pp_bool.h:30