mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Fix C compiler errors when using the C API (issue #1165).
- Replace 'bool' with 'int' in cef_types[_*].h. - Typedef enums in cef_types.h - Add includes and struct forward declarations in C API header files. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1558 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -45,7 +45,7 @@ int CEF_CALLBACK context_menu_params_get_ycoord(
|
||||
return _retval;
|
||||
}
|
||||
|
||||
enum cef_context_menu_type_flags_t CEF_CALLBACK context_menu_params_get_type_flags(
|
||||
cef_context_menu_type_flags_t CEF_CALLBACK context_menu_params_get_type_flags(
|
||||
struct _cef_context_menu_params_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@ -167,7 +167,7 @@ cef_string_userfree_t CEF_CALLBACK context_menu_params_get_frame_charset(
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
enum cef_context_menu_media_type_t CEF_CALLBACK context_menu_params_get_media_type(
|
||||
cef_context_menu_media_type_t CEF_CALLBACK context_menu_params_get_media_type(
|
||||
struct _cef_context_menu_params_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@ -183,7 +183,7 @@ enum cef_context_menu_media_type_t CEF_CALLBACK context_menu_params_get_media_ty
|
||||
return _retval;
|
||||
}
|
||||
|
||||
enum cef_context_menu_media_state_flags_t CEF_CALLBACK context_menu_params_get_media_state_flags(
|
||||
cef_context_menu_media_state_flags_t CEF_CALLBACK context_menu_params_get_media_state_flags(
|
||||
struct _cef_context_menu_params_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@ -244,7 +244,7 @@ int CEF_CALLBACK context_menu_params_is_speech_input_enabled(
|
||||
return _retval;
|
||||
}
|
||||
|
||||
enum cef_context_menu_edit_state_flags_t CEF_CALLBACK context_menu_params_get_edit_state_flags(
|
||||
cef_context_menu_edit_state_flags_t CEF_CALLBACK context_menu_params_get_edit_state_flags(
|
||||
struct _cef_context_menu_params_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
|
Reference in New Issue
Block a user