2024-01-05 19:03:36 +01:00
|
|
|
// Copyright (c) 2024 The Chromium Embedded Framework Authors. All rights
|
2016-01-19 21:09:01 +01: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.
|
|
|
|
//
|
2024-03-29 17:48:33 +01:00
|
|
|
// $hash=02040c0851514ead9307d3901c117d94d4fffb41$
|
2017-05-17 11:29:28 +02:00
|
|
|
//
|
2016-01-19 21:09:01 +01:00
|
|
|
|
2017-05-19 11:06:00 +02:00
|
|
|
#include "libcef_dll/cpptoc/views/menu_button_cpptoc.h"
|
2024-04-30 17:45:07 +02:00
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
#include "libcef_dll/cpptoc/image_cpptoc.h"
|
|
|
|
#include "libcef_dll/cpptoc/menu_model_cpptoc.h"
|
2016-01-19 21:09:01 +01:00
|
|
|
#include "libcef_dll/cpptoc/views/browser_view_cpptoc.h"
|
|
|
|
#include "libcef_dll/cpptoc/views/button_cpptoc.h"
|
|
|
|
#include "libcef_dll/cpptoc/views/label_button_cpptoc.h"
|
|
|
|
#include "libcef_dll/cpptoc/views/panel_cpptoc.h"
|
|
|
|
#include "libcef_dll/cpptoc/views/scroll_view_cpptoc.h"
|
|
|
|
#include "libcef_dll/cpptoc/views/textfield_cpptoc.h"
|
|
|
|
#include "libcef_dll/cpptoc/views/view_cpptoc.h"
|
|
|
|
#include "libcef_dll/cpptoc/views/window_cpptoc.h"
|
|
|
|
#include "libcef_dll/ctocpp/views/menu_button_delegate_ctocpp.h"
|
|
|
|
#include "libcef_dll/ctocpp/views/view_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_button_t* cef_menu_button_create(
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_menu_button_delegate_t* delegate,
|
2019-07-16 19:59:21 +02:00
|
|
|
const cef_string_t* text) {
|
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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!delegate) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
// Unverified params: text
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefRefPtr<CefMenuButton> _retval = CefMenuButton::CreateMenuButton(
|
2019-07-16 19:59:21 +02:00
|
|
|
CefMenuButtonDelegateCToCpp::Wrap(delegate), CefString(text));
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefMenuButtonCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace {
|
|
|
|
|
|
|
|
// MEMBER FUNCTIONS - Body may be edited by hand.
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
void CEF_CALLBACK
|
|
|
|
menu_button_show_menu(struct _cef_menu_button_t* self,
|
|
|
|
cef_menu_model_t* menu_model,
|
|
|
|
const cef_point_t* screen_point,
|
|
|
|
cef_menu_anchor_position_t anchor_position) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
// Verify param: menu_model; type: refptr_same
|
|
|
|
DCHECK(menu_model);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!menu_model) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
// Verify param: screen_point; type: simple_byref_const
|
|
|
|
DCHECK(screen_point);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!screen_point) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Translate param: screen_point; type: simple_byref_const
|
2017-05-17 11:29:28 +02:00
|
|
|
CefPoint screen_pointVal = screen_point ? *screen_point : CefPoint();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefMenuButtonCppToC::Get(self)->ShowMenu(
|
2017-05-17 11:29:28 +02:00
|
|
|
CefMenuModelCppToC::Unwrap(menu_model), screen_pointVal, anchor_position);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
2017-02-22 19:05:27 +01:00
|
|
|
void CEF_CALLBACK menu_button_trigger_menu(struct _cef_menu_button_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);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2017-02-22 19:05:27 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-22 19:05:27 +01:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefMenuButtonCppToC::Get(self)->TriggerMenu();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_menu_button_t* CEF_CALLBACK
|
|
|
|
menu_button_as_menu_button(struct _cef_label_button_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefMenuButton> _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->AsMenuButton();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefMenuButtonCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK menu_button_set_text(struct _cef_label_button_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
const cef_string_t* text) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
// Verify param: text; type: string_byref_const
|
|
|
|
DCHECK(text);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!text) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->SetText(CefString(text));
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t CEF_CALLBACK
|
|
|
|
menu_button_get_text(struct _cef_label_button_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefString _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->GetText();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK menu_button_set_image(struct _cef_label_button_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_button_state_t button_state,
|
|
|
|
cef_image_t* image) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
// Unverified params: image
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->SetImage(button_state, CefImageCppToC::Unwrap(image));
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_image_t* CEF_CALLBACK
|
|
|
|
menu_button_get_image(struct _cef_label_button_t* self,
|
|
|
|
cef_button_state_t button_state) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefImage> _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->GetImage(button_state);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefImageCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK menu_button_set_text_color(struct _cef_label_button_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_button_state_t for_state,
|
|
|
|
cef_color_t color) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->SetTextColor(for_state, color);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
void CEF_CALLBACK
|
|
|
|
menu_button_set_enabled_text_colors(struct _cef_label_button_t* self,
|
|
|
|
cef_color_t color) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->SetEnabledTextColors(color);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK menu_button_set_font_list(struct _cef_label_button_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
const cef_string_t* font_list) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
// Verify param: font_list; type: string_byref_const
|
|
|
|
DCHECK(font_list);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!font_list) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->SetFontList(CefString(font_list));
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
void CEF_CALLBACK
|
|
|
|
menu_button_set_horizontal_alignment(struct _cef_label_button_t* self,
|
|
|
|
cef_horizontal_alignment_t alignment) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->SetHorizontalAlignment(alignment);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK menu_button_set_minimum_size(struct _cef_label_button_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
const cef_size_t* size) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
// Verify param: size; type: simple_byref_const
|
|
|
|
DCHECK(size);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!size) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Translate param: size; type: simple_byref_const
|
2017-05-17 11:29:28 +02:00
|
|
|
CefSize sizeVal = size ? *size : CefSize();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->SetMinimumSize(sizeVal);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK menu_button_set_maximum_size(struct _cef_label_button_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
const cef_size_t* size) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
// Verify param: size; type: simple_byref_const
|
|
|
|
DCHECK(size);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!size) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Translate param: size; type: simple_byref_const
|
2017-05-17 11:29:28 +02:00
|
|
|
CefSize sizeVal = size ? *size : CefSize();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->SetMaximumSize(sizeVal);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_label_button_t* CEF_CALLBACK
|
|
|
|
menu_button_as_label_button(struct _cef_button_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefLabelButton> _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->AsLabelButton();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefLabelButtonCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK menu_button_set_state(struct _cef_button_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_button_state_t state) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->SetState(state);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_button_state_t CEF_CALLBACK
|
|
|
|
menu_button_get_state(struct _cef_button_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return CEF_BUTTON_STATE_NORMAL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_button_state_t _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->GetState();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-02-24 19:02:07 +01:00
|
|
|
void CEF_CALLBACK menu_button_set_ink_drop_enabled(struct _cef_button_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int enabled) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-02-24 19:02:07 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2017-02-24 19:02:07 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-24 19:02:07 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->SetInkDropEnabled(enabled ? true : false);
|
2017-02-24 19:02:07 +01:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
void CEF_CALLBACK
|
|
|
|
menu_button_set_tooltip_text(struct _cef_button_t* self,
|
|
|
|
const cef_string_t* tooltip_text) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
// Verify param: tooltip_text; type: string_byref_const
|
|
|
|
DCHECK(tooltip_text);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!tooltip_text) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->SetTooltipText(CefString(tooltip_text));
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK menu_button_set_accessible_name(struct _cef_button_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
const cef_string_t* name) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
// Verify param: name; type: string_byref_const
|
|
|
|
DCHECK(name);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!name) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->SetAccessibleName(CefString(name));
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_browser_view_t* CEF_CALLBACK
|
|
|
|
menu_button_as_browser_view(struct _cef_view_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefBrowserView> _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->AsBrowserView();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefBrowserViewCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
cef_button_t* CEF_CALLBACK menu_button_as_button(struct _cef_view_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefButton> _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->AsButton();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefButtonCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
cef_panel_t* CEF_CALLBACK menu_button_as_panel(struct _cef_view_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefPanel> _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->AsPanel();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefPanelCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_scroll_view_t* CEF_CALLBACK
|
|
|
|
menu_button_as_scroll_view(struct _cef_view_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefScrollView> _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->AsScrollView();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefScrollViewCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_textfield_t* CEF_CALLBACK
|
|
|
|
menu_button_as_textfield(struct _cef_view_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefTextfield> _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->AsTextfield();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefTextfieldCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t CEF_CALLBACK
|
|
|
|
menu_button_get_type_string(struct _cef_view_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefString _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->GetTypeString();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t CEF_CALLBACK
|
|
|
|
menu_button_to_string(struct _cef_view_t* self, int include_children) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefString _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->ToString(include_children ? true : false);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_button_is_valid(struct _cef_view_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->IsValid();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_button_is_attached(struct _cef_view_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->IsAttached();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_button_is_same(struct _cef_view_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_view_t* that) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
// Verify param: that; type: refptr_same
|
|
|
|
DCHECK(that);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!that) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->IsSame(CefViewCppToC::Unwrap(that));
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_view_delegate_t* CEF_CALLBACK
|
|
|
|
menu_button_get_delegate(struct _cef_view_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefViewDelegate> _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->GetDelegate();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: refptr_diff
|
|
|
|
return CefViewDelegateCToCpp::Unwrap(_retval);
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_window_t* CEF_CALLBACK
|
|
|
|
menu_button_get_window(struct _cef_view_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefWindow> _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->GetWindow();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefWindowCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_button_get_id(struct _cef_view_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->GetID();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK menu_button_set_id(struct _cef_view_t* self, int id) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->SetID(id);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
2017-02-18 03:08:51 +01:00
|
|
|
int CEF_CALLBACK menu_button_get_group_id(struct _cef_view_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-02-18 03:08:51 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2017-02-18 03:08:51 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-18 03:08:51 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->GetGroupID();
|
2017-02-18 03:08:51 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK menu_button_set_group_id(struct _cef_view_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int group_id) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-02-18 03:08:51 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2017-02-18 03:08:51 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-18 03:08:51 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->SetGroupID(group_id);
|
2017-02-18 03:08:51 +01:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_view_t* CEF_CALLBACK
|
|
|
|
menu_button_get_parent_view(struct _cef_view_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefView> _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->GetParentView();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefViewCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_view_t* CEF_CALLBACK
|
|
|
|
menu_button_get_view_for_id(struct _cef_view_t* self, int id) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefView> _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->GetViewForID(id);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefViewCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK menu_button_set_bounds(struct _cef_view_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
const cef_rect_t* bounds) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
// Verify param: bounds; type: simple_byref_const
|
|
|
|
DCHECK(bounds);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!bounds) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Translate param: bounds; type: simple_byref_const
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRect boundsVal = bounds ? *bounds : CefRect();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->SetBounds(boundsVal);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
cef_rect_t CEF_CALLBACK menu_button_get_bounds(struct _cef_view_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return CefRect();
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_rect_t _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->GetBounds();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_rect_t CEF_CALLBACK
|
|
|
|
menu_button_get_bounds_in_screen(struct _cef_view_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return CefRect();
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_rect_t _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->GetBoundsInScreen();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK menu_button_set_size(struct _cef_view_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
const cef_size_t* size) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
// Verify param: size; type: simple_byref_const
|
|
|
|
DCHECK(size);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!size) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Translate param: size; type: simple_byref_const
|
2017-05-17 11:29:28 +02:00
|
|
|
CefSize sizeVal = size ? *size : CefSize();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->SetSize(sizeVal);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
cef_size_t CEF_CALLBACK menu_button_get_size(struct _cef_view_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return CefSize();
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_size_t _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->GetSize();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK menu_button_set_position(struct _cef_view_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
const cef_point_t* position) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
// Verify param: position; type: simple_byref_const
|
|
|
|
DCHECK(position);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!position) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Translate param: position; type: simple_byref_const
|
2017-05-17 11:29:28 +02:00
|
|
|
CefPoint positionVal = position ? *position : CefPoint();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->SetPosition(positionVal);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
cef_point_t CEF_CALLBACK menu_button_get_position(struct _cef_view_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return CefPoint();
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_point_t _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->GetPosition();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2021-08-28 03:55:15 +02:00
|
|
|
void CEF_CALLBACK menu_button_set_insets(struct _cef_view_t* self,
|
|
|
|
const cef_insets_t* insets) {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2021-08-28 03:55:15 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2021-08-28 03:55:15 +02:00
|
|
|
// Verify param: insets; type: simple_byref_const
|
|
|
|
DCHECK(insets);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!insets) {
|
2021-08-28 03:55:15 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2021-08-28 03:55:15 +02:00
|
|
|
|
|
|
|
// Translate param: insets; type: simple_byref_const
|
|
|
|
CefInsets insetsVal = insets ? *insets : CefInsets();
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->SetInsets(insetsVal);
|
|
|
|
}
|
|
|
|
|
|
|
|
cef_insets_t CEF_CALLBACK menu_button_get_insets(struct _cef_view_t* self) {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2021-08-28 03:55:15 +02:00
|
|
|
return CefInsets();
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2021-08-28 03:55:15 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_insets_t _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->GetInsets();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_size_t CEF_CALLBACK
|
|
|
|
menu_button_get_preferred_size(struct _cef_view_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return CefSize();
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_size_t _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->GetPreferredSize();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK menu_button_size_to_preferred_size(struct _cef_view_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->SizeToPreferredSize();
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
cef_size_t CEF_CALLBACK menu_button_get_minimum_size(struct _cef_view_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return CefSize();
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_size_t _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->GetMinimumSize();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
cef_size_t CEF_CALLBACK menu_button_get_maximum_size(struct _cef_view_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return CefSize();
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_size_t _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->GetMaximumSize();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_button_get_height_for_width(struct _cef_view_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int width) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->GetHeightForWidth(width);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK menu_button_invalidate_layout(struct _cef_view_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->InvalidateLayout();
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK menu_button_set_visible(struct _cef_view_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int visible) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->SetVisible(visible ? true : false);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_button_is_visible(struct _cef_view_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->IsVisible();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_button_is_drawn(struct _cef_view_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->IsDrawn();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK menu_button_set_enabled(struct _cef_view_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int enabled) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->SetEnabled(enabled ? true : false);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_button_is_enabled(struct _cef_view_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->IsEnabled();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK menu_button_set_focusable(struct _cef_view_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int focusable) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->SetFocusable(focusable ? true : false);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_button_is_focusable(struct _cef_view_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->IsFocusable();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
int CEF_CALLBACK
|
|
|
|
menu_button_is_accessibility_focusable(struct _cef_view_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->IsAccessibilityFocusable();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK menu_button_request_focus(struct _cef_view_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->RequestFocus();
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK menu_button_set_background_color(struct _cef_view_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_color_t color) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->SetBackgroundColor(color);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_color_t CEF_CALLBACK
|
|
|
|
menu_button_get_background_color(struct _cef_view_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_color_t _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->GetBackgroundColor();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2024-03-29 17:48:33 +01:00
|
|
|
cef_color_t CEF_CALLBACK menu_button_get_theme_color(struct _cef_view_t* self,
|
|
|
|
int color_id) {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_color_t _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->GetThemeColor(color_id);
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
int CEF_CALLBACK menu_button_convert_point_to_screen(struct _cef_view_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_point_t* point) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
// Verify param: point; type: simple_byref
|
|
|
|
DCHECK(point);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!point) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Translate param: point; type: simple_byref
|
2017-05-17 11:29:28 +02:00
|
|
|
CefPoint pointVal = point ? *point : CefPoint();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->ConvertPointToScreen(pointVal);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Restore param: point; type: simple_byref
|
2023-01-02 23:47:15 +01:00
|
|
|
if (point) {
|
2016-01-19 21:09:01 +01:00
|
|
|
*point = pointVal;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_button_convert_point_from_screen(struct _cef_view_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_point_t* point) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
// Verify param: point; type: simple_byref
|
|
|
|
DCHECK(point);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!point) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Translate param: point; type: simple_byref
|
2017-05-17 11:29:28 +02:00
|
|
|
CefPoint pointVal = point ? *point : CefPoint();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->ConvertPointFromScreen(pointVal);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Restore param: point; type: simple_byref
|
2023-01-02 23:47:15 +01:00
|
|
|
if (point) {
|
2016-01-19 21:09:01 +01:00
|
|
|
*point = pointVal;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_button_convert_point_to_window(struct _cef_view_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_point_t* point) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
// Verify param: point; type: simple_byref
|
|
|
|
DCHECK(point);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!point) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Translate param: point; type: simple_byref
|
2017-05-17 11:29:28 +02:00
|
|
|
CefPoint pointVal = point ? *point : CefPoint();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->ConvertPointToWindow(pointVal);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Restore param: point; type: simple_byref
|
2023-01-02 23:47:15 +01:00
|
|
|
if (point) {
|
2016-01-19 21:09:01 +01:00
|
|
|
*point = pointVal;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_button_convert_point_from_window(struct _cef_view_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_point_t* point) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
// Verify param: point; type: simple_byref
|
|
|
|
DCHECK(point);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!point) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Translate param: point; type: simple_byref
|
2017-05-17 11:29:28 +02:00
|
|
|
CefPoint pointVal = point ? *point : CefPoint();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->ConvertPointFromWindow(pointVal);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Restore param: point; type: simple_byref
|
2023-01-02 23:47:15 +01:00
|
|
|
if (point) {
|
2016-01-19 21:09:01 +01:00
|
|
|
*point = pointVal;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_button_convert_point_to_view(struct _cef_view_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_view_t* view,
|
|
|
|
cef_point_t* point) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
// Verify param: view; type: refptr_same
|
|
|
|
DCHECK(view);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!view) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
// Verify param: point; type: simple_byref
|
|
|
|
DCHECK(point);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!point) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Translate param: point; type: simple_byref
|
2017-05-17 11:29:28 +02:00
|
|
|
CefPoint pointVal = point ? *point : CefPoint();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->ConvertPointToView(CefViewCppToC::Unwrap(view), pointVal);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Restore param: point; type: simple_byref
|
2023-01-02 23:47:15 +01:00
|
|
|
if (point) {
|
2016-01-19 21:09:01 +01:00
|
|
|
*point = pointVal;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK menu_button_convert_point_from_view(struct _cef_view_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_view_t* view,
|
|
|
|
cef_point_t* point) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
// Verify param: view; type: refptr_same
|
|
|
|
DCHECK(view);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!view) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
// Verify param: point; type: simple_byref
|
|
|
|
DCHECK(point);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!point) {
|
2016-01-19 21:09:01 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Translate param: point; type: simple_byref
|
2017-05-17 11:29:28 +02:00
|
|
|
CefPoint pointVal = point ? *point : CefPoint();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
|
|
|
|
->ConvertPointFromView(CefViewCppToC::Unwrap(view), pointVal);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Restore param: point; type: simple_byref
|
2023-01-02 23:47:15 +01:00
|
|
|
if (point) {
|
2016-01-19 21:09:01 +01:00
|
|
|
*point = pointVal;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace
|
|
|
|
|
|
|
|
// CONSTRUCTOR - Do not edit by hand.
|
|
|
|
|
|
|
|
CefMenuButtonCppToC::CefMenuButtonCppToC() {
|
|
|
|
GetStruct()->show_menu = menu_button_show_menu;
|
2017-02-22 19:05:27 +01:00
|
|
|
GetStruct()->trigger_menu = menu_button_trigger_menu;
|
2016-01-19 21:09:01 +01:00
|
|
|
GetStruct()->base.as_menu_button = menu_button_as_menu_button;
|
|
|
|
GetStruct()->base.set_text = menu_button_set_text;
|
|
|
|
GetStruct()->base.get_text = menu_button_get_text;
|
|
|
|
GetStruct()->base.set_image = menu_button_set_image;
|
|
|
|
GetStruct()->base.get_image = menu_button_get_image;
|
|
|
|
GetStruct()->base.set_text_color = menu_button_set_text_color;
|
|
|
|
GetStruct()->base.set_enabled_text_colors =
|
|
|
|
menu_button_set_enabled_text_colors;
|
|
|
|
GetStruct()->base.set_font_list = menu_button_set_font_list;
|
|
|
|
GetStruct()->base.set_horizontal_alignment =
|
|
|
|
menu_button_set_horizontal_alignment;
|
|
|
|
GetStruct()->base.set_minimum_size = menu_button_set_minimum_size;
|
|
|
|
GetStruct()->base.set_maximum_size = menu_button_set_maximum_size;
|
|
|
|
GetStruct()->base.base.as_label_button = menu_button_as_label_button;
|
|
|
|
GetStruct()->base.base.set_state = menu_button_set_state;
|
|
|
|
GetStruct()->base.base.get_state = menu_button_get_state;
|
2017-02-24 19:02:07 +01:00
|
|
|
GetStruct()->base.base.set_ink_drop_enabled =
|
|
|
|
menu_button_set_ink_drop_enabled;
|
2016-01-19 21:09:01 +01:00
|
|
|
GetStruct()->base.base.set_tooltip_text = menu_button_set_tooltip_text;
|
|
|
|
GetStruct()->base.base.set_accessible_name = menu_button_set_accessible_name;
|
|
|
|
GetStruct()->base.base.base.as_browser_view = menu_button_as_browser_view;
|
|
|
|
GetStruct()->base.base.base.as_button = menu_button_as_button;
|
|
|
|
GetStruct()->base.base.base.as_panel = menu_button_as_panel;
|
|
|
|
GetStruct()->base.base.base.as_scroll_view = menu_button_as_scroll_view;
|
|
|
|
GetStruct()->base.base.base.as_textfield = menu_button_as_textfield;
|
|
|
|
GetStruct()->base.base.base.get_type_string = menu_button_get_type_string;
|
|
|
|
GetStruct()->base.base.base.to_string = menu_button_to_string;
|
|
|
|
GetStruct()->base.base.base.is_valid = menu_button_is_valid;
|
|
|
|
GetStruct()->base.base.base.is_attached = menu_button_is_attached;
|
|
|
|
GetStruct()->base.base.base.is_same = menu_button_is_same;
|
|
|
|
GetStruct()->base.base.base.get_delegate = menu_button_get_delegate;
|
|
|
|
GetStruct()->base.base.base.get_window = menu_button_get_window;
|
|
|
|
GetStruct()->base.base.base.get_id = menu_button_get_id;
|
|
|
|
GetStruct()->base.base.base.set_id = menu_button_set_id;
|
2017-02-18 03:08:51 +01:00
|
|
|
GetStruct()->base.base.base.get_group_id = menu_button_get_group_id;
|
|
|
|
GetStruct()->base.base.base.set_group_id = menu_button_set_group_id;
|
2016-01-19 21:09:01 +01:00
|
|
|
GetStruct()->base.base.base.get_parent_view = menu_button_get_parent_view;
|
|
|
|
GetStruct()->base.base.base.get_view_for_id = menu_button_get_view_for_id;
|
|
|
|
GetStruct()->base.base.base.set_bounds = menu_button_set_bounds;
|
|
|
|
GetStruct()->base.base.base.get_bounds = menu_button_get_bounds;
|
|
|
|
GetStruct()->base.base.base.get_bounds_in_screen =
|
|
|
|
menu_button_get_bounds_in_screen;
|
|
|
|
GetStruct()->base.base.base.set_size = menu_button_set_size;
|
|
|
|
GetStruct()->base.base.base.get_size = menu_button_get_size;
|
|
|
|
GetStruct()->base.base.base.set_position = menu_button_set_position;
|
|
|
|
GetStruct()->base.base.base.get_position = menu_button_get_position;
|
2021-08-28 03:55:15 +02:00
|
|
|
GetStruct()->base.base.base.set_insets = menu_button_set_insets;
|
|
|
|
GetStruct()->base.base.base.get_insets = menu_button_get_insets;
|
2016-01-19 21:09:01 +01:00
|
|
|
GetStruct()->base.base.base.get_preferred_size =
|
|
|
|
menu_button_get_preferred_size;
|
|
|
|
GetStruct()->base.base.base.size_to_preferred_size =
|
|
|
|
menu_button_size_to_preferred_size;
|
|
|
|
GetStruct()->base.base.base.get_minimum_size = menu_button_get_minimum_size;
|
|
|
|
GetStruct()->base.base.base.get_maximum_size = menu_button_get_maximum_size;
|
|
|
|
GetStruct()->base.base.base.get_height_for_width =
|
|
|
|
menu_button_get_height_for_width;
|
|
|
|
GetStruct()->base.base.base.invalidate_layout = menu_button_invalidate_layout;
|
|
|
|
GetStruct()->base.base.base.set_visible = menu_button_set_visible;
|
|
|
|
GetStruct()->base.base.base.is_visible = menu_button_is_visible;
|
|
|
|
GetStruct()->base.base.base.is_drawn = menu_button_is_drawn;
|
|
|
|
GetStruct()->base.base.base.set_enabled = menu_button_set_enabled;
|
|
|
|
GetStruct()->base.base.base.is_enabled = menu_button_is_enabled;
|
|
|
|
GetStruct()->base.base.base.set_focusable = menu_button_set_focusable;
|
|
|
|
GetStruct()->base.base.base.is_focusable = menu_button_is_focusable;
|
|
|
|
GetStruct()->base.base.base.is_accessibility_focusable =
|
|
|
|
menu_button_is_accessibility_focusable;
|
|
|
|
GetStruct()->base.base.base.request_focus = menu_button_request_focus;
|
|
|
|
GetStruct()->base.base.base.set_background_color =
|
|
|
|
menu_button_set_background_color;
|
|
|
|
GetStruct()->base.base.base.get_background_color =
|
|
|
|
menu_button_get_background_color;
|
2024-03-29 17:48:33 +01:00
|
|
|
GetStruct()->base.base.base.get_theme_color = menu_button_get_theme_color;
|
2016-01-19 21:09:01 +01:00
|
|
|
GetStruct()->base.base.base.convert_point_to_screen =
|
|
|
|
menu_button_convert_point_to_screen;
|
|
|
|
GetStruct()->base.base.base.convert_point_from_screen =
|
|
|
|
menu_button_convert_point_from_screen;
|
|
|
|
GetStruct()->base.base.base.convert_point_to_window =
|
|
|
|
menu_button_convert_point_to_window;
|
|
|
|
GetStruct()->base.base.base.convert_point_from_window =
|
|
|
|
menu_button_convert_point_from_window;
|
|
|
|
GetStruct()->base.base.base.convert_point_to_view =
|
|
|
|
menu_button_convert_point_to_view;
|
|
|
|
GetStruct()->base.base.base.convert_point_from_view =
|
|
|
|
menu_button_convert_point_from_view;
|
|
|
|
}
|
|
|
|
|
2019-01-23 16:42:12 +01:00
|
|
|
// DESTRUCTOR - Do not edit by hand.
|
|
|
|
|
|
|
|
CefMenuButtonCppToC::~CefMenuButtonCppToC() {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefRefPtr<CefMenuButton>
|
|
|
|
CefCppToCRefCounted<CefMenuButtonCppToC, CefMenuButton, cef_menu_button_t>::
|
|
|
|
UnwrapDerived(CefWrapperType type, cef_menu_button_t* s) {
|
2023-05-08 17:15:02 +02:00
|
|
|
DCHECK(false) << "Unexpected class type: " << type;
|
2020-01-15 14:53:19 +01:00
|
|
|
return nullptr;
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefWrapperType CefCppToCRefCounted<CefMenuButtonCppToC,
|
|
|
|
CefMenuButton,
|
|
|
|
cef_menu_button_t>::kWrapperType =
|
|
|
|
WT_MENU_BUTTON;
|