| 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 | 5 |
| 6 /* From dev/ppb_font_dev.idl modified Wed Oct 5 19:40:26 2011. */ | 6 /* From dev/ppb_font_dev.idl modified Tue Oct 11 10:01:39 2011. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_DEV_PPB_FONT_DEV_H_ | 8 #ifndef PPAPI_C_DEV_PPB_FONT_DEV_H_ |
| 9 #define PPAPI_C_DEV_PPB_FONT_DEV_H_ | 9 #define PPAPI_C_DEV_PPB_FONT_DEV_H_ |
| 10 | 10 |
| 11 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
| 12 #include "ppapi/c/pp_instance.h" | 12 #include "ppapi/c/pp_instance.h" |
| 13 #include "ppapi/c/pp_macros.h" | 13 #include "ppapi/c/pp_macros.h" |
| 14 #include "ppapi/c/pp_point.h" | 14 #include "ppapi/c/pp_point.h" |
| 15 #include "ppapi/c/pp_rect.h" | 15 #include "ppapi/c/pp_rect.h" |
| 16 #include "ppapi/c/pp_resource.h" | 16 #include "ppapi/c/pp_resource.h" |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 }; | 151 }; |
| 152 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_TextRun_Dev, 24); | 152 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_TextRun_Dev, 24); |
| 153 /** | 153 /** |
| 154 * @} | 154 * @} |
| 155 */ | 155 */ |
| 156 | 156 |
| 157 /** | 157 /** |
| 158 * @addtogroup Interfaces | 158 * @addtogroup Interfaces |
| 159 * @{ | 159 * @{ |
| 160 */ | 160 */ |
| 161 struct PPB_Font_Dev { | 161 struct PPB_Font_Dev_0_6 { |
| 162 /** | 162 /** |
| 163 * Returns a list of all available font families on the system. You can use | 163 * Returns a list of all available font families on the system. You can use |
| 164 * this list to decide whether to Create() a font. | 164 * this list to decide whether to Create() a font. |
| 165 * | 165 * |
| 166 * The return value will be a single string with null characters delimiting | 166 * The return value will be a single string with null characters delimiting |
| 167 * the end of each font name. For example: "Arial\0Courier\0Times\0". | 167 * the end of each font name. For example: "Arial\0Courier\0Times\0". |
| 168 * | 168 * |
| 169 * Returns an undefined var on failure (this typically means you passed an | 169 * Returns an undefined var on failure (this typically means you passed an |
| 170 * invalid instance). | 170 * invalid instance). |
| 171 */ | 171 */ |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 /** | 245 /** |
| 246 * Returns the horizontal advance to the given character if the string was | 246 * Returns the horizontal advance to the given character if the string was |
| 247 * placed at the given position. This handles complex scripts such as Arabic, | 247 * placed at the given position. This handles complex scripts such as Arabic, |
| 248 * where characters may be combined or replaced depending on context. Returns | 248 * where characters may be combined or replaced depending on context. Returns |
| 249 * -1 on error. | 249 * -1 on error. |
| 250 */ | 250 */ |
| 251 int32_t (*PixelOffsetForCharacter)(PP_Resource font, | 251 int32_t (*PixelOffsetForCharacter)(PP_Resource font, |
| 252 const struct PP_TextRun_Dev* text, | 252 const struct PP_TextRun_Dev* text, |
| 253 uint32_t char_offset); | 253 uint32_t char_offset); |
| 254 }; | 254 }; |
| 255 |
| 256 typedef struct PPB_Font_Dev_0_6 PPB_Font_Dev; |
| 255 /** | 257 /** |
| 256 * @} | 258 * @} |
| 257 */ | 259 */ |
| 258 | 260 |
| 259 #endif /* PPAPI_C_DEV_PPB_FONT_DEV_H_ */ | 261 #endif /* PPAPI_C_DEV_PPB_FONT_DEV_H_ */ |
| 260 | 262 |
| OLD | NEW |