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

Side by Side Diff: pdf/pdf_engine.h

Issue 803733002: Roll PDFium (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 | « pdf/pdf.cc ('k') | pdf/pdfium/pdfium_engine.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 (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
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
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_
OLDNEW
« no previous file with comments | « pdf/pdf.cc ('k') | pdf/pdfium/pdfium_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698