OLD | NEW |
1 /* Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2010 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_DEV_PPB_CHAR_SET_DEV_H_ | 5 #ifndef PPAPI_C_DEV_PPB_CHAR_SET_DEV_H_ |
6 #define PPAPI_C_DEV_PPB_CHAR_SET_DEV_H_ | 6 #define PPAPI_C_DEV_PPB_CHAR_SET_DEV_H_ |
7 | 7 |
8 #include "ppapi/c/pp_instance.h" | 8 #include "ppapi/c/pp_instance.h" |
9 #include "ppapi/c/pp_macros.h" | 9 #include "ppapi/c/pp_macros.h" |
10 #include "ppapi/c/pp_stdint.h" | 10 #include "ppapi/c/pp_stdint.h" |
11 #include "ppapi/c/pp_var.h" | 11 #include "ppapi/c/pp_var.h" |
12 | 12 |
13 #define PPB_CHAR_SET_DEV_INTERFACE "PPB_CharSet(Dev);0.4" | 13 #define PPB_CHAR_SET_DEV_INTERFACE_0_4 "PPB_CharSet(Dev);0.4" |
| 14 #define PPB_CHAR_SET_DEV_INTERFACE PPB_CHAR_SET_DEV_INTERFACE_0_4 |
14 | 15 |
15 // Specifies the error behavior for the character set conversion functions. | 16 // Specifies the error behavior for the character set conversion functions. |
16 // This will affect two cases: where the input is not encoded correctly, and | 17 // This will affect two cases: where the input is not encoded correctly, and |
17 // when the requested character can not be converted to the destination | 18 // when the requested character can not be converted to the destination |
18 // character set. | 19 // character set. |
19 enum PP_CharSet_ConversionError { | 20 enum PP_CharSet_ConversionError { |
20 // Causes the entire conversion to fail if an error is encountered. The | 21 // Causes the entire conversion to fail if an error is encountered. The |
21 // conversion function will return NULL. | 22 // conversion function will return NULL. |
22 PP_CHARSET_CONVERSIONERROR_FAIL, | 23 PP_CHARSET_CONVERSIONERROR_FAIL, |
23 | 24 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 // the current system. | 75 // the current system. |
75 // | 76 // |
76 // WARNING: You really shouldn't be using this function unless you're dealing | 77 // WARNING: You really shouldn't be using this function unless you're dealing |
77 // with legacy data. You should be using UTF-8 or UTF-16 and you don't have | 78 // with legacy data. You should be using UTF-8 or UTF-16 and you don't have |
78 // to worry about the character sets. | 79 // to worry about the character sets. |
79 struct PP_Var (*GetDefaultCharSet)(PP_Instance instance); | 80 struct PP_Var (*GetDefaultCharSet)(PP_Instance instance); |
80 }; | 81 }; |
81 | 82 |
82 #endif /* PPAPI_C_DEV_PPB_CHAR_SET_DEV_H_ */ | 83 #endif /* PPAPI_C_DEV_PPB_CHAR_SET_DEV_H_ */ |
83 | 84 |
OLD | NEW |