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

Unified Diff: content/renderer/pepper/pepper_in_process_resource_creation.cc

Issue 10826026: Add a printing resource (as a new style resource) to fetch the default print settings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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 | « content/renderer/pepper/pepper_in_process_resource_creation.h ('k') | ppapi/api/dev/ppb_printing_dev.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/pepper_in_process_resource_creation.cc
diff --git a/content/renderer/pepper/pepper_in_process_resource_creation.cc b/content/renderer/pepper/pepper_in_process_resource_creation.cc
index 64880db91a740f4a1db3608746c6245db22ff5c5..580c2aef9f8ec8b1d7a74d67c67bafa331f57a0a 100644
--- a/content/renderer/pepper/pepper_in_process_resource_creation.cc
+++ b/content/renderer/pepper/pepper_in_process_resource_creation.cc
@@ -15,6 +15,7 @@
#include "ppapi/host/ppapi_host.h"
#include "ppapi/proxy/file_chooser_resource.h"
#include "ppapi/proxy/ppapi_messages.h"
+#include "ppapi/proxy/printing_resource.h"
#include "ppapi/shared_impl/ppapi_globals.h"
#include "ppapi/shared_impl/ppapi_permissions.h"
#include "ppapi/shared_impl/resource_tracker.h"
@@ -47,4 +48,11 @@ PP_Resource PepperInProcessResourceCreation::CreateFileChooser(
instance, mode, accept_types))->GetReference();
}
+PP_Resource PepperInProcessResourceCreation::CreatePrinting(
+ PP_Instance instance) {
+ return (new ppapi::proxy::PrintingResource(
+ host_impl_->in_process_router()->GetPluginConnection(),
+ instance))->GetReference();
+}
+
} // namespace content
« no previous file with comments | « content/renderer/pepper/pepper_in_process_resource_creation.h ('k') | ppapi/api/dev/ppb_printing_dev.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698