mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Revert the CefMenuModel separator changes added in revision 747.
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@749 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -43,8 +43,7 @@ int CEF_CALLBACK menu_model_get_count(struct _cef_menu_model_t* self) {
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK menu_model_add_separator(struct _cef_menu_model_t* self,
|
||||
enum cef_menu_separator_type_t type) {
|
||||
int CEF_CALLBACK menu_model_add_separator(struct _cef_menu_model_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -52,8 +51,7 @@ int CEF_CALLBACK menu_model_add_separator(struct _cef_menu_model_t* self,
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefMenuModelCppToC::Get(self)->AddSeparator(
|
||||
type);
|
||||
bool _retval = CefMenuModelCppToC::Get(self)->AddSeparator();
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
@ -146,7 +144,7 @@ struct _cef_menu_model_t* CEF_CALLBACK menu_model_add_sub_menu(
|
||||
}
|
||||
|
||||
int CEF_CALLBACK menu_model_insert_separator_at(struct _cef_menu_model_t* self,
|
||||
int index, enum cef_menu_separator_type_t type) {
|
||||
int index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -155,8 +153,7 @@ int CEF_CALLBACK menu_model_insert_separator_at(struct _cef_menu_model_t* self,
|
||||
|
||||
// Execute
|
||||
bool _retval = CefMenuModelCppToC::Get(self)->InsertSeparatorAt(
|
||||
index,
|
||||
type);
|
||||
index);
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
@ -440,23 +437,6 @@ enum cef_menu_item_type_t CEF_CALLBACK menu_model_get_type_at(
|
||||
return _retval;
|
||||
}
|
||||
|
||||
enum cef_menu_separator_type_t CEF_CALLBACK menu_model_get_separator_type_at(
|
||||
struct _cef_menu_model_t* self, int index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self)
|
||||
return MENUSEPARATORTYPE_NONE;
|
||||
|
||||
// Execute
|
||||
cef_menu_separator_type_t _retval = CefMenuModelCppToC::Get(
|
||||
self)->GetSeparatorTypeAt(
|
||||
index);
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK menu_model_get_group_id(struct _cef_menu_model_t* self,
|
||||
int command_id) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
@ -1005,7 +985,6 @@ CefMenuModelCppToC::CefMenuModelCppToC(CefMenuModel* cls)
|
||||
struct_.struct_.set_label_at = menu_model_set_label_at;
|
||||
struct_.struct_.get_type = menu_model_get_type;
|
||||
struct_.struct_.get_type_at = menu_model_get_type_at;
|
||||
struct_.struct_.get_separator_type_at = menu_model_get_separator_type_at;
|
||||
struct_.struct_.get_group_id = menu_model_get_group_id;
|
||||
struct_.struct_.get_group_id_at = menu_model_get_group_id_at;
|
||||
struct_.struct_.set_group_id = menu_model_set_group_id;
|
||||
|
Reference in New Issue
Block a user