OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_ENGINE_H_ | 5 #ifndef PDF_PDF_ENGINE_H_ |
6 #define PDF_PDF_ENGINE_H_ | 6 #define PDF_PDF_ENGINE_H_ |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
(...skipping 23 matching lines...) Expand all Loading... |
34 namespace chrome_pdf { | 34 namespace chrome_pdf { |
35 | 35 |
36 class Stream; | 36 class Stream; |
37 | 37 |
38 #if defined(OS_MACOSX) | 38 #if defined(OS_MACOSX) |
39 const uint32 kDefaultKeyModifier = PP_INPUTEVENT_MODIFIER_METAKEY; | 39 const uint32 kDefaultKeyModifier = PP_INPUTEVENT_MODIFIER_METAKEY; |
40 #else // !OS_MACOSX | 40 #else // !OS_MACOSX |
41 const uint32 kDefaultKeyModifier = PP_INPUTEVENT_MODIFIER_CONTROLKEY; | 41 const uint32 kDefaultKeyModifier = PP_INPUTEVENT_MODIFIER_CONTROLKEY; |
42 #endif // OS_MACOSX | 42 #endif // OS_MACOSX |
43 | 43 |
44 // Do one time initialization of the SDK. data is platform specific, on Windows | 44 // Do one time initialization of the SDK. |
45 // it's the instance of the DLL and it's unused on other platforms. | 45 bool InitializeSDK(); |
46 bool InitializeSDK(void* data); | |
47 // Tells the SDK that we're shutting down. | 46 // Tells the SDK that we're shutting down. |
48 void ShutdownSDK(); | 47 void ShutdownSDK(); |
49 | 48 |
50 // This class encapsulates a PDF rendering engine. | 49 // This class encapsulates a PDF rendering engine. |
51 class PDFEngine { | 50 class PDFEngine { |
52 public: | 51 public: |
53 | 52 |
54 enum DocumentPermission { | 53 enum DocumentPermission { |
55 PERMISSION_COPY, | 54 PERMISSION_COPY, |
56 PERMISSION_COPY_ACCESSIBLE, | 55 PERMISSION_COPY_ACCESSIBLE, |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 | 314 |
316 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. | 315 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. |
317 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, | 316 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, |
318 int pdf_buffer_size, int page_number, | 317 int pdf_buffer_size, int page_number, |
319 double* width, double* height) = 0; | 318 double* width, double* height) = 0; |
320 }; | 319 }; |
321 | 320 |
322 } // namespace chrome_pdf | 321 } // namespace chrome_pdf |
323 | 322 |
324 #endif // PDF_PDF_ENGINE_H_ | 323 #endif // PDF_PDF_ENGINE_H_ |
OLD | NEW |