- add sources.
[platform/framework/web/crosswalk.git] / src / ppapi / c / dev / ppp_widget_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_widget_dev.idl modified Wed Oct  5 14:06:02 2011. */
7
8 #ifndef PPAPI_C_DEV_PPP_WIDGET_DEV_H_
9 #define PPAPI_C_DEV_PPP_WIDGET_DEV_H_
10
11 #include "ppapi/c/pp_instance.h"
12 #include "ppapi/c/pp_macros.h"
13 #include "ppapi/c/pp_point.h"
14 #include "ppapi/c/pp_rect.h"
15 #include "ppapi/c/pp_resource.h"
16 #include "ppapi/c/pp_size.h"
17 #include "ppapi/c/pp_stdint.h"
18
19 #define PPP_WIDGET_DEV_INTERFACE_0_2 "PPP_Widget(Dev);0.2"
20 #define PPP_WIDGET_DEV_INTERFACE PPP_WIDGET_DEV_INTERFACE_0_2
21
22 /**
23  * @file
24  * Implementation of the Widget interface.
25  */
26
27
28 /**
29  * @addtogroup Interfaces
30  * @{
31  */
32 /**
33  * The interface for reusing browser widgets.
34  */
35 struct PPP_Widget_Dev_0_2 {
36   /**
37    * Informs the instance that the given rectangle needs to be repainted.
38    */
39   void (*Invalidate)(PP_Instance instance,
40                      PP_Resource widget,
41                      const struct PP_Rect* dirty_rect);
42 };
43
44 typedef struct PPP_Widget_Dev_0_2 PPP_Widget_Dev;
45 /**
46  * @}
47  */
48
49 #endif  /* PPAPI_C_DEV_PPP_WIDGET_DEV_H_ */
50