2020-01-06 10:59:05 +01:00
|
|
|
// Copyright (c) 2020 The Chromium Embedded Framework Authors. All rights
|
2012-04-19 22:31:46 +02:00
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
|
|
|
//
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// This file was generated by the CEF translator tool. If making changes by
|
|
|
|
// hand only do so within the body of existing method and function
|
|
|
|
// implementations. See the translator.README.txt file in the tools directory
|
|
|
|
// for more information.
|
|
|
|
//
|
2020-01-06 10:59:05 +01:00
|
|
|
// $hash=ad9905513db9a0dc5d50a4009868b7cbe087de2c$
|
2017-05-17 11:29:28 +02:00
|
|
|
//
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
#include "libcef_dll/cpptoc/menu_model_cpptoc.h"
|
2016-01-19 21:09:01 +01:00
|
|
|
#include "libcef_dll/ctocpp/menu_model_delegate_ctocpp.h"
|
2019-01-23 16:42:12 +01:00
|
|
|
#include "libcef_dll/shutdown_checker.h"
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// GLOBAL FUNCTIONS - Body may be edited by hand.
|
|
|
|
|
|
|
|
CEF_EXPORT cef_menu_model_t* cef_menu_model_create(
|
|
|
|
struct _cef_menu_model_delegate_t* delegate) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: delegate; type: refptr_diff
|
|
|
|
DCHECK(delegate);
|
|
|
|
if (!delegate)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefMenuModel> _retval =
|
|
|
|
CefMenuModel::CreateMenuModel(CefMenuModelDelegateCToCpp::Wrap(delegate));
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefMenuModelCppToC::Wrap(_retval);
|
|
|
|
}
|
2012-04-19 22:31:46 +02:00
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
namespace {
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// MEMBER FUNCTIONS - Body may be edited by hand.
|
|
|
|
|
2017-02-22 19:05:27 +01:00
|
|
|
int CEF_CALLBACK menu_model_is_sub_menu(struct _cef_menu_model_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-02-22 19:05:27 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefMenuModelCppToC::Get(self)->IsSubMenu();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
int CEF_CALLBACK menu_model_clear(struct _cef_menu_model_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefMenuModelCppToC::Get(self)->Clear();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_get_count(struct _cef_menu_model_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = CefMenuModelCppToC::Get(self)->GetCount();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2012-08-29 18:58:40 +02:00
|
|
|
int CEF_CALLBACK menu_model_add_separator(struct _cef_menu_model_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2012-08-29 18:58:40 +02:00
|
|
|
bool _retval = CefMenuModelCppToC::Get(self)->AddSeparator();
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_add_item(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int command_id,
|
|
|
|
const cef_string_t* label) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
// Verify param: label; type: string_byref_const
|
|
|
|
DCHECK(label);
|
|
|
|
if (!label)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefMenuModelCppToC::Get(self)->AddItem(command_id, CefString(label));
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_add_check_item(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int command_id,
|
|
|
|
const cef_string_t* label) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
// Verify param: label; type: string_byref_const
|
|
|
|
DCHECK(label);
|
|
|
|
if (!label)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefMenuModelCppToC::Get(self)->AddCheckItem(command_id, CefString(label));
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_add_radio_item(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int command_id,
|
|
|
|
const cef_string_t* label,
|
|
|
|
int group_id) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
// Verify param: label; type: string_byref_const
|
|
|
|
DCHECK(label);
|
|
|
|
if (!label)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefMenuModelCppToC::Get(self)->AddRadioItem(
|
2017-05-17 11:29:28 +02:00
|
|
|
command_id, CefString(label), group_id);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_menu_model_t* CEF_CALLBACK
|
|
|
|
menu_model_add_sub_menu(struct _cef_menu_model_t* self,
|
|
|
|
int command_id,
|
|
|
|
const cef_string_t* label) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return NULL;
|
|
|
|
// Verify param: label; type: string_byref_const
|
|
|
|
DCHECK(label);
|
|
|
|
if (!label)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefMenuModel> _retval =
|
|
|
|
CefMenuModelCppToC::Get(self)->AddSubMenu(command_id, CefString(label));
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefMenuModelCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_insert_separator_at(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int index) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefMenuModelCppToC::Get(self)->InsertSeparatorAt(index);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_insert_item_at(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int index,
|
|
|
|
int command_id,
|
|
|
|
const cef_string_t* label) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
// Verify param: label; type: string_byref_const
|
|
|
|
DCHECK(label);
|
|
|
|
if (!label)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefMenuModelCppToC::Get(self)->InsertItemAt(index, command_id,
|
|
|
|
CefString(label));
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_insert_check_item_at(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int index,
|
|
|
|
int command_id,
|
|
|
|
const cef_string_t* label) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
// Verify param: label; type: string_byref_const
|
|
|
|
DCHECK(label);
|
|
|
|
if (!label)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefMenuModelCppToC::Get(self)->InsertCheckItemAt(
|
2017-05-17 11:29:28 +02:00
|
|
|
index, command_id, CefString(label));
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_insert_radio_item_at(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int index,
|
|
|
|
int command_id,
|
|
|
|
const cef_string_t* label,
|
|
|
|
int group_id) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
// Verify param: label; type: string_byref_const
|
|
|
|
DCHECK(label);
|
|
|
|
if (!label)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefMenuModelCppToC::Get(self)->InsertRadioItemAt(
|
2017-05-17 11:29:28 +02:00
|
|
|
index, command_id, CefString(label), group_id);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_menu_model_t* CEF_CALLBACK
|
|
|
|
menu_model_insert_sub_menu_at(struct _cef_menu_model_t* self,
|
|
|
|
int index,
|
|
|
|
int command_id,
|
|
|
|
const cef_string_t* label) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return NULL;
|
|
|
|
// Verify param: label; type: string_byref_const
|
|
|
|
DCHECK(label);
|
|
|
|
if (!label)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefMenuModel> _retval =
|
|
|
|
CefMenuModelCppToC::Get(self)->InsertSubMenuAt(index, command_id,
|
|
|
|
CefString(label));
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefMenuModelCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_remove(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int command_id) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefMenuModelCppToC::Get(self)->Remove(command_id);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_remove_at(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int index) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefMenuModelCppToC::Get(self)->RemoveAt(index);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_get_index_of(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int command_id) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = CefMenuModelCppToC::Get(self)->GetIndexOf(command_id);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_get_command_id_at(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int index) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = CefMenuModelCppToC::Get(self)->GetCommandIdAt(index);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_set_command_id_at(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int index,
|
|
|
|
int command_id) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefMenuModelCppToC::Get(self)->SetCommandIdAt(index, command_id);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t CEF_CALLBACK
|
|
|
|
menu_model_get_label(struct _cef_menu_model_t* self, int command_id) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefString _retval = CefMenuModelCppToC::Get(self)->GetLabel(command_id);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t CEF_CALLBACK
|
|
|
|
menu_model_get_label_at(struct _cef_menu_model_t* self, int index) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefString _retval = CefMenuModelCppToC::Get(self)->GetLabelAt(index);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_set_label(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int command_id,
|
|
|
|
const cef_string_t* label) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
// Verify param: label; type: string_byref_const
|
|
|
|
DCHECK(label);
|
|
|
|
if (!label)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefMenuModelCppToC::Get(self)->SetLabel(command_id, CefString(label));
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_set_label_at(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int index,
|
|
|
|
const cef_string_t* label) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
// Verify param: label; type: string_byref_const
|
|
|
|
DCHECK(label);
|
|
|
|
if (!label)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefMenuModelCppToC::Get(self)->SetLabelAt(index, CefString(label));
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_menu_item_type_t CEF_CALLBACK
|
|
|
|
menu_model_get_type(struct _cef_menu_model_t* self, int command_id) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return MENUITEMTYPE_NONE;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_menu_item_type_t _retval =
|
|
|
|
CefMenuModelCppToC::Get(self)->GetType(command_id);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_menu_item_type_t CEF_CALLBACK
|
|
|
|
menu_model_get_type_at(struct _cef_menu_model_t* self, int index) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return MENUITEMTYPE_NONE;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_menu_item_type_t _retval =
|
|
|
|
CefMenuModelCppToC::Get(self)->GetTypeAt(index);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_get_group_id(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int command_id) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = CefMenuModelCppToC::Get(self)->GetGroupId(command_id);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_get_group_id_at(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int index) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = CefMenuModelCppToC::Get(self)->GetGroupIdAt(index);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_set_group_id(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int command_id,
|
|
|
|
int group_id) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefMenuModelCppToC::Get(self)->SetGroupId(command_id, group_id);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_set_group_id_at(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int index,
|
|
|
|
int group_id) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefMenuModelCppToC::Get(self)->SetGroupIdAt(index, group_id);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_menu_model_t* CEF_CALLBACK
|
|
|
|
menu_model_get_sub_menu(struct _cef_menu_model_t* self, int command_id) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefMenuModel> _retval =
|
|
|
|
CefMenuModelCppToC::Get(self)->GetSubMenu(command_id);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefMenuModelCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_menu_model_t* CEF_CALLBACK
|
|
|
|
menu_model_get_sub_menu_at(struct _cef_menu_model_t* self, int index) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefMenuModel> _retval =
|
|
|
|
CefMenuModelCppToC::Get(self)->GetSubMenuAt(index);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefMenuModelCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_is_visible(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int command_id) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefMenuModelCppToC::Get(self)->IsVisible(command_id);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_is_visible_at(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int index) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefMenuModelCppToC::Get(self)->IsVisibleAt(index);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_set_visible(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int command_id,
|
|
|
|
int visible) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefMenuModelCppToC::Get(self)->SetVisible(
|
2017-05-17 11:29:28 +02:00
|
|
|
command_id, visible ? true : false);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_set_visible_at(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int index,
|
|
|
|
int visible) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefMenuModelCppToC::Get(self)->SetVisibleAt(
|
2017-05-17 11:29:28 +02:00
|
|
|
index, visible ? true : false);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_is_enabled(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int command_id) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefMenuModelCppToC::Get(self)->IsEnabled(command_id);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_is_enabled_at(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int index) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefMenuModelCppToC::Get(self)->IsEnabledAt(index);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_set_enabled(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int command_id,
|
|
|
|
int enabled) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefMenuModelCppToC::Get(self)->SetEnabled(
|
2017-05-17 11:29:28 +02:00
|
|
|
command_id, enabled ? true : false);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_set_enabled_at(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int index,
|
|
|
|
int enabled) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefMenuModelCppToC::Get(self)->SetEnabledAt(
|
2017-05-17 11:29:28 +02:00
|
|
|
index, enabled ? true : false);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_is_checked(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int command_id) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefMenuModelCppToC::Get(self)->IsChecked(command_id);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_is_checked_at(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int index) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefMenuModelCppToC::Get(self)->IsCheckedAt(index);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_set_checked(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int command_id,
|
|
|
|
int checked) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefMenuModelCppToC::Get(self)->SetChecked(
|
2017-05-17 11:29:28 +02:00
|
|
|
command_id, checked ? true : false);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_set_checked_at(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int index,
|
|
|
|
int checked) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefMenuModelCppToC::Get(self)->SetCheckedAt(
|
2017-05-17 11:29:28 +02:00
|
|
|
index, checked ? true : false);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_has_accelerator(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int command_id) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefMenuModelCppToC::Get(self)->HasAccelerator(command_id);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_has_accelerator_at(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int index) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefMenuModelCppToC::Get(self)->HasAcceleratorAt(index);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_set_accelerator(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int command_id,
|
|
|
|
int key_code,
|
|
|
|
int shift_pressed,
|
|
|
|
int ctrl_pressed,
|
|
|
|
int alt_pressed) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefMenuModelCppToC::Get(self)->SetAccelerator(
|
2017-05-17 11:29:28 +02:00
|
|
|
command_id, key_code, shift_pressed ? true : false,
|
|
|
|
ctrl_pressed ? true : false, alt_pressed ? true : false);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_set_accelerator_at(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int index,
|
|
|
|
int key_code,
|
|
|
|
int shift_pressed,
|
|
|
|
int ctrl_pressed,
|
|
|
|
int alt_pressed) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefMenuModelCppToC::Get(self)->SetAcceleratorAt(
|
2017-05-17 11:29:28 +02:00
|
|
|
index, key_code, shift_pressed ? true : false,
|
|
|
|
ctrl_pressed ? true : false, alt_pressed ? true : false);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_remove_accelerator(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int command_id) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefMenuModelCppToC::Get(self)->RemoveAccelerator(command_id);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
int CEF_CALLBACK
|
|
|
|
menu_model_remove_accelerator_at(struct _cef_menu_model_t* self, int index) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefMenuModelCppToC::Get(self)->RemoveAcceleratorAt(index);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_get_accelerator(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int command_id,
|
|
|
|
int* key_code,
|
|
|
|
int* shift_pressed,
|
|
|
|
int* ctrl_pressed,
|
|
|
|
int* alt_pressed) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
// Verify param: key_code; type: simple_byref
|
|
|
|
DCHECK(key_code);
|
|
|
|
if (!key_code)
|
|
|
|
return 0;
|
|
|
|
// Verify param: shift_pressed; type: bool_byref
|
|
|
|
DCHECK(shift_pressed);
|
|
|
|
if (!shift_pressed)
|
|
|
|
return 0;
|
|
|
|
// Verify param: ctrl_pressed; type: bool_byref
|
|
|
|
DCHECK(ctrl_pressed);
|
|
|
|
if (!ctrl_pressed)
|
|
|
|
return 0;
|
|
|
|
// Verify param: alt_pressed; type: bool_byref
|
|
|
|
DCHECK(alt_pressed);
|
|
|
|
if (!alt_pressed)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Translate param: key_code; type: simple_byref
|
2017-05-17 11:29:28 +02:00
|
|
|
int key_codeVal = key_code ? *key_code : 0;
|
2012-04-19 22:31:46 +02:00
|
|
|
// Translate param: shift_pressed; type: bool_byref
|
2017-05-17 11:29:28 +02:00
|
|
|
bool shift_pressedBool = (shift_pressed && *shift_pressed) ? true : false;
|
2012-04-19 22:31:46 +02:00
|
|
|
// Translate param: ctrl_pressed; type: bool_byref
|
2017-05-17 11:29:28 +02:00
|
|
|
bool ctrl_pressedBool = (ctrl_pressed && *ctrl_pressed) ? true : false;
|
2012-04-19 22:31:46 +02:00
|
|
|
// Translate param: alt_pressed; type: bool_byref
|
2017-05-17 11:29:28 +02:00
|
|
|
bool alt_pressedBool = (alt_pressed && *alt_pressed) ? true : false;
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefMenuModelCppToC::Get(self)->GetAccelerator(
|
2017-05-17 11:29:28 +02:00
|
|
|
command_id, key_codeVal, shift_pressedBool, ctrl_pressedBool,
|
2012-04-19 22:31:46 +02:00
|
|
|
alt_pressedBool);
|
|
|
|
|
|
|
|
// Restore param: key_code; type: simple_byref
|
|
|
|
if (key_code)
|
|
|
|
*key_code = key_codeVal;
|
|
|
|
// Restore param: shift_pressed; type: bool_byref
|
|
|
|
if (shift_pressed)
|
2017-05-17 11:29:28 +02:00
|
|
|
*shift_pressed = shift_pressedBool ? true : false;
|
2012-04-19 22:31:46 +02:00
|
|
|
// Restore param: ctrl_pressed; type: bool_byref
|
|
|
|
if (ctrl_pressed)
|
2017-05-17 11:29:28 +02:00
|
|
|
*ctrl_pressed = ctrl_pressedBool ? true : false;
|
2012-04-19 22:31:46 +02:00
|
|
|
// Restore param: alt_pressed; type: bool_byref
|
|
|
|
if (alt_pressed)
|
2017-05-17 11:29:28 +02:00
|
|
|
*alt_pressed = alt_pressedBool ? true : false;
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_get_accelerator_at(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int index,
|
|
|
|
int* key_code,
|
|
|
|
int* shift_pressed,
|
|
|
|
int* ctrl_pressed,
|
|
|
|
int* alt_pressed) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
// Verify param: key_code; type: simple_byref
|
|
|
|
DCHECK(key_code);
|
|
|
|
if (!key_code)
|
|
|
|
return 0;
|
|
|
|
// Verify param: shift_pressed; type: bool_byref
|
|
|
|
DCHECK(shift_pressed);
|
|
|
|
if (!shift_pressed)
|
|
|
|
return 0;
|
|
|
|
// Verify param: ctrl_pressed; type: bool_byref
|
|
|
|
DCHECK(ctrl_pressed);
|
|
|
|
if (!ctrl_pressed)
|
|
|
|
return 0;
|
|
|
|
// Verify param: alt_pressed; type: bool_byref
|
|
|
|
DCHECK(alt_pressed);
|
|
|
|
if (!alt_pressed)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Translate param: key_code; type: simple_byref
|
2017-05-17 11:29:28 +02:00
|
|
|
int key_codeVal = key_code ? *key_code : 0;
|
2012-04-19 22:31:46 +02:00
|
|
|
// Translate param: shift_pressed; type: bool_byref
|
2017-05-17 11:29:28 +02:00
|
|
|
bool shift_pressedBool = (shift_pressed && *shift_pressed) ? true : false;
|
2012-04-19 22:31:46 +02:00
|
|
|
// Translate param: ctrl_pressed; type: bool_byref
|
2017-05-17 11:29:28 +02:00
|
|
|
bool ctrl_pressedBool = (ctrl_pressed && *ctrl_pressed) ? true : false;
|
2012-04-19 22:31:46 +02:00
|
|
|
// Translate param: alt_pressed; type: bool_byref
|
2017-05-17 11:29:28 +02:00
|
|
|
bool alt_pressedBool = (alt_pressed && *alt_pressed) ? true : false;
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefMenuModelCppToC::Get(self)->GetAcceleratorAt(
|
2017-05-17 11:29:28 +02:00
|
|
|
index, key_codeVal, shift_pressedBool, ctrl_pressedBool, alt_pressedBool);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Restore param: key_code; type: simple_byref
|
|
|
|
if (key_code)
|
|
|
|
*key_code = key_codeVal;
|
|
|
|
// Restore param: shift_pressed; type: bool_byref
|
|
|
|
if (shift_pressed)
|
2017-05-17 11:29:28 +02:00
|
|
|
*shift_pressed = shift_pressedBool ? true : false;
|
2012-04-19 22:31:46 +02:00
|
|
|
// Restore param: ctrl_pressed; type: bool_byref
|
|
|
|
if (ctrl_pressed)
|
2017-05-17 11:29:28 +02:00
|
|
|
*ctrl_pressed = ctrl_pressedBool ? true : false;
|
2012-04-19 22:31:46 +02:00
|
|
|
// Restore param: alt_pressed; type: bool_byref
|
|
|
|
if (alt_pressed)
|
2017-05-17 11:29:28 +02:00
|
|
|
*alt_pressed = alt_pressedBool ? true : false;
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-02-25 06:03:31 +01:00
|
|
|
int CEF_CALLBACK menu_model_set_color(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int command_id,
|
|
|
|
cef_menu_color_type_t color_type,
|
|
|
|
cef_color_t color) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-02-25 06:03:31 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefMenuModelCppToC::Get(self)->SetColor(command_id, color_type, color);
|
2017-02-25 06:03:31 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_set_color_at(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int index,
|
|
|
|
cef_menu_color_type_t color_type,
|
|
|
|
cef_color_t color) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-02-25 06:03:31 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefMenuModelCppToC::Get(self)->SetColorAt(index, color_type, color);
|
2017-02-25 06:03:31 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_get_color(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int command_id,
|
|
|
|
cef_menu_color_type_t color_type,
|
|
|
|
cef_color_t* color) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-02-25 06:03:31 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
// Verify param: color; type: simple_byref
|
|
|
|
DCHECK(color);
|
|
|
|
if (!color)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Translate param: color; type: simple_byref
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_color_t colorVal = color ? *color : 0;
|
2017-02-25 06:03:31 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefMenuModelCppToC::Get(self)->GetColor(command_id, color_type, colorVal);
|
2017-02-25 06:03:31 +01:00
|
|
|
|
|
|
|
// Restore param: color; type: simple_byref
|
|
|
|
if (color)
|
|
|
|
*color = colorVal;
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_get_color_at(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int index,
|
|
|
|
cef_menu_color_type_t color_type,
|
|
|
|
cef_color_t* color) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-02-25 06:03:31 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
// Verify param: color; type: simple_byref
|
|
|
|
DCHECK(color);
|
|
|
|
if (!color)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Translate param: color; type: simple_byref
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_color_t colorVal = color ? *color : 0;
|
2017-02-25 06:03:31 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefMenuModelCppToC::Get(self)->GetColorAt(index, color_type, colorVal);
|
2017-02-25 06:03:31 +01:00
|
|
|
|
|
|
|
// Restore param: color; type: simple_byref
|
|
|
|
if (color)
|
|
|
|
*color = colorVal;
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_set_font_list(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int command_id,
|
|
|
|
const cef_string_t* font_list) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-02-25 06:03:31 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
// Unverified params: font_list
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefMenuModelCppToC::Get(self)->SetFontList(
|
2017-05-17 11:29:28 +02:00
|
|
|
command_id, CefString(font_list));
|
2017-02-25 06:03:31 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_model_set_font_list_at(struct _cef_menu_model_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int index,
|
|
|
|
const cef_string_t* font_list) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-02-25 06:03:31 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
// Unverified params: font_list
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefMenuModelCppToC::Get(self)->SetFontListAt(index, CefString(font_list));
|
2017-02-25 06:03:31 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
} // namespace
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
// CONSTRUCTOR - Do not edit by hand.
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
CefMenuModelCppToC::CefMenuModelCppToC() {
|
2017-02-22 19:05:27 +01:00
|
|
|
GetStruct()->is_sub_menu = menu_model_is_sub_menu;
|
2015-04-26 20:40:01 +02:00
|
|
|
GetStruct()->clear = menu_model_clear;
|
|
|
|
GetStruct()->get_count = menu_model_get_count;
|
|
|
|
GetStruct()->add_separator = menu_model_add_separator;
|
|
|
|
GetStruct()->add_item = menu_model_add_item;
|
|
|
|
GetStruct()->add_check_item = menu_model_add_check_item;
|
|
|
|
GetStruct()->add_radio_item = menu_model_add_radio_item;
|
|
|
|
GetStruct()->add_sub_menu = menu_model_add_sub_menu;
|
|
|
|
GetStruct()->insert_separator_at = menu_model_insert_separator_at;
|
|
|
|
GetStruct()->insert_item_at = menu_model_insert_item_at;
|
|
|
|
GetStruct()->insert_check_item_at = menu_model_insert_check_item_at;
|
|
|
|
GetStruct()->insert_radio_item_at = menu_model_insert_radio_item_at;
|
|
|
|
GetStruct()->insert_sub_menu_at = menu_model_insert_sub_menu_at;
|
|
|
|
GetStruct()->remove = menu_model_remove;
|
|
|
|
GetStruct()->remove_at = menu_model_remove_at;
|
|
|
|
GetStruct()->get_index_of = menu_model_get_index_of;
|
|
|
|
GetStruct()->get_command_id_at = menu_model_get_command_id_at;
|
|
|
|
GetStruct()->set_command_id_at = menu_model_set_command_id_at;
|
|
|
|
GetStruct()->get_label = menu_model_get_label;
|
|
|
|
GetStruct()->get_label_at = menu_model_get_label_at;
|
|
|
|
GetStruct()->set_label = menu_model_set_label;
|
|
|
|
GetStruct()->set_label_at = menu_model_set_label_at;
|
|
|
|
GetStruct()->get_type = menu_model_get_type;
|
|
|
|
GetStruct()->get_type_at = menu_model_get_type_at;
|
|
|
|
GetStruct()->get_group_id = menu_model_get_group_id;
|
|
|
|
GetStruct()->get_group_id_at = menu_model_get_group_id_at;
|
|
|
|
GetStruct()->set_group_id = menu_model_set_group_id;
|
|
|
|
GetStruct()->set_group_id_at = menu_model_set_group_id_at;
|
|
|
|
GetStruct()->get_sub_menu = menu_model_get_sub_menu;
|
|
|
|
GetStruct()->get_sub_menu_at = menu_model_get_sub_menu_at;
|
|
|
|
GetStruct()->is_visible = menu_model_is_visible;
|
|
|
|
GetStruct()->is_visible_at = menu_model_is_visible_at;
|
|
|
|
GetStruct()->set_visible = menu_model_set_visible;
|
|
|
|
GetStruct()->set_visible_at = menu_model_set_visible_at;
|
|
|
|
GetStruct()->is_enabled = menu_model_is_enabled;
|
|
|
|
GetStruct()->is_enabled_at = menu_model_is_enabled_at;
|
|
|
|
GetStruct()->set_enabled = menu_model_set_enabled;
|
|
|
|
GetStruct()->set_enabled_at = menu_model_set_enabled_at;
|
|
|
|
GetStruct()->is_checked = menu_model_is_checked;
|
|
|
|
GetStruct()->is_checked_at = menu_model_is_checked_at;
|
|
|
|
GetStruct()->set_checked = menu_model_set_checked;
|
|
|
|
GetStruct()->set_checked_at = menu_model_set_checked_at;
|
|
|
|
GetStruct()->has_accelerator = menu_model_has_accelerator;
|
|
|
|
GetStruct()->has_accelerator_at = menu_model_has_accelerator_at;
|
|
|
|
GetStruct()->set_accelerator = menu_model_set_accelerator;
|
|
|
|
GetStruct()->set_accelerator_at = menu_model_set_accelerator_at;
|
|
|
|
GetStruct()->remove_accelerator = menu_model_remove_accelerator;
|
|
|
|
GetStruct()->remove_accelerator_at = menu_model_remove_accelerator_at;
|
|
|
|
GetStruct()->get_accelerator = menu_model_get_accelerator;
|
|
|
|
GetStruct()->get_accelerator_at = menu_model_get_accelerator_at;
|
2017-02-25 06:03:31 +01:00
|
|
|
GetStruct()->set_color = menu_model_set_color;
|
|
|
|
GetStruct()->set_color_at = menu_model_set_color_at;
|
|
|
|
GetStruct()->get_color = menu_model_get_color;
|
|
|
|
GetStruct()->get_color_at = menu_model_get_color_at;
|
|
|
|
GetStruct()->set_font_list = menu_model_set_font_list;
|
|
|
|
GetStruct()->set_font_list_at = menu_model_set_font_list_at;
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2019-01-23 16:42:12 +01:00
|
|
|
// DESTRUCTOR - Do not edit by hand.
|
|
|
|
|
|
|
|
CefMenuModelCppToC::~CefMenuModelCppToC() {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefRefPtr<CefMenuModel>
|
|
|
|
CefCppToCRefCounted<CefMenuModelCppToC, CefMenuModel, cef_menu_model_t>::
|
|
|
|
UnwrapDerived(CefWrapperType type, cef_menu_model_t* s) {
|
2015-04-26 20:40:01 +02:00
|
|
|
NOTREACHED() << "Unexpected class type: " << type;
|
|
|
|
return NULL;
|
2012-04-19 22:31:46 +02:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefWrapperType CefCppToCRefCounted<CefMenuModelCppToC,
|
|
|
|
CefMenuModel,
|
|
|
|
cef_menu_model_t>::kWrapperType =
|
|
|
|
WT_MENU_MODEL;
|