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

Side by Side 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, 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_RENDERER_PEPPER_PEPPER_PRINTING_RENDERER_HOST_H_
6 #define CHROME_RENDERER_PEPPER_PEPPER_PRINTING_RENDERER_HOST_H_
7
8 #include <string>
9
10 #include "ppapi/host/resource_host.h"
11
12 struct PP_PrintPresetOptions_Dev;
13
14 namespace content {
15 class RendererPpapiHost;
16 }
17
18 namespace ppapi {
19 namespace host {
20 struct HostMessageContext;
21 }
22 }
23
24 class PepperPrintingRendererHost : public ppapi::host::ResourceHost {
25 public:
26 PepperPrintingRendererHost(content::RendererPpapiHost* host,
27 PP_Instance instance,
28 PP_Resource resource);
29 virtual ~PepperPrintingRendererHost();
30
31 virtual int32_t OnResourceMessageReceived(
32 const IPC::Message& msg,
33 ppapi::host::HostMessageContext* context) OVERRIDE;
34
35 private:
36 int32_t OnHostMsgSetPrintPresetOptionsFromDocument(
37 ppapi::host::HostMessageContext* context,
38 PP_PrintPresetOptions_Dev& print_options);
39
40 content::RendererPpapiHost* host_;
41
42 DISALLOW_COPY_AND_ASSIGN(PepperPrintingRendererHost);
43 };
44
45 #endif // CHROME_RENDERER_PEPPER_PEPPER_PRINTING_RENDERER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698