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

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

Issue 7718004: ppapi: Make 0.4 the default for PPP_Printing_Dev, leave backwards-compat (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporate NaCl proxy changes Created 9 years, 4 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/native_client/src/shared/ppapi_proxy/browser_ppp_printing.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 cf1d3183a5859108bedd804777b7f645cddc11b8..93055e7cf631122210237141a846a4932474d15f 100644
--- a/ppapi/cpp/dev/printing_dev.cc
+++ b/ppapi/cpp/dev/printing_dev.cc
@@ -14,7 +14,6 @@ namespace {
static const char kPPPPrintingInterface[] = PPP_PRINTING_DEV_INTERFACE;
-#ifdef PPP_PRINTING_DEV_USE_0_4
uint32_t QuerySupportedFormats(PP_Instance instance) {
void* object =
pp::Instance::GetPerInstanceObject(instance, kPPPPrintingInterface);
@@ -22,17 +21,6 @@ uint32_t QuerySupportedFormats(PP_Instance instance) {
return 0;
return static_cast<Printing_Dev*>(object)->QuerySupportedPrintOutputFormats();
}
-#else
-PP_PrintOutputFormat_Dev* QuerySupportedFormats(PP_Instance instance,
- uint32_t* format_count) {
- void* object =
- pp::Instance::GetPerInstanceObject(instance, kPPPPrintingInterface);
- if (!object)
- return NULL;
- return static_cast<Printing_Dev*>(object)->QuerySupportedPrintOutputFormats(
- format_count);
-}
-#endif
int32_t Begin(PP_Instance instance,
const struct PP_PrintSettings_Dev* print_settings) {
« no previous file with comments | « ppapi/cpp/dev/printing_dev.h ('k') | ppapi/native_client/src/shared/ppapi_proxy/browser_ppp_printing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698