OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_CPP_PRIVATE_PDF_H_ | 5 #ifndef PPAPI_CPP_PRIVATE_PDF_H_ |
6 #define PPAPI_CPP_PRIVATE_PDF_H_ | 6 #define PPAPI_CPP_PRIVATE_PDF_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "ppapi/c/private/ppb_pdf.h" | 10 #include "ppapi/c/private/ppb_pdf.h" |
11 | 11 |
12 struct PP_BrowserFont_Trusted_Description; | 12 struct PP_BrowserFont_Trusted_Description; |
13 | 13 |
14 namespace pp { | 14 namespace pp { |
15 | 15 |
16 class ImageData; | 16 class ImageData; |
17 class InstanceHandle; | 17 class InstanceHandle; |
18 class Var; | 18 class Var; |
19 | 19 |
20 class PDF { | 20 class PDF { |
21 public: | 21 public: |
22 // Returns true if the required interface is available. | 22 // Returns true if the required interface is available. |
23 static bool IsAvailable(); | 23 static bool IsAvailable(); |
24 | 24 |
25 static Var GetLocalizedString(const InstanceHandle& instance, | |
26 PP_ResourceString string_id); | |
27 static PP_Resource GetFontFileWithFallback( | 25 static PP_Resource GetFontFileWithFallback( |
28 const InstanceHandle& instance, | 26 const InstanceHandle& instance, |
29 const PP_BrowserFont_Trusted_Description* description, | 27 const PP_BrowserFont_Trusted_Description* description, |
30 PP_PrivateFontCharset charset); | 28 PP_PrivateFontCharset charset); |
31 static bool GetFontTableForPrivateFontFile(PP_Resource font_file, | 29 static bool GetFontTableForPrivateFontFile(PP_Resource font_file, |
32 uint32_t table, | 30 uint32_t table, |
33 void* output, | 31 void* output, |
34 uint32_t* output_length); | 32 uint32_t* output_length); |
35 static void SearchString(const InstanceHandle& instance, | 33 static void SearchString(const InstanceHandle& instance, |
36 const unsigned short* string, | 34 const unsigned short* string, |
(...skipping 19 matching lines...) Expand all Loading... |
56 static void GetV8ExternalSnapshotData(const InstanceHandle& instance, | 54 static void GetV8ExternalSnapshotData(const InstanceHandle& instance, |
57 const char** natives_data_out, | 55 const char** natives_data_out, |
58 int* natives_size_out, | 56 int* natives_size_out, |
59 const char** snapshot_data_out, | 57 const char** snapshot_data_out, |
60 int* snapshot_size_out); | 58 int* snapshot_size_out); |
61 }; | 59 }; |
62 | 60 |
63 } // namespace pp | 61 } // namespace pp |
64 | 62 |
65 #endif // PPAPI_CPP_PRIVATE_PDF_H_ | 63 #endif // PPAPI_CPP_PRIVATE_PDF_H_ |
OLD | NEW |