mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Apply clang-format to all C, C++ and ObjC files (issue #2171)
This commit is contained in:
@ -9,11 +9,12 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=be685c43e83d5b570606ed3708ce83d9e6bad0c8$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/menu_model_delegate_cpptoc.h"
|
||||
#include "libcef_dll/ctocpp/menu_model_ctocpp.h"
|
||||
|
||||
|
||||
// STATIC METHODS - Body may be edited by hand.
|
||||
|
||||
CefRefPtr<CefMenuModel> CefMenuModel::CreateMenuModel(
|
||||
@ -26,14 +27,13 @@ CefRefPtr<CefMenuModel> CefMenuModel::CreateMenuModel(
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
cef_menu_model_t* _retval = cef_menu_model_create(
|
||||
CefMenuModelDelegateCppToC::Wrap(delegate));
|
||||
cef_menu_model_t* _retval =
|
||||
cef_menu_model_create(CefMenuModelDelegateCppToC::Wrap(delegate));
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefMenuModelCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
bool CefMenuModelCToCpp::IsSubMenu() {
|
||||
@ -47,7 +47,7 @@ bool CefMenuModelCToCpp::IsSubMenu() {
|
||||
int _retval = _struct->is_sub_menu(_struct);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefMenuModelCToCpp::Clear() {
|
||||
@ -61,7 +61,7 @@ bool CefMenuModelCToCpp::Clear() {
|
||||
int _retval = _struct->clear(_struct);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
int CefMenuModelCToCpp::GetCount() {
|
||||
@ -89,7 +89,7 @@ bool CefMenuModelCToCpp::AddSeparator() {
|
||||
int _retval = _struct->add_separator(_struct);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefMenuModelCToCpp::AddItem(int command_id, const CefString& label) {
|
||||
@ -105,12 +105,10 @@ bool CefMenuModelCToCpp::AddItem(int command_id, const CefString& label) {
|
||||
return false;
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->add_item(_struct,
|
||||
command_id,
|
||||
label.GetStruct());
|
||||
int _retval = _struct->add_item(_struct, command_id, label.GetStruct());
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefMenuModelCToCpp::AddCheckItem(int command_id, const CefString& label) {
|
||||
@ -126,16 +124,15 @@ bool CefMenuModelCToCpp::AddCheckItem(int command_id, const CefString& label) {
|
||||
return false;
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->add_check_item(_struct,
|
||||
command_id,
|
||||
label.GetStruct());
|
||||
int _retval = _struct->add_check_item(_struct, command_id, label.GetStruct());
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefMenuModelCToCpp::AddRadioItem(int command_id, const CefString& label,
|
||||
int group_id) {
|
||||
bool CefMenuModelCToCpp::AddRadioItem(int command_id,
|
||||
const CefString& label,
|
||||
int group_id) {
|
||||
cef_menu_model_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, add_radio_item))
|
||||
return false;
|
||||
@ -148,17 +145,15 @@ bool CefMenuModelCToCpp::AddRadioItem(int command_id, const CefString& label,
|
||||
return false;
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->add_radio_item(_struct,
|
||||
command_id,
|
||||
label.GetStruct(),
|
||||
group_id);
|
||||
int _retval =
|
||||
_struct->add_radio_item(_struct, command_id, label.GetStruct(), group_id);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
CefRefPtr<CefMenuModel> CefMenuModelCToCpp::AddSubMenu(int command_id,
|
||||
const CefString& label) {
|
||||
const CefString& label) {
|
||||
cef_menu_model_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, add_sub_menu))
|
||||
return NULL;
|
||||
@ -171,9 +166,8 @@ CefRefPtr<CefMenuModel> CefMenuModelCToCpp::AddSubMenu(int command_id,
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
cef_menu_model_t* _retval = _struct->add_sub_menu(_struct,
|
||||
command_id,
|
||||
label.GetStruct());
|
||||
cef_menu_model_t* _retval =
|
||||
_struct->add_sub_menu(_struct, command_id, label.GetStruct());
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefMenuModelCToCpp::Wrap(_retval);
|
||||
@ -187,15 +181,15 @@ bool CefMenuModelCToCpp::InsertSeparatorAt(int index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->insert_separator_at(_struct,
|
||||
index);
|
||||
int _retval = _struct->insert_separator_at(_struct, index);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefMenuModelCToCpp::InsertItemAt(int index, int command_id,
|
||||
const CefString& label) {
|
||||
bool CefMenuModelCToCpp::InsertItemAt(int index,
|
||||
int command_id,
|
||||
const CefString& label) {
|
||||
cef_menu_model_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, insert_item_at))
|
||||
return false;
|
||||
@ -208,17 +202,16 @@ bool CefMenuModelCToCpp::InsertItemAt(int index, int command_id,
|
||||
return false;
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->insert_item_at(_struct,
|
||||
index,
|
||||
command_id,
|
||||
label.GetStruct());
|
||||
int _retval =
|
||||
_struct->insert_item_at(_struct, index, command_id, label.GetStruct());
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefMenuModelCToCpp::InsertCheckItemAt(int index, int command_id,
|
||||
const CefString& label) {
|
||||
bool CefMenuModelCToCpp::InsertCheckItemAt(int index,
|
||||
int command_id,
|
||||
const CefString& label) {
|
||||
cef_menu_model_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, insert_check_item_at))
|
||||
return false;
|
||||
@ -231,17 +224,17 @@ bool CefMenuModelCToCpp::InsertCheckItemAt(int index, int command_id,
|
||||
return false;
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->insert_check_item_at(_struct,
|
||||
index,
|
||||
command_id,
|
||||
label.GetStruct());
|
||||
int _retval = _struct->insert_check_item_at(_struct, index, command_id,
|
||||
label.GetStruct());
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefMenuModelCToCpp::InsertRadioItemAt(int index, int command_id,
|
||||
const CefString& label, int group_id) {
|
||||
bool CefMenuModelCToCpp::InsertRadioItemAt(int index,
|
||||
int command_id,
|
||||
const CefString& label,
|
||||
int group_id) {
|
||||
cef_menu_model_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, insert_radio_item_at))
|
||||
return false;
|
||||
@ -254,18 +247,17 @@ bool CefMenuModelCToCpp::InsertRadioItemAt(int index, int command_id,
|
||||
return false;
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->insert_radio_item_at(_struct,
|
||||
index,
|
||||
command_id,
|
||||
label.GetStruct(),
|
||||
group_id);
|
||||
int _retval = _struct->insert_radio_item_at(_struct, index, command_id,
|
||||
label.GetStruct(), group_id);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
CefRefPtr<CefMenuModel> CefMenuModelCToCpp::InsertSubMenuAt(int index,
|
||||
int command_id, const CefString& label) {
|
||||
CefRefPtr<CefMenuModel> CefMenuModelCToCpp::InsertSubMenuAt(
|
||||
int index,
|
||||
int command_id,
|
||||
const CefString& label) {
|
||||
cef_menu_model_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, insert_sub_menu_at))
|
||||
return NULL;
|
||||
@ -278,10 +270,8 @@ CefRefPtr<CefMenuModel> CefMenuModelCToCpp::InsertSubMenuAt(int index,
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
cef_menu_model_t* _retval = _struct->insert_sub_menu_at(_struct,
|
||||
index,
|
||||
command_id,
|
||||
label.GetStruct());
|
||||
cef_menu_model_t* _retval = _struct->insert_sub_menu_at(
|
||||
_struct, index, command_id, label.GetStruct());
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefMenuModelCToCpp::Wrap(_retval);
|
||||
@ -295,11 +285,10 @@ bool CefMenuModelCToCpp::Remove(int command_id) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->remove(_struct,
|
||||
command_id);
|
||||
int _retval = _struct->remove(_struct, command_id);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefMenuModelCToCpp::RemoveAt(int index) {
|
||||
@ -310,11 +299,10 @@ bool CefMenuModelCToCpp::RemoveAt(int index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->remove_at(_struct,
|
||||
index);
|
||||
int _retval = _struct->remove_at(_struct, index);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
int CefMenuModelCToCpp::GetIndexOf(int command_id) {
|
||||
@ -325,8 +313,7 @@ int CefMenuModelCToCpp::GetIndexOf(int command_id) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->get_index_of(_struct,
|
||||
command_id);
|
||||
int _retval = _struct->get_index_of(_struct, command_id);
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
@ -340,8 +327,7 @@ int CefMenuModelCToCpp::GetCommandIdAt(int index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->get_command_id_at(_struct,
|
||||
index);
|
||||
int _retval = _struct->get_command_id_at(_struct, index);
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
@ -355,12 +341,10 @@ bool CefMenuModelCToCpp::SetCommandIdAt(int index, int command_id) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->set_command_id_at(_struct,
|
||||
index,
|
||||
command_id);
|
||||
int _retval = _struct->set_command_id_at(_struct, index, command_id);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
CefString CefMenuModelCToCpp::GetLabel(int command_id) {
|
||||
@ -371,8 +355,7 @@ CefString CefMenuModelCToCpp::GetLabel(int command_id) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
cef_string_userfree_t _retval = _struct->get_label(_struct,
|
||||
command_id);
|
||||
cef_string_userfree_t _retval = _struct->get_label(_struct, command_id);
|
||||
|
||||
// Return type: string
|
||||
CefString _retvalStr;
|
||||
@ -388,8 +371,7 @@ CefString CefMenuModelCToCpp::GetLabelAt(int index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
cef_string_userfree_t _retval = _struct->get_label_at(_struct,
|
||||
index);
|
||||
cef_string_userfree_t _retval = _struct->get_label_at(_struct, index);
|
||||
|
||||
// Return type: string
|
||||
CefString _retvalStr;
|
||||
@ -410,12 +392,10 @@ bool CefMenuModelCToCpp::SetLabel(int command_id, const CefString& label) {
|
||||
return false;
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->set_label(_struct,
|
||||
command_id,
|
||||
label.GetStruct());
|
||||
int _retval = _struct->set_label(_struct, command_id, label.GetStruct());
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefMenuModelCToCpp::SetLabelAt(int index, const CefString& label) {
|
||||
@ -431,12 +411,10 @@ bool CefMenuModelCToCpp::SetLabelAt(int index, const CefString& label) {
|
||||
return false;
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->set_label_at(_struct,
|
||||
index,
|
||||
label.GetStruct());
|
||||
int _retval = _struct->set_label_at(_struct, index, label.GetStruct());
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
CefMenuModel::MenuItemType CefMenuModelCToCpp::GetType(int command_id) {
|
||||
@ -447,8 +425,7 @@ CefMenuModel::MenuItemType CefMenuModelCToCpp::GetType(int command_id) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
cef_menu_item_type_t _retval = _struct->get_type(_struct,
|
||||
command_id);
|
||||
cef_menu_item_type_t _retval = _struct->get_type(_struct, command_id);
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
@ -462,8 +439,7 @@ CefMenuModel::MenuItemType CefMenuModelCToCpp::GetTypeAt(int index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
cef_menu_item_type_t _retval = _struct->get_type_at(_struct,
|
||||
index);
|
||||
cef_menu_item_type_t _retval = _struct->get_type_at(_struct, index);
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
@ -477,8 +453,7 @@ int CefMenuModelCToCpp::GetGroupId(int command_id) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->get_group_id(_struct,
|
||||
command_id);
|
||||
int _retval = _struct->get_group_id(_struct, command_id);
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
@ -492,8 +467,7 @@ int CefMenuModelCToCpp::GetGroupIdAt(int index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->get_group_id_at(_struct,
|
||||
index);
|
||||
int _retval = _struct->get_group_id_at(_struct, index);
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
@ -507,12 +481,10 @@ bool CefMenuModelCToCpp::SetGroupId(int command_id, int group_id) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->set_group_id(_struct,
|
||||
command_id,
|
||||
group_id);
|
||||
int _retval = _struct->set_group_id(_struct, command_id, group_id);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefMenuModelCToCpp::SetGroupIdAt(int index, int group_id) {
|
||||
@ -523,12 +495,10 @@ bool CefMenuModelCToCpp::SetGroupIdAt(int index, int group_id) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->set_group_id_at(_struct,
|
||||
index,
|
||||
group_id);
|
||||
int _retval = _struct->set_group_id_at(_struct, index, group_id);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
CefRefPtr<CefMenuModel> CefMenuModelCToCpp::GetSubMenu(int command_id) {
|
||||
@ -539,8 +509,7 @@ CefRefPtr<CefMenuModel> CefMenuModelCToCpp::GetSubMenu(int command_id) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
cef_menu_model_t* _retval = _struct->get_sub_menu(_struct,
|
||||
command_id);
|
||||
cef_menu_model_t* _retval = _struct->get_sub_menu(_struct, command_id);
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefMenuModelCToCpp::Wrap(_retval);
|
||||
@ -554,8 +523,7 @@ CefRefPtr<CefMenuModel> CefMenuModelCToCpp::GetSubMenuAt(int index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
cef_menu_model_t* _retval = _struct->get_sub_menu_at(_struct,
|
||||
index);
|
||||
cef_menu_model_t* _retval = _struct->get_sub_menu_at(_struct, index);
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefMenuModelCToCpp::Wrap(_retval);
|
||||
@ -569,11 +537,10 @@ bool CefMenuModelCToCpp::IsVisible(int command_id) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->is_visible(_struct,
|
||||
command_id);
|
||||
int _retval = _struct->is_visible(_struct, command_id);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefMenuModelCToCpp::IsVisibleAt(int index) {
|
||||
@ -584,11 +551,10 @@ bool CefMenuModelCToCpp::IsVisibleAt(int index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->is_visible_at(_struct,
|
||||
index);
|
||||
int _retval = _struct->is_visible_at(_struct, index);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefMenuModelCToCpp::SetVisible(int command_id, bool visible) {
|
||||
@ -599,12 +565,10 @@ bool CefMenuModelCToCpp::SetVisible(int command_id, bool visible) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->set_visible(_struct,
|
||||
command_id,
|
||||
visible);
|
||||
int _retval = _struct->set_visible(_struct, command_id, visible);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefMenuModelCToCpp::SetVisibleAt(int index, bool visible) {
|
||||
@ -615,12 +579,10 @@ bool CefMenuModelCToCpp::SetVisibleAt(int index, bool visible) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->set_visible_at(_struct,
|
||||
index,
|
||||
visible);
|
||||
int _retval = _struct->set_visible_at(_struct, index, visible);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefMenuModelCToCpp::IsEnabled(int command_id) {
|
||||
@ -631,11 +593,10 @@ bool CefMenuModelCToCpp::IsEnabled(int command_id) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->is_enabled(_struct,
|
||||
command_id);
|
||||
int _retval = _struct->is_enabled(_struct, command_id);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefMenuModelCToCpp::IsEnabledAt(int index) {
|
||||
@ -646,11 +607,10 @@ bool CefMenuModelCToCpp::IsEnabledAt(int index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->is_enabled_at(_struct,
|
||||
index);
|
||||
int _retval = _struct->is_enabled_at(_struct, index);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefMenuModelCToCpp::SetEnabled(int command_id, bool enabled) {
|
||||
@ -661,12 +621,10 @@ bool CefMenuModelCToCpp::SetEnabled(int command_id, bool enabled) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->set_enabled(_struct,
|
||||
command_id,
|
||||
enabled);
|
||||
int _retval = _struct->set_enabled(_struct, command_id, enabled);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefMenuModelCToCpp::SetEnabledAt(int index, bool enabled) {
|
||||
@ -677,12 +635,10 @@ bool CefMenuModelCToCpp::SetEnabledAt(int index, bool enabled) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->set_enabled_at(_struct,
|
||||
index,
|
||||
enabled);
|
||||
int _retval = _struct->set_enabled_at(_struct, index, enabled);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefMenuModelCToCpp::IsChecked(int command_id) {
|
||||
@ -693,11 +649,10 @@ bool CefMenuModelCToCpp::IsChecked(int command_id) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->is_checked(_struct,
|
||||
command_id);
|
||||
int _retval = _struct->is_checked(_struct, command_id);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefMenuModelCToCpp::IsCheckedAt(int index) {
|
||||
@ -708,11 +663,10 @@ bool CefMenuModelCToCpp::IsCheckedAt(int index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->is_checked_at(_struct,
|
||||
index);
|
||||
int _retval = _struct->is_checked_at(_struct, index);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefMenuModelCToCpp::SetChecked(int command_id, bool checked) {
|
||||
@ -723,12 +677,10 @@ bool CefMenuModelCToCpp::SetChecked(int command_id, bool checked) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->set_checked(_struct,
|
||||
command_id,
|
||||
checked);
|
||||
int _retval = _struct->set_checked(_struct, command_id, checked);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefMenuModelCToCpp::SetCheckedAt(int index, bool checked) {
|
||||
@ -739,12 +691,10 @@ bool CefMenuModelCToCpp::SetCheckedAt(int index, bool checked) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->set_checked_at(_struct,
|
||||
index,
|
||||
checked);
|
||||
int _retval = _struct->set_checked_at(_struct, index, checked);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefMenuModelCToCpp::HasAccelerator(int command_id) {
|
||||
@ -755,11 +705,10 @@ bool CefMenuModelCToCpp::HasAccelerator(int command_id) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->has_accelerator(_struct,
|
||||
command_id);
|
||||
int _retval = _struct->has_accelerator(_struct, command_id);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefMenuModelCToCpp::HasAcceleratorAt(int index) {
|
||||
@ -770,15 +719,17 @@ bool CefMenuModelCToCpp::HasAcceleratorAt(int index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->has_accelerator_at(_struct,
|
||||
index);
|
||||
int _retval = _struct->has_accelerator_at(_struct, index);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefMenuModelCToCpp::SetAccelerator(int command_id, int key_code,
|
||||
bool shift_pressed, bool ctrl_pressed, bool alt_pressed) {
|
||||
bool CefMenuModelCToCpp::SetAccelerator(int command_id,
|
||||
int key_code,
|
||||
bool shift_pressed,
|
||||
bool ctrl_pressed,
|
||||
bool alt_pressed) {
|
||||
cef_menu_model_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, set_accelerator))
|
||||
return false;
|
||||
@ -786,19 +737,18 @@ bool CefMenuModelCToCpp::SetAccelerator(int command_id, int key_code,
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->set_accelerator(_struct,
|
||||
command_id,
|
||||
key_code,
|
||||
shift_pressed,
|
||||
ctrl_pressed,
|
||||
alt_pressed);
|
||||
int _retval = _struct->set_accelerator(
|
||||
_struct, command_id, key_code, shift_pressed, ctrl_pressed, alt_pressed);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefMenuModelCToCpp::SetAcceleratorAt(int index, int key_code,
|
||||
bool shift_pressed, bool ctrl_pressed, bool alt_pressed) {
|
||||
bool CefMenuModelCToCpp::SetAcceleratorAt(int index,
|
||||
int key_code,
|
||||
bool shift_pressed,
|
||||
bool ctrl_pressed,
|
||||
bool alt_pressed) {
|
||||
cef_menu_model_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, set_accelerator_at))
|
||||
return false;
|
||||
@ -806,15 +756,11 @@ bool CefMenuModelCToCpp::SetAcceleratorAt(int index, int key_code,
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->set_accelerator_at(_struct,
|
||||
index,
|
||||
key_code,
|
||||
shift_pressed,
|
||||
ctrl_pressed,
|
||||
alt_pressed);
|
||||
int _retval = _struct->set_accelerator_at(
|
||||
_struct, index, key_code, shift_pressed, ctrl_pressed, alt_pressed);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefMenuModelCToCpp::RemoveAccelerator(int command_id) {
|
||||
@ -825,11 +771,10 @@ bool CefMenuModelCToCpp::RemoveAccelerator(int command_id) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->remove_accelerator(_struct,
|
||||
command_id);
|
||||
int _retval = _struct->remove_accelerator(_struct, command_id);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefMenuModelCToCpp::RemoveAcceleratorAt(int index) {
|
||||
@ -840,15 +785,17 @@ bool CefMenuModelCToCpp::RemoveAcceleratorAt(int index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->remove_accelerator_at(_struct,
|
||||
index);
|
||||
int _retval = _struct->remove_accelerator_at(_struct, index);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefMenuModelCToCpp::GetAccelerator(int command_id, int& key_code,
|
||||
bool& shift_pressed, bool& ctrl_pressed, bool& alt_pressed) {
|
||||
bool CefMenuModelCToCpp::GetAccelerator(int command_id,
|
||||
int& key_code,
|
||||
bool& shift_pressed,
|
||||
bool& ctrl_pressed,
|
||||
bool& alt_pressed) {
|
||||
cef_menu_model_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, get_accelerator))
|
||||
return false;
|
||||
@ -863,26 +810,26 @@ bool CefMenuModelCToCpp::GetAccelerator(int command_id, int& key_code,
|
||||
int alt_pressedInt = alt_pressed;
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->get_accelerator(_struct,
|
||||
command_id,
|
||||
&key_code,
|
||||
&shift_pressedInt,
|
||||
&ctrl_pressedInt,
|
||||
&alt_pressedInt);
|
||||
int _retval = _struct->get_accelerator(_struct, command_id, &key_code,
|
||||
&shift_pressedInt, &ctrl_pressedInt,
|
||||
&alt_pressedInt);
|
||||
|
||||
// Restore param:shift_pressed; type: bool_byref
|
||||
shift_pressed = shift_pressedInt?true:false;
|
||||
shift_pressed = shift_pressedInt ? true : false;
|
||||
// Restore param:ctrl_pressed; type: bool_byref
|
||||
ctrl_pressed = ctrl_pressedInt?true:false;
|
||||
ctrl_pressed = ctrl_pressedInt ? true : false;
|
||||
// Restore param:alt_pressed; type: bool_byref
|
||||
alt_pressed = alt_pressedInt?true:false;
|
||||
alt_pressed = alt_pressedInt ? true : false;
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefMenuModelCToCpp::GetAcceleratorAt(int index, int& key_code,
|
||||
bool& shift_pressed, bool& ctrl_pressed, bool& alt_pressed) {
|
||||
bool CefMenuModelCToCpp::GetAcceleratorAt(int index,
|
||||
int& key_code,
|
||||
bool& shift_pressed,
|
||||
bool& ctrl_pressed,
|
||||
bool& alt_pressed) {
|
||||
cef_menu_model_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, get_accelerator_at))
|
||||
return false;
|
||||
@ -897,26 +844,24 @@ bool CefMenuModelCToCpp::GetAcceleratorAt(int index, int& key_code,
|
||||
int alt_pressedInt = alt_pressed;
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->get_accelerator_at(_struct,
|
||||
index,
|
||||
&key_code,
|
||||
&shift_pressedInt,
|
||||
&ctrl_pressedInt,
|
||||
&alt_pressedInt);
|
||||
int _retval =
|
||||
_struct->get_accelerator_at(_struct, index, &key_code, &shift_pressedInt,
|
||||
&ctrl_pressedInt, &alt_pressedInt);
|
||||
|
||||
// Restore param:shift_pressed; type: bool_byref
|
||||
shift_pressed = shift_pressedInt?true:false;
|
||||
shift_pressed = shift_pressedInt ? true : false;
|
||||
// Restore param:ctrl_pressed; type: bool_byref
|
||||
ctrl_pressed = ctrl_pressedInt?true:false;
|
||||
ctrl_pressed = ctrl_pressedInt ? true : false;
|
||||
// Restore param:alt_pressed; type: bool_byref
|
||||
alt_pressed = alt_pressedInt?true:false;
|
||||
alt_pressed = alt_pressedInt ? true : false;
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefMenuModelCToCpp::SetColor(int command_id,
|
||||
cef_menu_color_type_t color_type, cef_color_t color) {
|
||||
cef_menu_color_type_t color_type,
|
||||
cef_color_t color) {
|
||||
cef_menu_model_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, set_color))
|
||||
return false;
|
||||
@ -924,17 +869,15 @@ bool CefMenuModelCToCpp::SetColor(int command_id,
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->set_color(_struct,
|
||||
command_id,
|
||||
color_type,
|
||||
color);
|
||||
int _retval = _struct->set_color(_struct, command_id, color_type, color);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefMenuModelCToCpp::SetColorAt(int index, cef_menu_color_type_t color_type,
|
||||
cef_color_t color) {
|
||||
bool CefMenuModelCToCpp::SetColorAt(int index,
|
||||
cef_menu_color_type_t color_type,
|
||||
cef_color_t color) {
|
||||
cef_menu_model_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, set_color_at))
|
||||
return false;
|
||||
@ -942,17 +885,15 @@ bool CefMenuModelCToCpp::SetColorAt(int index, cef_menu_color_type_t color_type,
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->set_color_at(_struct,
|
||||
index,
|
||||
color_type,
|
||||
color);
|
||||
int _retval = _struct->set_color_at(_struct, index, color_type, color);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefMenuModelCToCpp::GetColor(int command_id,
|
||||
cef_menu_color_type_t color_type, cef_color_t& color) {
|
||||
cef_menu_color_type_t color_type,
|
||||
cef_color_t& color) {
|
||||
cef_menu_model_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, get_color))
|
||||
return false;
|
||||
@ -960,17 +901,15 @@ bool CefMenuModelCToCpp::GetColor(int command_id,
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->get_color(_struct,
|
||||
command_id,
|
||||
color_type,
|
||||
&color);
|
||||
int _retval = _struct->get_color(_struct, command_id, color_type, &color);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefMenuModelCToCpp::GetColorAt(int index, cef_menu_color_type_t color_type,
|
||||
cef_color_t& color) {
|
||||
bool CefMenuModelCToCpp::GetColorAt(int index,
|
||||
cef_menu_color_type_t color_type,
|
||||
cef_color_t& color) {
|
||||
cef_menu_model_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, get_color_at))
|
||||
return false;
|
||||
@ -978,17 +917,14 @@ bool CefMenuModelCToCpp::GetColorAt(int index, cef_menu_color_type_t color_type,
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->get_color_at(_struct,
|
||||
index,
|
||||
color_type,
|
||||
&color);
|
||||
int _retval = _struct->get_color_at(_struct, index, color_type, &color);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefMenuModelCToCpp::SetFontList(int command_id,
|
||||
const CefString& font_list) {
|
||||
const CefString& font_list) {
|
||||
cef_menu_model_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, set_font_list))
|
||||
return false;
|
||||
@ -998,12 +934,11 @@ bool CefMenuModelCToCpp::SetFontList(int command_id,
|
||||
// Unverified params: font_list
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->set_font_list(_struct,
|
||||
command_id,
|
||||
font_list.GetStruct());
|
||||
int _retval =
|
||||
_struct->set_font_list(_struct, command_id, font_list.GetStruct());
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
bool CefMenuModelCToCpp::SetFontListAt(int index, const CefString& font_list) {
|
||||
@ -1016,31 +951,34 @@ bool CefMenuModelCToCpp::SetFontListAt(int index, const CefString& font_list) {
|
||||
// Unverified params: font_list
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->set_font_list_at(_struct,
|
||||
index,
|
||||
font_list.GetStruct());
|
||||
int _retval =
|
||||
_struct->set_font_list_at(_struct, index, font_list.GetStruct());
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
return _retval ? true : false;
|
||||
}
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefMenuModelCToCpp::CefMenuModelCToCpp() {
|
||||
}
|
||||
CefMenuModelCToCpp::CefMenuModelCToCpp() {}
|
||||
|
||||
template<> cef_menu_model_t* CefCToCppRefCounted<CefMenuModelCToCpp,
|
||||
CefMenuModel, cef_menu_model_t>::UnwrapDerived(CefWrapperType type,
|
||||
CefMenuModel* c) {
|
||||
template <>
|
||||
cef_menu_model_t*
|
||||
CefCToCppRefCounted<CefMenuModelCToCpp, CefMenuModel, cef_menu_model_t>::
|
||||
UnwrapDerived(CefWrapperType type, CefMenuModel* c) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCToCppRefCounted<CefMenuModelCToCpp,
|
||||
CefMenuModel, cef_menu_model_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount CefCToCppRefCounted<CefMenuModelCToCpp,
|
||||
CefMenuModel,
|
||||
cef_menu_model_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCToCppRefCounted<CefMenuModelCToCpp, CefMenuModel,
|
||||
cef_menu_model_t>::kWrapperType = WT_MENU_MODEL;
|
||||
template <>
|
||||
CefWrapperType CefCToCppRefCounted<CefMenuModelCToCpp,
|
||||
CefMenuModel,
|
||||
cef_menu_model_t>::kWrapperType =
|
||||
WT_MENU_MODEL;
|
||||
|
Reference in New Issue
Block a user