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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "ppapi/c/private/ppb_pdf.h" | 12 #include "ppapi/c/private/ppb_pdf.h" |
13 | 13 |
14 struct PP_BrowserFont_Trusted_Description; | 14 struct PP_BrowserFont_Trusted_Description; |
15 | 15 |
16 namespace pp { | 16 namespace pp { |
17 | 17 |
18 class ImageData; | |
19 class InstanceHandle; | 18 class InstanceHandle; |
20 class Var; | 19 class Var; |
21 | 20 |
22 class PDF { | 21 class PDF { |
23 public: | 22 public: |
24 // Returns true if the required interface is available. | 23 // Returns true if the required interface is available. |
25 static bool IsAvailable(); | 24 static bool IsAvailable(); |
26 | 25 |
27 static PP_Resource GetFontFileWithFallback( | 26 static PP_Resource GetFontFileWithFallback( |
28 const InstanceHandle& instance, | 27 const InstanceHandle& instance, |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 PP_PrivateAccessibilityTextRunInfo text_runs[], | 69 PP_PrivateAccessibilityTextRunInfo text_runs[], |
71 PP_PrivateAccessibilityCharInfo chars[]); | 70 PP_PrivateAccessibilityCharInfo chars[]); |
72 static void SetCrashData(const InstanceHandle& instance, | 71 static void SetCrashData(const InstanceHandle& instance, |
73 const char* pdf_url, | 72 const char* pdf_url, |
74 const char* top_level_url); | 73 const char* top_level_url); |
75 }; | 74 }; |
76 | 75 |
77 } // namespace pp | 76 } // namespace pp |
78 | 77 |
79 #endif // PPAPI_CPP_PRIVATE_PDF_H_ | 78 #endif // PPAPI_CPP_PRIVATE_PDF_H_ |
OLD | NEW |