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

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

Issue 10905227: Introduce PPB_Flash_Font. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 2 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 | « ppapi/c/private/ppb_flash_font_file.h ('k') | ppapi/cpp/private/flash_font_file.h » ('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"
11 #include "ppapi/c/pp_resource.h" 11 #include "ppapi/c/pp_resource.h"
12 #include "ppapi/c/pp_var.h" 12 #include "ppapi/c/pp_var.h"
13 #include "ppapi/c/private/pp_private_font_charset.h"
13 14
14 #define PPB_PDF_INTERFACE "PPB_PDF;1" 15 #define PPB_PDF_INTERFACE "PPB_PDF;1"
15 16
16 // From the public PPB_Font_Dev file. 17 // From the public PPB_Font_Dev file.
17 struct PP_FontDescription_Dev; 18 struct PP_FontDescription_Dev;
18 19
19 typedef enum { 20 typedef enum {
20 PP_RESOURCESTRING_PDFGETPASSWORD = 0, 21 PP_RESOURCESTRING_PDFGETPASSWORD = 0,
21 PP_RESOURCESTRING_PDFLOADING = 1, 22 PP_RESOURCESTRING_PDFLOADING = 1,
22 PP_RESOURCESTRING_PDFLOAD_FAILED = 2, 23 PP_RESOURCESTRING_PDFLOAD_FAILED = 2,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 PP_RESOURCEIMAGE_PDF_BUTTON_PRINT_HOVER = 38, 66 PP_RESOURCEIMAGE_PDF_BUTTON_PRINT_HOVER = 38,
66 PP_RESOURCEIMAGE_PDF_BUTTON_PRINT_PRESSED = 39, 67 PP_RESOURCEIMAGE_PDF_BUTTON_PRINT_PRESSED = 39,
67 PP_RESOURCEIMAGE_PDF_BUTTON_ZOOMIN_END = 40, 68 PP_RESOURCEIMAGE_PDF_BUTTON_ZOOMIN_END = 40,
68 PP_RESOURCEIMAGE_PDF_BUTTON_ZOOMIN_END_HOVER = 41, 69 PP_RESOURCEIMAGE_PDF_BUTTON_ZOOMIN_END_HOVER = 41,
69 PP_RESOURCEIMAGE_PDF_BUTTON_ZOOMIN_END_PRESSED = 42, 70 PP_RESOURCEIMAGE_PDF_BUTTON_ZOOMIN_END_PRESSED = 42,
70 PP_RESOURCEIMAGE_PDF_PAN_SCROLL_ICON = 43, 71 PP_RESOURCEIMAGE_PDF_PAN_SCROLL_ICON = 43,
71 PP_RESOURCEIMAGE_PDF_PAGE_INDICATOR_BACKGROUND = 44 72 PP_RESOURCEIMAGE_PDF_PAGE_INDICATOR_BACKGROUND = 44
72 } PP_ResourceImage; 73 } PP_ResourceImage;
73 74
74 typedef enum { 75 typedef enum {
75 PP_PRIVATEFONTCHARSET_ANSI = 0,
76 PP_PRIVATEFONTCHARSET_DEFAULT = 1,
77 PP_PRIVATEFONTCHARSET_SYMBOL = 2,
78 PP_PRIVATEFONTCHARSET_MAC = 77,
79 PP_PRIVATEFONTCHARSET_SHIFTJIS = 128,
80 PP_PRIVATEFONTCHARSET_HANGUL = 129,
81 PP_PRIVATEFONTCHARSET_JOHAB = 130,
82 PP_PRIVATEFONTCHARSET_GB2312 =134,
83 PP_PRIVATEFONTCHARSET_CHINESEBIG5 = 136,
84 PP_PRIVATEFONTCHARSET_GREEK = 161,
85 PP_PRIVATEFONTCHARSET_TURKISH = 162,
86 PP_PRIVATEFONTCHARSET_VIETNAMESE = 163,
87 PP_PRIVATEFONTCHARSET_HEBREW = 177,
88 PP_PRIVATEFONTCHARSET_ARABIC = 178,
89 PP_PRIVATEFONTCHARSET_BALTIC = 186,
90 PP_PRIVATEFONTCHARSET_RUSSIAN = 204,
91 PP_PRIVATEFONTCHARSET_THAI = 222,
92 PP_PRIVATEFONTCHARSET_EASTEUROPE = 238,
93 PP_PRIVATEFONTCHARSET_OEM = 255
94 } PP_PrivateFontCharset;
95
96 typedef enum {
97 PP_PDFFEATURE_HIDPI = 0 76 PP_PDFFEATURE_HIDPI = 0
98 } PP_PDFFeature; 77 } PP_PDFFeature;
99 78
100 struct PP_PrivateFontFileDescription { 79 struct PP_PrivateFontFileDescription {
101 const char* face; 80 const char* face;
102 uint32_t weight; 81 uint32_t weight;
103 bool italic; 82 bool italic;
104 }; 83 };
105 84
106 struct PP_PrivateFindResult { 85 struct PP_PrivateFindResult {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 PP_Bool(*IsFeatureEnabled)(PP_PDFFeature feature); 150 PP_Bool(*IsFeatureEnabled)(PP_PDFFeature feature);
172 151
173 // Returns a resource image appropriate for a device with |scale| density. 152 // Returns a resource image appropriate for a device with |scale| density.
174 // Returns 0 (NULL resource) if there is no resource at that scale 153 // Returns 0 (NULL resource) if there is no resource at that scale
175 PP_Resource (*GetResourceImageForScale)(PP_Instance instance, 154 PP_Resource (*GetResourceImageForScale)(PP_Instance instance,
176 PP_ResourceImage image_id, 155 PP_ResourceImage image_id,
177 float scale); 156 float scale);
178 }; 157 };
179 158
180 #endif // PPAPI_C_PRIVATE_PPB_PDF_H_ 159 #endif // PPAPI_C_PRIVATE_PPB_PDF_H_
OLDNEW
« no previous file with comments | « ppapi/c/private/ppb_flash_font_file.h ('k') | ppapi/cpp/private/flash_font_file.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698