From c89aa57784e7c1be60e7068d8c467354a8ed90ed Mon Sep 17 00:00:00 2001 From: "viettrungluu@chromium.org" Date: Tue, 8 May 2012 17:13:10 +0000 Subject: [PATCH] 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 --- ppapi/cpp/private/flash.cc | 4 +++- ppapi/cpp/private/flash.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ppapi/cpp/private/flash.cc b/ppapi/cpp/private/flash.cc index 0c9f26c61911..6fa4ded3ea5e 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()) { get_interface()->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 fbc796407193..d14dbfe3c267 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 -- 2.11.4.GIT