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

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

Issue 10795051: Implement asynchronous interface/plumbing for GetDefaultPrintSettings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 5 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 eb20e563641f039bebad9f100661b71afd9d29fa..e5654dfad276d6bf26d75ade95035210dfd58320 100644
--- a/ppapi/cpp/dev/printing_dev.h
+++ b/ppapi/cpp/dev/printing_dev.h
@@ -11,6 +11,7 @@
namespace pp {
+class CompletionCallback;
class Instance;
// You would typically use this either via inheritance on your instance or
@@ -35,10 +36,16 @@ class Printing_Dev {
// interface.
static bool IsAvailable();
- // Outputs the default print settings for the default printer into
- // |print_settings|. Returns false on error.
+ // TODO(raymes): This is deprecated in PPB_Printing_Dev 0.7. Remove this
+ // once Flash has been modified not to use this function.
bool GetDefaultPrintSettings(PP_PrintSettings_Dev* print_settings) const;
+ // Outputs the default print settings for the default printer into
+ // |print_settings|. The completion callback is called when the settings are
+ // ready to be used.
+ int32_t GetDefaultPrintSettings(PP_PrintSettings_Dev* print_settings,
+ const CompletionCallback& callback) const;
+
private:
InstanceHandle associated_instance_;
};

Powered by Google App Engine
This is Rietveld 408576698