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:
		@@ -41,15 +41,14 @@ int CefMenuModelCToCpp::GetCount() {
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
bool CefMenuModelCToCpp::AddSeparator(MenuSeparatorType type) {
 | 
			
		||||
bool CefMenuModelCToCpp::AddSeparator() {
 | 
			
		||||
  if (CEF_MEMBER_MISSING(struct_, add_separator))
 | 
			
		||||
    return false;
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  int _retval = struct_->add_separator(struct_,
 | 
			
		||||
      type);
 | 
			
		||||
  int _retval = struct_->add_separator(struct_);
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval?true:false;
 | 
			
		||||
@@ -138,7 +137,7 @@ CefRefPtr<CefMenuModel> CefMenuModelCToCpp::AddSubMenu(int command_id,
 | 
			
		||||
  return CefMenuModelCToCpp::Wrap(_retval);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
bool CefMenuModelCToCpp::InsertSeparatorAt(int index, MenuSeparatorType type) {
 | 
			
		||||
bool CefMenuModelCToCpp::InsertSeparatorAt(int index) {
 | 
			
		||||
  if (CEF_MEMBER_MISSING(struct_, insert_separator_at))
 | 
			
		||||
    return false;
 | 
			
		||||
 | 
			
		||||
@@ -146,8 +145,7 @@ bool CefMenuModelCToCpp::InsertSeparatorAt(int index, MenuSeparatorType type) {
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  int _retval = struct_->insert_separator_at(struct_,
 | 
			
		||||
      index,
 | 
			
		||||
      type);
 | 
			
		||||
      index);
 | 
			
		||||
 | 
			
		||||
  // Return type: bool
 | 
			
		||||
  return _retval?true:false;
 | 
			
		||||
@@ -413,21 +411,6 @@ CefMenuModel::MenuItemType CefMenuModelCToCpp::GetTypeAt(int index) {
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
CefMenuModel::MenuSeparatorType CefMenuModelCToCpp::GetSeparatorTypeAt(
 | 
			
		||||
    int index) {
 | 
			
		||||
  if (CEF_MEMBER_MISSING(struct_, get_separator_type_at))
 | 
			
		||||
    return MENUSEPARATORTYPE_NONE;
 | 
			
		||||
 | 
			
		||||
  // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
 | 
			
		||||
 | 
			
		||||
  // Execute
 | 
			
		||||
  cef_menu_separator_type_t _retval = struct_->get_separator_type_at(struct_,
 | 
			
		||||
      index);
 | 
			
		||||
 | 
			
		||||
  // Return type: simple
 | 
			
		||||
  return _retval;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CefMenuModelCToCpp::GetGroupId(int command_id) {
 | 
			
		||||
  if (CEF_MEMBER_MISSING(struct_, get_group_id))
 | 
			
		||||
    return 0;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user