summaryrefslogtreecommitdiffstats
path: root/ppapi/cpp
diff options
context:
space:
mode:
authorviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-12 17:19:11 +0000
committerviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-12 17:19:11 +0000
commite502ca7292258786830b484d1d4f4904c244a798 (patch)
treea5e24178ffffe088b79ee88819875fa11a81ae13 /ppapi/cpp
parentdcba9b06f7c331a5dcb1b37544d4bafe00fa8976 (diff)
downloadchromium_src-e502ca7292258786830b484d1d4f4904c244a798.zip
chromium_src-e502ca7292258786830b484d1d4f4904c244a798.tar.gz
chromium_src-e502ca7292258786830b484d1d4f4904c244a798.tar.bz2
PPAPI/Flapper: Add default constructor for pp::flash::FontFile.
Review URL: https://codereview.chromium.org/11090077 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161606 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/cpp')
-rw-r--r--ppapi/cpp/private/flash_font_file.cc5
-rw-r--r--ppapi/cpp/private/flash_font_file.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/ppapi/cpp/private/flash_font_file.cc b/ppapi/cpp/private/flash_font_file.cc
index 284761b..8400d8f 100644
--- a/ppapi/cpp/private/flash_font_file.cc
+++ b/ppapi/cpp/private/flash_font_file.cc
@@ -28,9 +28,12 @@ template <> const char* interface_name<PPB_Flash_FontFile_0_1>() {
namespace flash {
+FontFile::FontFile() {
+}
+
FontFile::FontFile(const InstanceHandle& instance,
const PP_FontDescription_Dev* description,
- PP_PrivateFontCharset charset) : Resource() {
+ PP_PrivateFontCharset charset) {
if (has_interface<PPB_Flash_FontFile_0_1>()) {
PassRefFromConstructor(get_interface<PPB_Flash_FontFile_0_1>()->Create(
instance.pp_instance(), description, charset));
diff --git a/ppapi/cpp/private/flash_font_file.h b/ppapi/cpp/private/flash_font_file.h
index 034c2fc..8b61986 100644
--- a/ppapi/cpp/private/flash_font_file.h
+++ b/ppapi/cpp/private/flash_font_file.h
@@ -18,6 +18,8 @@ namespace flash {
class FontFile : public Resource {
public:
+ // Default constructor for making an is_null() FontFile resource.
+ FontFile();
FontFile(const InstanceHandle& instance,
const PP_FontDescription_Dev* description,
PP_PrivateFontCharset charset);