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

Unified Diff: ppapi/example/example.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.cc ('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/example/example.cc
diff --git a/ppapi/example/example.cc b/ppapi/example/example.cc
index 1eec31789c7e9a541ca98a926b66b40edd40e04c..0caceff6a97d8a5caa3a16b66cddd0f64425980d 100644
--- a/ppapi/example/example.cc
+++ b/ppapi/example/example.cc
@@ -328,16 +328,8 @@ int gettimeofday(struct timeval *tv, struct timezone*) {
}
// Print interfaces.
- // TODO(mball,dmichael) Replace this with the PPP_PRINTING_DEV_USE_0_4 version
- virtual PP_PrintOutputFormat_Dev* QuerySupportedPrintOutputFormats(
- uint32_t* format_count) {
- pp::Memory_Dev memory;
- PP_PrintOutputFormat_Dev* format =
- static_cast<PP_PrintOutputFormat_Dev*>(
- memory.MemAlloc(sizeof(PP_PrintOutputFormat_Dev)));
- *format = PP_PRINTOUTPUTFORMAT_RASTER;
- *format_count = 1;
- return format;
+ virtual uint32_t QuerySupportedPrintOutputFormats() {
+ return PP_PRINTOUTPUTFORMAT_RASTER;
}
virtual int32_t PrintBegin(const PP_PrintSettings_Dev& print_settings) {
@@ -378,6 +370,10 @@ int gettimeofday(struct timeval *tv, struct timezone*) {
print_settings_valid_ = false;
}
+ virtual bool IsScalingDisabled() {
+ return false;
+ }
+
void OnFlush() {
if (animation_counter_ % kStepsPerCircle == 0)
UpdateFps();
« no previous file with comments | « ppapi/cpp/dev/printing_dev.cc ('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