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.
6 /* From dev/ppb_find_dev.idl modified Wed Oct 5 14:06:02 2011. */
8 #ifndef PPAPI_C_DEV_PPB_FIND_DEV_H_
9 #define PPAPI_C_DEV_PPB_FIND_DEV_H_
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"
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
21 * This file defines the <code>PPB_Find_Dev</code> interface.
26 * @addtogroup Interfaces
29 struct PPB_Find_Dev_0_3 {
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
36 void (*NumberOfFindResultsChanged)(PP_Instance instance,
38 PP_Bool final_result);
40 * Updates the index of the currently selected search item.
42 void (*SelectedFindResultChanged)(PP_Instance instance, int32_t index);
45 typedef struct PPB_Find_Dev_0_3 PPB_Find_Dev;
50 #endif /* PPAPI_C_DEV_PPB_FIND_DEV_H_ */