OLD | NEW |
1 /* Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
4 */ | 4 */ |
5 #ifndef PPAPI_C_DEV_PPB_FIND_DEV_H_ | 5 #ifndef PPAPI_C_DEV_PPB_FIND_DEV_H_ |
6 #define PPAPI_C_DEV_PPB_FIND_DEV_H_ | 6 #define PPAPI_C_DEV_PPB_FIND_DEV_H_ |
7 | 7 |
8 #include "ppapi/c/pp_bool.h" | 8 #include "ppapi/c/pp_bool.h" |
9 #include "ppapi/c/pp_instance.h" | 9 #include "ppapi/c/pp_instance.h" |
10 #include "ppapi/c/pp_stdint.h" | 10 #include "ppapi/c/pp_stdint.h" |
11 | 11 |
12 #define PPB_FIND_DEV_INTERFACE "PPB_Find(Dev);0.3" | 12 #define PPB_FIND_DEV_INTERFACE_0_3 "PPB_Find(Dev);0.3" |
| 13 #define PPB_FIND_DEV_INTERFACE PPB_FIND_DEV_INTERFACE_0_3 |
13 | 14 |
14 struct PPB_Find_Dev { | 15 struct PPB_Find_Dev { |
15 // Updates the number of find results for the current search term. If | 16 // Updates the number of find results for the current search term. If |
16 // there are no matches 0 should be passed in. Only when the plugin has | 17 // there are no matches 0 should be passed in. Only when the plugin has |
17 // finished searching should it pass in the final count with finalResult set | 18 // finished searching should it pass in the final count with finalResult set |
18 // to PP_TRUE. | 19 // to PP_TRUE. |
19 void (*NumberOfFindResultsChanged)(PP_Instance instance, | 20 void (*NumberOfFindResultsChanged)(PP_Instance instance, |
20 int32_t total, | 21 int32_t total, |
21 PP_Bool final_result); | 22 PP_Bool final_result); |
22 | 23 |
23 // Updates the index of the currently selected search item. | 24 // Updates the index of the currently selected search item. |
24 void (*SelectedFindResultChanged)(PP_Instance instance, | 25 void (*SelectedFindResultChanged)(PP_Instance instance, |
25 int32_t index); | 26 int32_t index); |
26 | 27 |
27 }; | 28 }; |
28 | 29 |
29 #endif /* PPAPI_C_DEV_PPB_FIND_DEV_H_ */ | 30 #endif /* PPAPI_C_DEV_PPB_FIND_DEV_H_ */ |
30 | 31 |
OLD | NEW |