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

Unified Diff: ppapi/cpp/instance.cc

Issue 7237039: Remove PPBoolToBool and BoolToPPBool and use PP_FromBool and PP_ToBool instead. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 months 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
Index: ppapi/cpp/instance.cc
===================================================================
--- ppapi/cpp/instance.cc (revision 91773)
+++ ppapi/cpp/instance.cc (working copy)
@@ -8,7 +8,6 @@
#include "ppapi/c/ppb_input_event.h"
#include "ppapi/c/ppb_instance.h"
#include "ppapi/c/ppb_messaging.h"
-#include "ppapi/cpp/common.h"
#include "ppapi/cpp/dev/surface_3d_dev.h"
#include "ppapi/cpp/graphics_2d.h"
#include "ppapi/cpp/image_data.h"
@@ -113,22 +112,21 @@
bool Instance::BindGraphics(const Graphics2D& graphics) {
if (!has_interface<PPB_Instance>())
return false;
- return PPBoolToBool(get_interface<PPB_Instance>()->BindGraphics(
+ return PP_ToBool(get_interface<PPB_Instance>()->BindGraphics(
pp_instance(), graphics.pp_resource()));
}
bool Instance::BindGraphics(const Surface3D_Dev& graphics) {
if (!has_interface<PPB_Instance>())
return false;
- return PPBoolToBool(get_interface<PPB_Instance>()->BindGraphics(
+ return PP_ToBool(get_interface<PPB_Instance>()->BindGraphics(
pp_instance(), graphics.pp_resource()));
}
bool Instance::IsFullFrame() {
if (!has_interface<PPB_Instance>())
return false;
- return PPBoolToBool(get_interface<PPB_Instance>()->IsFullFrame(
- pp_instance()));
+ return PP_ToBool(get_interface<PPB_Instance>()->IsFullFrame(pp_instance()));
}
int32_t Instance::RequestInputEvents(uint32_t event_classes) {
« ppapi/cpp/dev/font_dev.h ('K') | « ppapi/cpp/input_event.cc ('k') | ppapi/cpp/module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698