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