Pepper_31_C_interfaces
ppb_find_dev.h
Go to the documentation of this file.
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/ppb_find_dev.idl modified Wed Oct 5 14:06:02 2011. */
7 
8 #ifndef PPAPI_C_DEV_PPB_FIND_DEV_H_
9 #define PPAPI_C_DEV_PPB_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 PPB_FIND_DEV_INTERFACE_0_3 "PPB_Find(Dev);0.3"
17 #define PPB_FIND_DEV_INTERFACE PPB_FIND_DEV_INTERFACE_0_3
18 
19 /**
20  * @file
21  * This file defines the <code>PPB_Find_Dev</code> interface.
22  */
23 
24 
25 /**
26  * @addtogroup Interfaces
27  * @{
28  */
30  /**
31  * Updates the number of find results for the current search term. If
32  * there are no matches 0 should be passed in. Only when the plugin has
33  * finished searching should it pass in the final count with final_result set
34  * to PP_TRUE.
35  */
37  int32_t total,
38  PP_Bool final_result);
39  /**
40  * Updates the index of the currently selected search item.
41  */
42  void (*SelectedFindResultChanged)(PP_Instance instance, int32_t index);
43 };
44 
46 /**
47  * @}
48  */
49 
50 #endif /* PPAPI_C_DEV_PPB_FIND_DEV_H_ */
51 
void(* SelectedFindResultChanged)(PP_Instance instance, int32_t index)
Definition: ppb_find_dev.h:42
void(* NumberOfFindResultsChanged)(PP_Instance instance, int32_t total, PP_Bool final_result)
Definition: ppb_find_dev.h:36
int32_t PP_Instance
Definition: pp_instance.h:34
PP_Bool
Definition: pp_bool.h:30