| OLD | NEW |
| 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 "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "ppapi/c/private/ppp_pdf.h" | 9 #include "ppapi/c/private/ppp_pdf.h" |
| 10 #include "ppapi/proxy/interface_proxy.h" | 10 #include "ppapi/proxy/interface_proxy.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 // InterfaceProxy implementation. | 23 // InterfaceProxy implementation. |
| 24 virtual bool OnMessageReceived(const IPC::Message& msg); | 24 virtual bool OnMessageReceived(const IPC::Message& msg); |
| 25 | 25 |
| 26 private: | 26 private: |
| 27 // Message handlers. | 27 // Message handlers. |
| 28 void OnPluginMsgRotate(PP_Instance instance, bool clockwise); | 28 void OnPluginMsgRotate(PP_Instance instance, bool clockwise); |
| 29 void OnPluginMsgPrintPresetOptions(PP_Instance instance, | 29 void OnPluginMsgPrintPresetOptions(PP_Instance instance, |
| 30 PP_PdfPrintPresetOptions_Dev* options, | 30 PP_PdfPrintPresetOptions_Dev* options, |
| 31 PP_Bool* result); | 31 PP_Bool* result); |
| 32 void OnPluginMsgEnableAccessibility(PP_Instance instance); |
| 32 | 33 |
| 33 // When this proxy is in the plugin side, this value caches the interface | 34 // When this proxy is in the plugin side, this value caches the interface |
| 34 // pointer so we don't have to retrieve it from the dispatcher each time. | 35 // pointer so we don't have to retrieve it from the dispatcher each time. |
| 35 // In the host, this value is always NULL. | 36 // In the host, this value is always NULL. |
| 36 const PPP_Pdf* ppp_pdf_; | 37 const PPP_Pdf* ppp_pdf_; |
| 37 | 38 |
| 38 DISALLOW_COPY_AND_ASSIGN(PPP_Pdf_Proxy); | 39 DISALLOW_COPY_AND_ASSIGN(PPP_Pdf_Proxy); |
| 39 }; | 40 }; |
| 40 | 41 |
| 41 } // namespace proxy | 42 } // namespace proxy |
| 42 } // namespace ppapi | 43 } // namespace ppapi |
| 43 | 44 |
| 44 #endif // PPAPI_PROXY_PPP_PDF_PROXY_H_ | 45 #endif // PPAPI_PROXY_PPP_PDF_PROXY_H_ |
| OLD | NEW |