summaryrefslogtreecommitdiffstats
path: root/ppapi/cpp
diff options
context:
space:
mode:
authorviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-08 17:13:10 +0000
committerviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-08 17:13:10 +0000
commitc89aa57784e7c1be60e7068d8c467354a8ed90ed (patch)
treea3a02b63ccfa420717c6971775e3d498ae572a8c /ppapi/cpp
parent02712874c2d623d1dd41c0b3350b769d2855b9f2 (diff)
downloadchromium_src-c89aa57784e7c1be60e7068d8c467354a8ed90ed.zip
chromium_src-c89aa57784e7c1be60e7068d8c467354a8ed90ed.tar.gz
chromium_src-c89aa57784e7c1be60e7068d8c467354a8ed90ed.tar.bz2
Pepper (Flash): Make pp::flash::Flash::InvokePrinting() return a bool.
Review URL: https://chromiumcodereview.appspot.com/10332006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135857 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/cpp')
-rw-r--r--ppapi/cpp/private/flash.cc4
-rw-r--r--ppapi/cpp/private/flash.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/ppapi/cpp/private/flash.cc b/ppapi/cpp/private/flash.cc
index 0c9f26c..6fa4ded 100644
--- a/ppapi/cpp/private/flash.cc
+++ b/ppapi/cpp/private/flash.cc
@@ -251,11 +251,13 @@ void Flash::SetAllowSuddenTermination(const InstanceHandle& instance,
}
// static
-void Flash::InvokePrinting(const InstanceHandle& instance) {
+bool Flash::InvokePrinting(const InstanceHandle& instance) {
if (has_interface<PPB_Flash_Print_1_0>()) {
get_interface<PPB_Flash_Print_1_0>()->InvokePrinting(
instance.pp_instance());
+ return true;
}
+ return false;
}
} // namespace flash
diff --git a/ppapi/cpp/private/flash.h b/ppapi/cpp/private/flash.h
index fbc7964..d14dbfe 100644
--- a/ppapi/cpp/private/flash.h
+++ b/ppapi/cpp/private/flash.h
@@ -63,7 +63,7 @@ class Flash {
static void SetAllowSuddenTermination(const InstanceHandle& instance,
bool allowed);
// PPB_Flash_Print.
- static void InvokePrinting(const InstanceHandle& instance);
+ static bool InvokePrinting(const InstanceHandle& instance);
};
} // namespace flash