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_bool.h" |
10 #include "ppapi/c/pp_instance.h" | 10 #include "ppapi/c/pp_instance.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 PP_RESOURCEIMAGE_PDF_BUTTON_SAVE_HOVER = 35, | 63 PP_RESOURCEIMAGE_PDF_BUTTON_SAVE_HOVER = 35, |
64 PP_RESOURCEIMAGE_PDF_BUTTON_SAVE_PRESSED = 36, | 64 PP_RESOURCEIMAGE_PDF_BUTTON_SAVE_PRESSED = 36, |
65 PP_RESOURCEIMAGE_PDF_BUTTON_PRINT = 37, | 65 PP_RESOURCEIMAGE_PDF_BUTTON_PRINT = 37, |
66 PP_RESOURCEIMAGE_PDF_BUTTON_PRINT_HOVER = 38, | 66 PP_RESOURCEIMAGE_PDF_BUTTON_PRINT_HOVER = 38, |
67 PP_RESOURCEIMAGE_PDF_BUTTON_PRINT_PRESSED = 39, | 67 PP_RESOURCEIMAGE_PDF_BUTTON_PRINT_PRESSED = 39, |
68 PP_RESOURCEIMAGE_PDF_BUTTON_ZOOMIN_END = 40, | 68 PP_RESOURCEIMAGE_PDF_BUTTON_ZOOMIN_END = 40, |
69 PP_RESOURCEIMAGE_PDF_BUTTON_ZOOMIN_END_HOVER = 41, | 69 PP_RESOURCEIMAGE_PDF_BUTTON_ZOOMIN_END_HOVER = 41, |
70 PP_RESOURCEIMAGE_PDF_BUTTON_ZOOMIN_END_PRESSED = 42, | 70 PP_RESOURCEIMAGE_PDF_BUTTON_ZOOMIN_END_PRESSED = 42, |
71 PP_RESOURCEIMAGE_PDF_PAN_SCROLL_ICON = 43, | 71 PP_RESOURCEIMAGE_PDF_PAN_SCROLL_ICON = 43, |
72 PP_RESOURCEIMAGE_PDF_PAGE_INDICATOR_BACKGROUND = 44 | 72 PP_RESOURCEIMAGE_PDF_PAGE_INDICATOR_BACKGROUND = 44 |
| 73 PP_RESOURCEIMAGE_PDF_BUTTON_PRINT_DISABLED = 45, |
73 } PP_ResourceImage; | 74 } PP_ResourceImage; |
74 | 75 |
75 typedef enum { | 76 typedef enum { |
76 PP_PDFFEATURE_HIDPI = 0, | 77 PP_PDFFEATURE_HIDPI = 0, |
77 PP_PDFFEATURE_PRINTING = 1 | 78 PP_PDFFEATURE_PRINTING = 1 |
78 } PP_PDFFeature; | 79 } PP_PDFFeature; |
79 | 80 |
80 struct PP_PrivateFontFileDescription { | 81 struct PP_PrivateFontFileDescription { |
81 const char* face; | 82 const char* face; |
82 uint32_t weight; | 83 uint32_t weight; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 PP_Bool(*IsFeatureEnabled)(PP_Instance instance, PP_PDFFeature feature); | 152 PP_Bool(*IsFeatureEnabled)(PP_Instance instance, PP_PDFFeature feature); |
152 | 153 |
153 // Returns a resource image appropriate for a device with |scale| density. | 154 // Returns a resource image appropriate for a device with |scale| density. |
154 // Returns 0 (NULL resource) if there is no resource at that scale | 155 // Returns 0 (NULL resource) if there is no resource at that scale |
155 PP_Resource (*GetResourceImageForScale)(PP_Instance instance, | 156 PP_Resource (*GetResourceImageForScale)(PP_Instance instance, |
156 PP_ResourceImage image_id, | 157 PP_ResourceImage image_id, |
157 float scale); | 158 float scale); |
158 }; | 159 }; |
159 | 160 |
160 #endif // PPAPI_C_PRIVATE_PPB_PDF_H_ | 161 #endif // PPAPI_C_PRIVATE_PPB_PDF_H_ |
OLD | NEW |