| OLD | NEW | 
|---|
|  | (Empty) | 
| 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 Thu Mar 13 11:05:53 2014. */ |  | 
| 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 /* TODO(raymes): Make PPP/PPB_Find_Dev a private interface. It's only used by |  | 
| 30  * PDF currently and it's restrictive in the way it can be used. */ |  | 
| 31 struct PPB_Find_Dev_0_3 { |  | 
| 32   /** |  | 
| 33    * Sets the instance of this plugin as the mechanism that will be used to |  | 
| 34    * handle find requests in the renderer. This will only succeed if the plugin |  | 
| 35    * is embedded within the content of the top level frame. Note that this will |  | 
| 36    * result in the renderer handing over all responsibility for doing find to |  | 
| 37    * the plugin and content from the rest of the page will not be searched. |  | 
| 38    * |  | 
| 39    * |  | 
| 40    * In the case that the plugin is loaded directly as the top level document, |  | 
| 41    * this function does not need to be called. In that case the plugin is |  | 
| 42    * assumed to handle find requests. |  | 
| 43    * |  | 
| 44    * There can only be one plugin which handles find requests. If a plugin calls |  | 
| 45    * this while an existing plugin is registered, the existing plugin will be |  | 
| 46    * de-registered and will no longer receive any requests. |  | 
| 47    */ |  | 
| 48   void (*SetPluginToHandleFindRequests)(PP_Instance instance); |  | 
| 49   /** |  | 
| 50    * Updates the number of find results for the current search term.  If |  | 
| 51    * there are no matches 0 should be passed in.  Only when the plugin has |  | 
| 52    * finished searching should it pass in the final count with final_result set |  | 
| 53    * to PP_TRUE. |  | 
| 54    */ |  | 
| 55   void (*NumberOfFindResultsChanged)(PP_Instance instance, |  | 
| 56                                      int32_t total, |  | 
| 57                                      PP_Bool final_result); |  | 
| 58   /** |  | 
| 59    * Updates the index of the currently selected search item. |  | 
| 60    */ |  | 
| 61   void (*SelectedFindResultChanged)(PP_Instance instance, int32_t index); |  | 
| 62 }; |  | 
| 63 |  | 
| 64 typedef struct PPB_Find_Dev_0_3 PPB_Find_Dev; |  | 
| 65 /** |  | 
| 66  * @} |  | 
| 67  */ |  | 
| 68 |  | 
| 69 #endif  /* PPAPI_C_DEV_PPB_FIND_DEV_H_ */ |  | 
| 70 |  | 
| OLD | NEW | 
|---|