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_instance.h" | 9 #include "ppapi/c/pp_instance.h" |
9 #include "ppapi/c/pp_stdint.h" | 10 #include "ppapi/c/pp_stdint.h" |
10 | 11 |
11 #define PPB_FIND_DEV_INTERFACE "PPB_Find(Dev);0.1" | 12 #define PPB_FIND_DEV_INTERFACE "PPB_Find(Dev);0.2" |
12 | 13 |
13 struct PPB_Find_Dev { | 14 struct PPB_Find_Dev { |
14 // Updates the number of find results for the current search term. If | 15 // Updates the number of find results for the current search term. If |
15 // there are no matches 0 should be passed in. Only when the plugin has | 16 // there are no matches 0 should be passed in. Only when the plugin has |
16 // finished searching should it pass in the final count with finalResult set | 17 // finished searching should it pass in the final count with finalResult set |
17 // to true. | 18 // to PP_TRUE. |
18 void (*NumberOfFindResultsChanged)(PP_Instance instance, | 19 void (*NumberOfFindResultsChanged)(PP_Instance instance, |
19 int32_t total, | 20 int32_t total, |
20 bool final_result); | 21 PP_Bool final_result); |
21 | 22 |
22 // Updates the index of the currently selected search item. | 23 // Updates the index of the currently selected search item. |
23 void (*SelectedFindResultChanged)(PP_Instance instance, | 24 void (*SelectedFindResultChanged)(PP_Instance instance, |
24 int32_t index); | 25 int32_t index); |
25 | 26 |
26 }; | 27 }; |
27 | 28 |
28 #endif // PPAPI_C_DEV_PPB_FIND_DEV_H_ | 29 #endif // PPAPI_C_DEV_PPB_FIND_DEV_H_ |
OLD | NEW |