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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 // Notifies the browser that the PDF has an unsupported feature. | 162 // Notifies the browser that the PDF has an unsupported feature. |
163 void (*HasUnsupportedFeature)(PP_Instance instance); | 163 void (*HasUnsupportedFeature)(PP_Instance instance); |
164 | 164 |
165 // Invoke SaveAs... dialog, similar to the right-click or wrench menu. | 165 // Invoke SaveAs... dialog, similar to the right-click or wrench menu. |
166 void (*SaveAs)(PP_Instance instance); | 166 void (*SaveAs)(PP_Instance instance); |
167 | 167 |
168 // Invoke Print dialog for plugin. | 168 // Invoke Print dialog for plugin. |
169 void (*Print)(PP_Instance instance); | 169 void (*Print)(PP_Instance instance); |
170 | 170 |
171 PP_Bool(*IsFeatureEnabled)(PP_PDFFeature feature); | 171 PP_Bool(*IsFeatureEnabled)(PP_PDFFeature feature); |
| 172 |
| 173 // Returns a resource image appropriate for a device with |scale| density. |
| 174 // Returns 0 (NULL resource) if there is no resource at that scale |
| 175 PP_Resource (*GetResourceImageForScale)(PP_Instance instance, |
| 176 PP_ResourceImage image_id, |
| 177 float scale); |
172 }; | 178 }; |
173 | 179 |
174 #endif // PPAPI_C_PRIVATE_PPB_PDF_H_ | 180 #endif // PPAPI_C_PRIVATE_PPB_PDF_H_ |
OLD | NEW |