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, | |
74 } PP_ResourceImage; | 73 } PP_ResourceImage; |
75 | 74 |
76 typedef enum { | 75 typedef enum { |
77 PP_PDFFEATURE_HIDPI = 0, | 76 PP_PDFFEATURE_HIDPI = 0, |
78 PP_PDFFEATURE_PRINTING = 1 | 77 PP_PDFFEATURE_PRINTING = 1 |
79 } PP_PDFFeature; | 78 } PP_PDFFeature; |
80 | 79 |
81 struct PP_PrivateFontFileDescription { | 80 struct PP_PrivateFontFileDescription { |
82 const char* face; | 81 const char* face; |
83 uint32_t weight; | 82 uint32_t weight; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 PP_Bool(*IsFeatureEnabled)(PP_Instance instance, PP_PDFFeature feature); | 151 PP_Bool(*IsFeatureEnabled)(PP_Instance instance, PP_PDFFeature feature); |
153 | 152 |
154 // Returns a resource image appropriate for a device with |scale| density. | 153 // Returns a resource image appropriate for a device with |scale| density. |
155 // Returns 0 (NULL resource) if there is no resource at that scale | 154 // Returns 0 (NULL resource) if there is no resource at that scale |
156 PP_Resource (*GetResourceImageForScale)(PP_Instance instance, | 155 PP_Resource (*GetResourceImageForScale)(PP_Instance instance, |
157 PP_ResourceImage image_id, | 156 PP_ResourceImage image_id, |
158 float scale); | 157 float scale); |
159 }; | 158 }; |
160 | 159 |
161 #endif // PPAPI_C_PRIVATE_PPB_PDF_H_ | 160 #endif // PPAPI_C_PRIVATE_PPB_PDF_H_ |
OLD | NEW |