Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_C_PRIVATE_PPB_PDF_H_ | 5 #ifndef PPAPI_C_PRIVATE_PPB_PDF_H_ |
| 6 #define PPAPI_C_PRIVATE_PPB_PDF_H_ | 6 #define PPAPI_C_PRIVATE_PPB_PDF_H_ |
| 7 | 7 |
| 8 #include "ppapi/c/dev/ppb_font_dev.h" | 8 #include "ppapi/c/dev/ppb_font_dev.h" |
| 9 #include "ppapi/c/pp_bool.h" | |
| 9 #include "ppapi/c/pp_instance.h" | 10 #include "ppapi/c/pp_instance.h" |
| 10 #include "ppapi/c/pp_resource.h" | 11 #include "ppapi/c/pp_resource.h" |
| 11 #include "ppapi/c/pp_var.h" | 12 #include "ppapi/c/pp_var.h" |
| 12 | 13 |
| 13 #define PPB_PDF_INTERFACE "PPB_PDF;1" | 14 #define PPB_PDF_INTERFACE "PPB_PDF;1" |
|
brettw
2012/07/25 17:50:37
Can you rev the version number since you changed t
Josh Horwich
2012/07/25 22:00:43
Based on offline conversation, I'll leave the vers
| |
| 14 | 15 |
| 15 // From the public PPB_Font_Dev file. | 16 // From the public PPB_Font_Dev file. |
| 16 struct PP_FontDescription_Dev; | 17 struct PP_FontDescription_Dev; |
| 17 | 18 |
| 18 typedef enum { | 19 typedef enum { |
| 19 PP_RESOURCESTRING_PDFGETPASSWORD = 0, | 20 PP_RESOURCESTRING_PDFGETPASSWORD = 0, |
| 20 PP_RESOURCESTRING_PDFLOADING = 1, | 21 PP_RESOURCESTRING_PDFLOADING = 1, |
| 21 PP_RESOURCESTRING_PDFLOAD_FAILED = 2, | 22 PP_RESOURCESTRING_PDFLOAD_FAILED = 2, |
| 22 PP_RESOURCESTRING_PDFPROGRESSLOADING = 3 | 23 PP_RESOURCESTRING_PDFPROGRESSLOADING = 3 |
| 23 } PP_ResourceString; | 24 } PP_ResourceString; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 85 PP_PRIVATEFONTCHARSET_VIETNAMESE = 163, | 86 PP_PRIVATEFONTCHARSET_VIETNAMESE = 163, |
| 86 PP_PRIVATEFONTCHARSET_HEBREW = 177, | 87 PP_PRIVATEFONTCHARSET_HEBREW = 177, |
| 87 PP_PRIVATEFONTCHARSET_ARABIC = 178, | 88 PP_PRIVATEFONTCHARSET_ARABIC = 178, |
| 88 PP_PRIVATEFONTCHARSET_BALTIC = 186, | 89 PP_PRIVATEFONTCHARSET_BALTIC = 186, |
| 89 PP_PRIVATEFONTCHARSET_RUSSIAN = 204, | 90 PP_PRIVATEFONTCHARSET_RUSSIAN = 204, |
| 90 PP_PRIVATEFONTCHARSET_THAI = 222, | 91 PP_PRIVATEFONTCHARSET_THAI = 222, |
| 91 PP_PRIVATEFONTCHARSET_EASTEUROPE = 238, | 92 PP_PRIVATEFONTCHARSET_EASTEUROPE = 238, |
| 92 PP_PRIVATEFONTCHARSET_OEM = 255 | 93 PP_PRIVATEFONTCHARSET_OEM = 255 |
| 93 } PP_PrivateFontCharset; | 94 } PP_PrivateFontCharset; |
| 94 | 95 |
| 96 typedef enum { | |
| 97 PP_PDFFEATURE_HIDPI = 0 | |
| 98 } PP_PDFFeature; | |
| 99 | |
| 95 struct PP_PrivateFontFileDescription { | 100 struct PP_PrivateFontFileDescription { |
| 96 const char* face; | 101 const char* face; |
| 97 uint32_t weight; | 102 uint32_t weight; |
| 98 bool italic; | 103 bool italic; |
| 99 }; | 104 }; |
| 100 | 105 |
| 101 struct PP_PrivateFindResult { | 106 struct PP_PrivateFindResult { |
| 102 int start_index; | 107 int start_index; |
| 103 int length; | 108 int length; |
| 104 }; | 109 }; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 155 void (*UserMetricsRecordAction)(struct PP_Var action); | 160 void (*UserMetricsRecordAction)(struct PP_Var action); |
| 156 | 161 |
| 157 // Notifies the browser that the PDF has an unsupported feature. | 162 // Notifies the browser that the PDF has an unsupported feature. |
| 158 void (*HasUnsupportedFeature)(PP_Instance instance); | 163 void (*HasUnsupportedFeature)(PP_Instance instance); |
| 159 | 164 |
| 160 // Invoke SaveAs... dialog, similar to the right-click or wrench menu. | 165 // Invoke SaveAs... dialog, similar to the right-click or wrench menu. |
| 161 void (*SaveAs)(PP_Instance instance); | 166 void (*SaveAs)(PP_Instance instance); |
| 162 | 167 |
| 163 // Invoke Print dialog for plugin. | 168 // Invoke Print dialog for plugin. |
| 164 void (*Print)(PP_Instance instance); | 169 void (*Print)(PP_Instance instance); |
| 170 | |
| 171 PP_Bool(*IsFeatureEnabled)(PP_PDFFeature feature); | |
| 165 }; | 172 }; |
| 166 | 173 |
| 167 #endif // PPAPI_C_PRIVATE_PPB_PDF_H_ | 174 #endif // PPAPI_C_PRIVATE_PPB_PDF_H_ |
| OLD | NEW |