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

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

Issue 10544085: Added PPB function to return default print settings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 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
Index: ppapi/cpp/dev/printing_dev.h
diff --git a/ppapi/cpp/dev/printing_dev.h b/ppapi/cpp/dev/printing_dev.h
index 734015f4d3d72b1fce816c59c000135dfd4ff998..608d41924e0f3991fad56eeff3e31808b80e4b1f 100644
--- a/ppapi/cpp/dev/printing_dev.h
+++ b/ppapi/cpp/dev/printing_dev.h
@@ -30,6 +30,12 @@ class Printing_Dev {
virtual void PrintEnd() = 0;
virtual bool IsPrintScalingDisabled() = 0;
+ // PPB_Printing_Dev functions.
+ // Outputs the default print settings for the default printer into
+ // |print_settings|. Returns false on error.
+ static bool GetDefaultPrintSettings(const InstanceHandle& instance,
yzshen1 2012/06/12 23:14:34 Can it be a non-static method of this class?
raymes 2012/06/13 18:23:46 Done.
+ PP_PrintSettings_Dev* print_settings);
+
private:
InstanceHandle associated_instance_;
};

Powered by Google App Engine
This is Rietveld 408576698