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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 size_t text_length); | 35 size_t text_length); |
36 #endif | 36 #endif |
37 | 37 |
38 namespace pp { | 38 namespace pp { |
39 class InputEvent; | 39 class InputEvent; |
40 class VarDictionary; | 40 class VarDictionary; |
41 } | 41 } |
42 | 42 |
43 namespace chrome_pdf { | 43 namespace chrome_pdf { |
44 | 44 |
45 class Stream; | |
46 | |
47 // Do one time initialization of the SDK. | 45 // Do one time initialization of the SDK. |
48 bool InitializeSDK(); | 46 bool InitializeSDK(); |
49 // Tells the SDK that we're shutting down. | 47 // Tells the SDK that we're shutting down. |
50 void ShutdownSDK(); | 48 void ShutdownSDK(); |
51 | 49 |
52 // This class encapsulates a PDF rendering engine. | 50 // This class encapsulates a PDF rendering engine. |
53 class PDFEngine { | 51 class PDFEngine { |
54 public: | 52 public: |
55 enum DocumentPermission { | 53 enum DocumentPermission { |
56 PERMISSION_COPY, | 54 PERMISSION_COPY, |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, | 360 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, |
363 int pdf_buffer_size, | 361 int pdf_buffer_size, |
364 int page_number, | 362 int page_number, |
365 double* width, | 363 double* width, |
366 double* height) = 0; | 364 double* height) = 0; |
367 }; | 365 }; |
368 | 366 |
369 } // namespace chrome_pdf | 367 } // namespace chrome_pdf |
370 | 368 |
371 #endif // PDF_PDF_ENGINE_H_ | 369 #endif // PDF_PDF_ENGINE_H_ |
OLD | NEW |