Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(669)

Side by Side Diff: ppapi/c/private/ppb_pdf.h

Issue 14040007: Revert 194966 "Revert 194964 "Added images for disabled print bu..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/pepper/ppb_pdf_impl.cc ('k') | webkit/glue/resources/webkit_resources.grd » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 PP_RESOURCEIMAGE_PDF_BUTTON_SAVE = 34, 62 PP_RESOURCEIMAGE_PDF_BUTTON_SAVE = 34,
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
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_
OLDNEW
« no previous file with comments | « chrome/renderer/pepper/ppb_pdf_impl.cc ('k') | webkit/glue/resources/webkit_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698