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

Unified Diff: ppapi/cpp/dev/font_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/cpp/dev/find_dev.cc ('k') | ppapi/cpp/dev/font_dev.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/dev/font_dev.h
===================================================================
--- ppapi/cpp/dev/font_dev.h (revision 65116)
+++ ppapi/cpp/dev/font_dev.h (working copy)
@@ -8,6 +8,7 @@
#include <string>
#include "ppapi/c/dev/ppb_font_dev.h"
+#include "ppapi/cpp/common.h"
#include "ppapi/cpp/resource.h"
#include "ppapi/cpp/var.h"
@@ -51,11 +52,15 @@
PP_FontWeight_Dev weight() const { return pp_font_description_.weight; }
void set_weight(PP_FontWeight_Dev w) { pp_font_description_.weight = w; }
- bool italic() const { return pp_font_description_.italic; }
- void set_italic(bool i) { pp_font_description_.italic = i; }
+ bool italic() const { return PPBoolToBool(pp_font_description_.italic); }
+ void set_italic(bool i) { pp_font_description_.italic = BoolToPPBool(i); }
- bool small_caps() const { return pp_font_description_.small_caps; }
- void set_small_caps(bool s) { pp_font_description_.small_caps = s; }
+ bool small_caps() const {
+ return PPBoolToBool(pp_font_description_.small_caps);
+ }
+ void set_small_caps(bool s) {
+ pp_font_description_.small_caps = BoolToPPBool(s);
+ }
int letter_spacing() const { return pp_font_description_.letter_spacing; }
void set_letter_spacing(int s) { pp_font_description_.letter_spacing = s; }
@@ -70,7 +75,7 @@
PP_FontDescription_Dev pp_font_description_;
};
-// TextRun_Dev ---------------------------------------------------------------------
+// TextRun_Dev -----------------------------------------------------------------
class TextRun_Dev {
public:
« no previous file with comments | « ppapi/cpp/dev/find_dev.cc ('k') | ppapi/cpp/dev/font_dev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698