mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium revision 153668.
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@748 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -41,14 +41,15 @@ int CefMenuModelCToCpp::GetCount() {
|
||||
return _retval;
|
||||
}
|
||||
|
||||
bool CefMenuModelCToCpp::AddSeparator() {
|
||||
bool CefMenuModelCToCpp::AddSeparator(MenuSeparatorType type) {
|
||||
if (CEF_MEMBER_MISSING(struct_, add_separator))
|
||||
return false;
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = struct_->add_separator(struct_);
|
||||
int _retval = struct_->add_separator(struct_,
|
||||
type);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
@@ -137,7 +138,7 @@ CefRefPtr<CefMenuModel> CefMenuModelCToCpp::AddSubMenu(int command_id,
|
||||
return CefMenuModelCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
bool CefMenuModelCToCpp::InsertSeparatorAt(int index) {
|
||||
bool CefMenuModelCToCpp::InsertSeparatorAt(int index, MenuSeparatorType type) {
|
||||
if (CEF_MEMBER_MISSING(struct_, insert_separator_at))
|
||||
return false;
|
||||
|
||||
@@ -145,7 +146,8 @@ bool CefMenuModelCToCpp::InsertSeparatorAt(int index) {
|
||||
|
||||
// Execute
|
||||
int _retval = struct_->insert_separator_at(struct_,
|
||||
index);
|
||||
index,
|
||||
type);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
@@ -411,6 +413,21 @@ 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;
|
||||
|
@@ -34,14 +34,14 @@ class CefMenuModelCToCpp
|
||||
// CefMenuModel methods
|
||||
virtual bool Clear() OVERRIDE;
|
||||
virtual int GetCount() OVERRIDE;
|
||||
virtual bool AddSeparator() OVERRIDE;
|
||||
virtual bool AddSeparator(MenuSeparatorType type) OVERRIDE;
|
||||
virtual bool AddItem(int command_id, const CefString& label) OVERRIDE;
|
||||
virtual bool AddCheckItem(int command_id, const CefString& label) OVERRIDE;
|
||||
virtual bool AddRadioItem(int command_id, const CefString& label,
|
||||
int group_id) OVERRIDE;
|
||||
virtual CefRefPtr<CefMenuModel> AddSubMenu(int command_id,
|
||||
const CefString& label) OVERRIDE;
|
||||
virtual bool InsertSeparatorAt(int index) OVERRIDE;
|
||||
virtual bool InsertSeparatorAt(int index, MenuSeparatorType type) OVERRIDE;
|
||||
virtual bool InsertItemAt(int index, int command_id,
|
||||
const CefString& label) OVERRIDE;
|
||||
virtual bool InsertCheckItemAt(int index, int command_id,
|
||||
@@ -61,6 +61,7 @@ class CefMenuModelCToCpp
|
||||
virtual bool SetLabelAt(int index, const CefString& label) OVERRIDE;
|
||||
virtual MenuItemType GetType(int command_id) OVERRIDE;
|
||||
virtual MenuItemType GetTypeAt(int index) OVERRIDE;
|
||||
virtual MenuSeparatorType GetSeparatorTypeAt(int index) OVERRIDE;
|
||||
virtual int GetGroupId(int command_id) OVERRIDE;
|
||||
virtual int GetGroupIdAt(int index) OVERRIDE;
|
||||
virtual bool SetGroupId(int command_id, int group_id) OVERRIDE;
|
||||
|
Reference in New Issue
Block a user