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

Unified Diff: webkit/glue/plugins/pepper_cursor_control.cc

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 | « webkit/glue/plugins/pepper_common.h ('k') | webkit/glue/plugins/pepper_directory_reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/plugins/pepper_cursor_control.cc
===================================================================
--- webkit/glue/plugins/pepper_cursor_control.cc (revision 65116)
+++ webkit/glue/plugins/pepper_cursor_control.cc (working copy)
@@ -10,6 +10,7 @@
#include "ppapi/c/dev/ppb_cursor_control_dev.h"
#include "ppapi/c/pp_point.h"
#include "ppapi/c/pp_resource.h"
+#include "webkit/glue/plugins/pepper_common.h"
#include "webkit/glue/plugins/pepper_image_data.h"
#include "webkit/glue/plugins/pepper_plugin_instance.h"
#include "webkit/glue/plugins/pepper_resource.h"
@@ -18,59 +19,59 @@
namespace {
-bool SetCursor(PP_Instance instance_id,
+PP_Bool SetCursor(PP_Instance instance_id,
PP_CursorType_Dev type,
PP_Resource custom_image_id,
const PP_Point* hot_spot) {
PluginInstance* instance = ResourceTracker::Get()->GetInstance(instance_id);
if (!instance)
- return false;
+ return PP_FALSE;
scoped_refptr<ImageData> custom_image(
Resource::GetAs<ImageData>(custom_image_id));
if (custom_image.get()) {
// TODO(neb): implement custom cursors.
NOTIMPLEMENTED();
- return false;
+ return PP_FALSE;
}
- return instance->SetCursor(type);
+ return BoolToPPBool(instance->SetCursor(type));
}
-bool LockCursor(PP_Instance instance_id) {
+PP_Bool LockCursor(PP_Instance instance_id) {
PluginInstance* instance = ResourceTracker::Get()->GetInstance(instance_id);
if (!instance)
- return false;
+ return PP_FALSE;
// TODO(neb): implement cursor locking.
- return false;
+ return PP_FALSE;
}
-bool UnlockCursor(PP_Instance instance_id) {
+PP_Bool UnlockCursor(PP_Instance instance_id) {
PluginInstance* instance = ResourceTracker::Get()->GetInstance(instance_id);
if (!instance)
- return false;
+ return PP_FALSE;
// TODO(neb): implement cursor locking.
- return false;
+ return PP_FALSE;
}
-bool HasCursorLock(PP_Instance instance_id) {
+PP_Bool HasCursorLock(PP_Instance instance_id) {
PluginInstance* instance = ResourceTracker::Get()->GetInstance(instance_id);
if (!instance)
- return false;
+ return PP_FALSE;
// TODO(neb): implement cursor locking.
- return false;
+ return PP_FALSE;
}
-bool CanLockCursor(PP_Instance instance_id) {
+PP_Bool CanLockCursor(PP_Instance instance_id) {
PluginInstance* instance = ResourceTracker::Get()->GetInstance(instance_id);
if (!instance)
- return false;
+ return PP_FALSE;
// TODO(neb): implement cursor locking.
- return false;
+ return PP_FALSE;
}
const PPB_CursorControl_Dev cursor_control_interface = {
« no previous file with comments | « webkit/glue/plugins/pepper_common.h ('k') | webkit/glue/plugins/pepper_directory_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698