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

Unified Diff: ppapi/cpp/dev/printing_dev.cc

Issue 8041052: Add IsScalingDisabled and PP_PRINTOUTPUTFORMAT_EMF to pepper printing interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 9 years, 3 months 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/printing_dev.h ('k') | ppapi/example/example.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/dev/printing_dev.cc
diff --git a/ppapi/cpp/dev/printing_dev.cc b/ppapi/cpp/dev/printing_dev.cc
index 93055e7cf631122210237141a846a4932474d15f..6c07be96ed6081ad8cee8ee5c82acdbd244bda4f 100644
--- a/ppapi/cpp/dev/printing_dev.cc
+++ b/ppapi/cpp/dev/printing_dev.cc
@@ -49,11 +49,22 @@ void End(PP_Instance instance) {
static_cast<Printing_Dev*>(object)->PrintEnd();
}
+PP_Bool IsScalingDisabled(PP_Instance instance) {
+ void* object =
+ pp::Instance::GetPerInstanceObject(instance, kPPPPrintingInterface);
+ if (!object)
+ return PP_FALSE;
+ bool return_value =
+ static_cast<Printing_Dev*>(object)->IsPrintScalingDisabled();
+ return PP_FromBool(return_value);
+}
+
const PPP_Printing_Dev ppp_printing = {
&QuerySupportedFormats,
&Begin,
&PrintPages,
- &End
+ &End,
+ &IsScalingDisabled
};
} // namespace
« no previous file with comments | « ppapi/cpp/dev/printing_dev.h ('k') | ppapi/example/example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698