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

Unified Diff: ppapi/proxy/interface_proxy.h

Issue 4659001: Convert Chrome PPAPI proxy from bool to PP_Bool. (Closed) Base URL: svn://chrome-svn/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 | « no previous file | ppapi/proxy/ppapi_messages.h » ('j') | ppapi/proxy/ppb_core_proxy.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/interface_proxy.h
===================================================================
--- ppapi/proxy/interface_proxy.h (revision 65343)
+++ ppapi/proxy/interface_proxy.h (working copy)
@@ -70,6 +70,14 @@
const void* target_interface_;
};
+inline PP_Bool BoolToPPBool(bool value) {
+ return value ? PP_TRUE : PP_FALSE;
+}
+
+inline bool PPBoolToBool(PP_Bool value) {
+ return (PP_TRUE == value);
+}
dmichael(do not use this one) 2010/11/08 15:31:19 Is there a reason you can't or shouldn't use ppapi
brettw 2010/11/08 15:51:02 The proxy layer is actually totally separate from
dmichael(do not use this one) 2010/11/08 16:11:51 That makes sense. That being the case, I'm not su
+
} // namespace proxy
} // namespace pp
« no previous file with comments | « no previous file | ppapi/proxy/ppapi_messages.h » ('j') | ppapi/proxy/ppb_core_proxy.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698