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

Side by Side Diff: ppapi/proxy/ppp_pdf_proxy.h

Issue 375253002: [Chrome] Support NumCopies print preset (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 1 month 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
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | ppapi/proxy/ppp_pdf_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PPAPI_PROXY_PPP_PDF_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPP_PDF_PROXY_H_
6 #define PPAPI_PROXY_PPP_PDF_PROXY_H_ 6 #define PPAPI_PROXY_PPP_PDF_PROXY_H_
7 7
8 #include "ppapi/c/private/ppp_pdf.h" 8 #include "ppapi/c/private/ppp_pdf.h"
9 #include "ppapi/proxy/interface_proxy.h" 9 #include "ppapi/proxy/interface_proxy.h"
10 10
11 namespace ppapi { 11 namespace ppapi {
12 12
13 namespace proxy { 13 namespace proxy {
14 14
15 class PPP_Pdf_Proxy : public InterfaceProxy { 15 class PPP_Pdf_Proxy : public InterfaceProxy {
16 public: 16 public:
17 PPP_Pdf_Proxy(Dispatcher* dispatcher); 17 PPP_Pdf_Proxy(Dispatcher* dispatcher);
18 virtual ~PPP_Pdf_Proxy(); 18 virtual ~PPP_Pdf_Proxy();
19 19
20 static const PPP_Pdf* GetProxyInterface(); 20 static const PPP_Pdf* GetProxyInterface();
21 21
22 // InterfaceProxy implementation. 22 // InterfaceProxy implementation.
23 virtual bool OnMessageReceived(const IPC::Message& msg); 23 virtual bool OnMessageReceived(const IPC::Message& msg);
24 24
25 private: 25 private:
26 // Message handlers. 26 // Message handlers.
27 void OnPluginMsgRotate(PP_Instance instance, bool clockwise); 27 void OnPluginMsgRotate(PP_Instance instance, bool clockwise);
28 void OnPluginMsgPrintPresetOptions(PP_Instance instance,
29 PP_PdfPrintPresetOptions_Dev* options,
30 PP_Bool* result);
28 31
29 // When this proxy is in the plugin side, this value caches the interface 32 // When this proxy is in the plugin side, this value caches the interface
30 // pointer so we don't have to retrieve it from the dispatcher each time. 33 // pointer so we don't have to retrieve it from the dispatcher each time.
31 // In the host, this value is always NULL. 34 // In the host, this value is always NULL.
32 const PPP_Pdf* ppp_pdf_; 35 const PPP_Pdf* ppp_pdf_;
33 36
34 DISALLOW_COPY_AND_ASSIGN(PPP_Pdf_Proxy); 37 DISALLOW_COPY_AND_ASSIGN(PPP_Pdf_Proxy);
35 }; 38 };
36 39
37 } // namespace proxy 40 } // namespace proxy
38 } // namespace ppapi 41 } // namespace ppapi
39 42
40 #endif // PPAPI_PROXY_PPP_PDF_PROXY_H_ 43 #endif // PPAPI_PROXY_PPP_PDF_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | ppapi/proxy/ppp_pdf_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698