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.
6 /* From dev/ppp_widget_dev.idl modified Wed Oct 5 14:06:02 2011. */
8 #ifndef PPAPI_C_DEV_PPP_WIDGET_DEV_H_
9 #define PPAPI_C_DEV_PPP_WIDGET_DEV_H_
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"
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
24 * Implementation of the Widget interface.
29 * @addtogroup Interfaces
33 * The interface for reusing browser widgets.
35 struct PPP_Widget_Dev_0_2
{
37 * Informs the instance that the given rectangle needs to be repainted.
39 void (*Invalidate
)(PP_Instance instance
,
41 const struct PP_Rect
* dirty_rect
);
44 typedef struct PPP_Widget_Dev_0_2 PPP_Widget_Dev
;
49 #endif /* PPAPI_C_DEV_PPP_WIDGET_DEV_H_ */