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

Unified Diff: chrome/renderer/pepper/pepper_printing_renderer_host.h

Issue 375253002: [Chrome] Support NumCopies print preset (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: PPB_Printing_Dev changes Created 6 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
Index: chrome/renderer/pepper/pepper_printing_renderer_host.h
diff --git a/chrome/renderer/pepper/pepper_printing_renderer_host.h b/chrome/renderer/pepper/pepper_printing_renderer_host.h
new file mode 100644
index 0000000000000000000000000000000000000000..7ff7e24bb23880c80549a801949dcfecf092b134
--- /dev/null
+++ b/chrome/renderer/pepper/pepper_printing_renderer_host.h
@@ -0,0 +1,45 @@
+// Copyright (c) 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_RENDERER_PEPPER_PEPPER_PRINTING_RENDERER_HOST_H_
+#define CHROME_RENDERER_PEPPER_PEPPER_PRINTING_RENDERER_HOST_H_
+
+#include <string>
+
+#include "ppapi/host/resource_host.h"
+
+struct PP_PrintPresetOptions_Dev;
+
+namespace content {
+class RendererPpapiHost;
+}
+
+namespace ppapi {
+namespace host {
+struct HostMessageContext;
+}
+}
+
+class PepperPrintingRendererHost : public ppapi::host::ResourceHost {
+ public:
+ PepperPrintingRendererHost(content::RendererPpapiHost* host,
+ PP_Instance instance,
+ PP_Resource resource);
+ virtual ~PepperPrintingRendererHost();
+
+ virtual int32_t OnResourceMessageReceived(
+ const IPC::Message& msg,
+ ppapi::host::HostMessageContext* context) OVERRIDE;
+
+ private:
+ int32_t OnHostMsgSetPrintPresetOptionsFromDocument(
+ ppapi::host::HostMessageContext* context,
+ PP_PrintPresetOptions_Dev& print_options);
+
+ content::RendererPpapiHost* host_;
+
+ DISALLOW_COPY_AND_ASSIGN(PepperPrintingRendererHost);
+};
+
+#endif // CHROME_RENDERER_PEPPER_PEPPER_PRINTING_RENDERER_HOST_H_

Powered by Google App Engine
This is Rietveld 408576698