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 */ 29 struct PPB_Find_Dev_0_3 { 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 */ 36 void (*NumberOfFindResultsChanged)(PP_Instance instance, 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 45 typedef struct PPB_Find_Dev_0_3 PPB_Find_Dev; 46 /** 47 * @} 48 */ 49 50 #endif /* PPAPI_C_DEV_PPB_FIND_DEV_H_ */ 51 52