OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 PDF_PDF_H_ | 5 #ifndef PDF_PDF_H_ |
6 #define PDF_PDF_H_ | 6 #define PDF_PDF_H_ |
7 | 7 |
8 #include "ppapi/c/ppb.h" | 8 #include "ppapi/c/ppb.h" |
9 #include "ppapi/cpp/module.h" | 9 #include "ppapi/cpp/module.h" |
10 | 10 |
11 namespace chrome_pdf { | 11 namespace chrome_pdf { |
12 | 12 |
13 class PDFModule : public pp::Module { | 13 class PDFModule : public pp::Module { |
14 public: | 14 public: |
15 PDFModule(); | 15 PDFModule(); |
16 virtual ~PDFModule(); | 16 ~PDFModule() override; |
17 | 17 |
18 // pp::Module implementation. | 18 // pp::Module implementation. |
19 virtual bool Init(); | 19 bool Init() override; |
20 virtual pp::Instance* CreateInstance(PP_Instance instance); | 20 pp::Instance* CreateInstance(PP_Instance instance) override; |
21 }; | 21 }; |
22 | 22 |
23 int PPP_InitializeModule(PP_Module module_id, | 23 int PPP_InitializeModule(PP_Module module_id, |
24 PPB_GetInterface get_browser_interface); | 24 PPB_GetInterface get_browser_interface); |
25 void PPP_ShutdownModule(); | 25 void PPP_ShutdownModule(); |
26 const void* PPP_GetInterface(const char* interface_name); | 26 const void* PPP_GetInterface(const char* interface_name); |
27 | 27 |
28 #if defined(OS_WIN) | 28 #if defined(OS_WIN) |
29 // |pdf_buffer| is the buffer that contains the entire PDF document to be | 29 // |pdf_buffer| is the buffer that contains the entire PDF document to be |
30 // rendered. | 30 // rendered. |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 int page_number, | 104 int page_number, |
105 void* bitmap_buffer, | 105 void* bitmap_buffer, |
106 int bitmap_width, | 106 int bitmap_width, |
107 int bitmap_height, | 107 int bitmap_height, |
108 int dpi, | 108 int dpi, |
109 bool autorotate); | 109 bool autorotate); |
110 | 110 |
111 } // namespace chrome_pdf | 111 } // namespace chrome_pdf |
112 | 112 |
113 #endif // PDF_PDF_H_ | 113 #endif // PDF_PDF_H_ |
OLD | NEW |