OLD | NEW |
1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2011 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 | 5 |
6 /* From dev/ppb_scrollbar_dev.idl modified Tue Oct 4 08:53:30 2011. */ | 6 /* From dev/ppb_scrollbar_dev.idl modified Wed Oct 5 14:06:02 2011. */ |
7 | 7 |
8 #ifndef PPAPI_C_DEV_PPB_SCROLLBAR_DEV_H_ | 8 #ifndef PPAPI_C_DEV_PPB_SCROLLBAR_DEV_H_ |
9 #define PPAPI_C_DEV_PPB_SCROLLBAR_DEV_H_ | 9 #define PPAPI_C_DEV_PPB_SCROLLBAR_DEV_H_ |
10 | 10 |
11 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
12 #include "ppapi/c/pp_instance.h" | 12 #include "ppapi/c/pp_instance.h" |
13 #include "ppapi/c/pp_macros.h" | 13 #include "ppapi/c/pp_macros.h" |
14 #include "ppapi/c/pp_point.h" | 14 #include "ppapi/c/pp_point.h" |
15 #include "ppapi/c/pp_rect.h" | 15 #include "ppapi/c/pp_rect.h" |
16 #include "ppapi/c/pp_resource.h" | 16 #include "ppapi/c/pp_resource.h" |
(...skipping 25 matching lines...) Loading... |
42 */ | 42 */ |
43 | 43 |
44 /** | 44 /** |
45 * @addtogroup Interfaces | 45 * @addtogroup Interfaces |
46 * @{ | 46 * @{ |
47 */ | 47 */ |
48 /** | 48 /** |
49 * The interface for a scrollbar. A scrollbar is a widget, so the functions | 49 * The interface for a scrollbar. A scrollbar is a widget, so the functions |
50 * in PPB_Widget can also be used with scrollbar objects. | 50 * in PPB_Widget can also be used with scrollbar objects. |
51 */ | 51 */ |
52 struct PPB_Scrollbar_Dev { | 52 struct PPB_Scrollbar_Dev_0_5 { |
53 /** | 53 /** |
54 * Create a new scrollbar. Returns 0 if the instance is invalid. | 54 * Create a new scrollbar. Returns 0 if the instance is invalid. |
55 */ | 55 */ |
56 PP_Resource (*Create)(PP_Instance instance, PP_Bool vertical); | 56 PP_Resource (*Create)(PP_Instance instance, PP_Bool vertical); |
57 /** | 57 /** |
58 * Returns PP_TRUE if the given resource is a Scrollbar. Returns PP_FALSE if | 58 * Returns PP_TRUE if the given resource is a Scrollbar. Returns PP_FALSE if |
59 * the resource is invalid or some type other than a scrollbar. | 59 * the resource is invalid or some type other than a scrollbar. |
60 */ | 60 */ |
61 PP_Bool (*IsScrollbar)(PP_Resource resource); | 61 PP_Bool (*IsScrollbar)(PP_Resource resource); |
62 /** | 62 /** |
(...skipping 26 matching lines...) Loading... |
89 uint32_t count); | 89 uint32_t count); |
90 /** | 90 /** |
91 * Scroll by "multiplier" pixels/lines/pages units. Positive values are | 91 * Scroll by "multiplier" pixels/lines/pages units. Positive values are |
92 * forward and negative are backward. If "unit" is document then any positive | 92 * forward and negative are backward. If "unit" is document then any positive |
93 * value goes to the end while any negative value goes to the beginning. | 93 * value goes to the end while any negative value goes to the beginning. |
94 */ | 94 */ |
95 void (*ScrollBy)(PP_Resource scrollbar, | 95 void (*ScrollBy)(PP_Resource scrollbar, |
96 PP_ScrollBy_Dev unit, | 96 PP_ScrollBy_Dev unit, |
97 int32_t multiplier); | 97 int32_t multiplier); |
98 }; | 98 }; |
| 99 |
| 100 typedef struct PPB_Scrollbar_Dev_0_5 PPB_Scrollbar_Dev; |
99 /** | 101 /** |
100 * @} | 102 * @} |
101 */ | 103 */ |
102 | 104 |
103 #endif /* PPAPI_C_DEV_PPB_SCROLLBAR_DEV_H_ */ | 105 #endif /* PPAPI_C_DEV_PPB_SCROLLBAR_DEV_H_ */ |
104 | 106 |
OLD | NEW |