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

Side by Side Diff: ppapi/c/dev/ppb_char_set_dev.h

Issue 6893022: Add version-specific defines for each C interface. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 | « ppapi/c/dev/ppb_buffer_dev.h ('k') | ppapi/c/dev/ppb_console_dev.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) 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
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
OLDNEW
« no previous file with comments | « ppapi/c/dev/ppb_buffer_dev.h ('k') | ppapi/c/dev/ppb_console_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698