Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(177)

Unified Diff: ppapi/c/dev/ppb_widget_dev.h

Issue 4310002: Make PPAPI headers compile with C compilers (gcc on Linux & Mac and MSVS on W... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/c/dev/ppb_video_decoder_dev.h ('k') | ppapi/c/dev/ppp_class_deprecated.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/c/dev/ppb_widget_dev.h
===================================================================
--- ppapi/c/dev/ppb_widget_dev.h (revision 65116)
+++ ppapi/c/dev/ppb_widget_dev.h (working copy)
@@ -5,32 +5,34 @@
#ifndef PPAPI_C_DEV_PPB_WIDGET_DEV_H_
#define PPAPI_C_DEV_PPB_WIDGET_DEV_H_
+#include "ppapi/c/pp_bool.h"
#include "ppapi/c/pp_resource.h"
struct PP_Rect;
struct PP_InputEvent;
-#define PPB_WIDGET_DEV_INTERFACE "PPB_Widget(Dev);0.1"
+#define PPB_WIDGET_DEV_INTERFACE "PPB_Widget(Dev);0.2"
// The interface for reusing browser widgets.
struct PPB_Widget_Dev {
- // Returns true if the given resource is a Widget. Returns false if the
+ // Returns PP_TRUE if the given resource is a Widget. Returns PP_FALSE if the
// resource is invalid or some type other than an Widget.
- bool (*IsWidget)(PP_Resource resource);
+ PP_Bool (*IsWidget)(PP_Resource resource);
// Paint the given rectangle of the widget into the given image.
- // Returns true on success, false on failure
- bool (*Paint)(PP_Resource widget,
- const struct PP_Rect* rect,
- PP_Resource image);
+ // Returns PP_TRUE on success, PP_FALSE on failure
+ PP_Bool (*Paint)(PP_Resource widget,
+ const struct PP_Rect* rect,
+ PP_Resource image);
- // Pass in an event to a widget. It'll return true if the event was consumed.
- bool (*HandleEvent)(PP_Resource widget,
- const struct PP_InputEvent* event);
+ // Pass in an event to a widget. It'll return PP_TRUE if the event was
+ // consumed.
+ PP_Bool (*HandleEvent)(PP_Resource widget,
+ const struct PP_InputEvent* event);
// Get/set the location of the widget.
- bool (*GetLocation)(PP_Resource widget,
- struct PP_Rect* location);
+ PP_Bool (*GetLocation)(PP_Resource widget,
+ struct PP_Rect* location);
void (*SetLocation)(PP_Resource widget,
const struct PP_Rect* location);
« no previous file with comments | « ppapi/c/dev/ppb_video_decoder_dev.h ('k') | ppapi/c/dev/ppp_class_deprecated.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698