- add sources.
[platform/framework/web/crosswalk.git] / src / ppapi / c / dev / ppp_scrollbar_dev.h
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/ppp_scrollbar_dev.idl modified Tue Nov 27 14:46:25 2012. */
7
8 #ifndef PPAPI_C_DEV_PPP_SCROLLBAR_DEV_H_
9 #define PPAPI_C_DEV_PPP_SCROLLBAR_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_resource.h"
15 #include "ppapi/c/pp_stdint.h"
16
17 #define PPP_SCROLLBAR_DEV_INTERFACE_0_2 "PPP_Scrollbar(Dev);0.2"
18 #define PPP_SCROLLBAR_DEV_INTERFACE_0_3 "PPP_Scrollbar(Dev);0.3"
19 #define PPP_SCROLLBAR_DEV_INTERFACE PPP_SCROLLBAR_DEV_INTERFACE_0_3
20
21 /**
22  * @file
23  * This file defines the <code>PPP_Scrollbar_Dev</code> interface.
24  */
25
26
27 /**
28  * @addtogroup Interfaces
29  * @{
30  */
31 struct PPP_Scrollbar_Dev_0_3 {
32   /**
33    *  Informs the instance that the scrollbar's value has changed.
34    */
35   void (*ValueChanged)(PP_Instance instance,
36                        PP_Resource scrollbar,
37                        uint32_t value);
38   /**
39    * Informs the instance that the user has changed the system
40    * scrollbar style.
41    */
42   void (*OverlayChanged)(PP_Instance instance,
43                          PP_Resource scrollbar,
44                          PP_Bool overlay);
45 };
46
47 typedef struct PPP_Scrollbar_Dev_0_3 PPP_Scrollbar_Dev;
48
49 struct PPP_Scrollbar_Dev_0_2 {
50   void (*ValueChanged)(PP_Instance instance,
51                        PP_Resource scrollbar,
52                        uint32_t value);
53 };
54 /**
55  * @}
56  */
57
58 #endif  /* PPAPI_C_DEV_PPP_SCROLLBAR_DEV_H_ */
59