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-11-05 20:58:45 +01:00
|
|
|
// $hash=3ec9c298cd10893df63c6f7fd360968a5560a48c$
|
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/panel_cpptoc.h"
|
2024-04-30 17:45:07 +02:00
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
#include "libcef_dll/cpptoc/views/box_layout_cpptoc.h"
|
|
|
|
#include "libcef_dll/cpptoc/views/browser_view_cpptoc.h"
|
|
|
|
#include "libcef_dll/cpptoc/views/button_cpptoc.h"
|
|
|
|
#include "libcef_dll/cpptoc/views/fill_layout_cpptoc.h"
|
|
|
|
#include "libcef_dll/cpptoc/views/layout_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/panel_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_panel_t* cef_panel_create(cef_panel_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
|
|
|
|
|
|
|
|
// Unverified params: delegate
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefPanel> _retval =
|
|
|
|
CefPanel::CreatePanel(CefPanelDelegateCToCpp::Wrap(delegate));
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefPanelCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace {
|
|
|
|
|
|
|
|
// MEMBER FUNCTIONS - Body may be edited by hand.
|
|
|
|
|
|
|
|
struct _cef_window_t* CEF_CALLBACK panel_as_window(struct _cef_panel_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
|
|
|
|
CefRefPtr<CefWindow> _retval = CefPanelCppToC::Get(self)->AsWindow();
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefWindowCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_fill_layout_t* CEF_CALLBACK
|
|
|
|
panel_set_to_fill_layout(struct _cef_panel_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<CefFillLayout> _retval =
|
|
|
|
CefPanelCppToC::Get(self)->SetToFillLayout();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefFillLayoutCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_box_layout_t* CEF_CALLBACK
|
|
|
|
panel_set_to_box_layout(struct _cef_panel_t* self,
|
2022-07-14 10:13:29 +02:00
|
|
|
const cef_box_layout_settings_t* settings) {
|
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
|
|
|
}
|
2022-07-14 10:13:29 +02:00
|
|
|
// Verify param: settings; type: simple_byref_const
|
2016-01-19 21:09:01 +01:00
|
|
|
DCHECK(settings);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!settings) {
|
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
|
|
|
|
2022-07-14 10:13:29 +02:00
|
|
|
// Translate param: settings; type: simple_byref_const
|
|
|
|
CefBoxLayoutSettings settingsVal =
|
|
|
|
settings ? *settings : CefBoxLayoutSettings();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefBoxLayout> _retval =
|
2022-07-14 10:13:29 +02:00
|
|
|
CefPanelCppToC::Get(self)->SetToBoxLayout(settingsVal);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefBoxLayoutCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
cef_layout_t* CEF_CALLBACK panel_get_layout(struct _cef_panel_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
|
|
|
|
CefRefPtr<CefLayout> _retval = CefPanelCppToC::Get(self)->GetLayout();
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefLayoutCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK panel_layout(struct _cef_panel_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
|
|
|
|
CefPanelCppToC::Get(self)->Layout();
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK panel_add_child_view(struct _cef_panel_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_view_t* view) {
|
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: 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;
|
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
|
|
|
CefPanelCppToC::Get(self)->AddChildView(CefViewCppToC::Unwrap(view));
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK panel_add_child_view_at(struct _cef_panel_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_view_t* view,
|
|
|
|
int index) {
|
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: 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;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2016-01-19 21:09:01 +01:00
|
|
|
// Verify param: index; type: simple_byval
|
|
|
|
DCHECK_GE(index, 0);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (index < 0) {
|
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
|
|
|
CefPanelCppToC::Get(self)->AddChildViewAt(CefViewCppToC::Unwrap(view), index);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK panel_reorder_child_view(struct _cef_panel_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_view_t* view,
|
|
|
|
int index) {
|
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: 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;
|
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
|
|
|
CefPanelCppToC::Get(self)->ReorderChildView(CefViewCppToC::Unwrap(view),
|
|
|
|
index);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK panel_remove_child_view(struct _cef_panel_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_view_t* view) {
|
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: 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;
|
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
|
|
|
CefPanelCppToC::Get(self)->RemoveChildView(CefViewCppToC::Unwrap(view));
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK panel_remove_all_child_views(struct _cef_panel_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
|
|
|
|
CefPanelCppToC::Get(self)->RemoveAllChildViews();
|
|
|
|
}
|
|
|
|
|
|
|
|
size_t CEF_CALLBACK panel_get_child_view_count(struct _cef_panel_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
|
|
|
|
size_t _retval = CefPanelCppToC::Get(self)->GetChildViewCount();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_view_t* CEF_CALLBACK
|
|
|
|
panel_get_child_view_at(struct _cef_panel_t* self, int index) {
|
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
|
|
|
// Verify param: index; type: simple_byval
|
|
|
|
DCHECK_GE(index, 0);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (index < 0) {
|
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 = CefPanelCppToC::Get(self)->GetChildViewAt(index);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefViewCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_browser_view_t* CEF_CALLBACK
|
|
|
|
panel_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 =
|
|
|
|
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
|
|
|
|
->AsBrowserView();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefBrowserViewCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
cef_button_t* CEF_CALLBACK panel_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 =
|
|
|
|
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->AsButton();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefButtonCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
cef_panel_t* CEF_CALLBACK panel_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 =
|
|
|
|
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->AsPanel();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefPanelCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
cef_scroll_view_t* CEF_CALLBACK panel_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 =
|
|
|
|
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->AsScrollView();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefScrollViewCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
cef_textfield_t* CEF_CALLBACK panel_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 =
|
|
|
|
CefPanelCppToC::Get(reinterpret_cast<cef_panel_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
|
|
|
|
panel_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 = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
|
|
|
|
->GetTypeString();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
|
|
|
cef_string_userfree_t CEF_CALLBACK panel_to_string(struct _cef_view_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
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 = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
|
|
|
|
->ToString(include_children ? true : false);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK panel_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 =
|
|
|
|
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->IsValid();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK panel_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 =
|
|
|
|
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->IsAttached();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK panel_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 = CefPanelCppToC::Get(reinterpret_cast<cef_panel_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
|
|
|
|
panel_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 =
|
|
|
|
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->GetDelegate();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: refptr_diff
|
|
|
|
return CefViewDelegateCToCpp::Unwrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
struct _cef_window_t* CEF_CALLBACK panel_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 =
|
|
|
|
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->GetWindow();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefWindowCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK panel_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 =
|
|
|
|
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->GetID();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK panel_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
|
|
|
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->SetID(id);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
2017-02-18 03:08:51 +01:00
|
|
|
int CEF_CALLBACK panel_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 =
|
|
|
|
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->GetGroupID();
|
2017-02-18 03:08:51 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK panel_set_group_id(struct _cef_view_t* self, 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
|
|
|
CefPanelCppToC::Get(reinterpret_cast<cef_panel_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
|
|
|
|
panel_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 =
|
|
|
|
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
|
|
|
|
->GetParentView();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefViewCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
struct _cef_view_t* CEF_CALLBACK panel_get_view_for_id(struct _cef_view_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
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 =
|
|
|
|
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
|
|
|
|
->GetViewForID(id);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefViewCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK panel_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
|
|
|
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
|
|
|
|
->SetBounds(boundsVal);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
cef_rect_t CEF_CALLBACK panel_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 =
|
|
|
|
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->GetBounds();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
cef_rect_t CEF_CALLBACK panel_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 = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
|
|
|
|
->GetBoundsInScreen();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK panel_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
|
|
|
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->SetSize(sizeVal);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
cef_size_t CEF_CALLBACK panel_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 =
|
|
|
|
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->GetSize();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK panel_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
|
|
|
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
|
|
|
|
->SetPosition(positionVal);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
cef_point_t CEF_CALLBACK panel_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 =
|
|
|
|
CefPanelCppToC::Get(reinterpret_cast<cef_panel_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 panel_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
|
|
|
|
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
|
|
|
|
->SetInsets(insetsVal);
|
|
|
|
}
|
|
|
|
|
|
|
|
cef_insets_t CEF_CALLBACK panel_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 =
|
|
|
|
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->GetInsets();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
cef_size_t CEF_CALLBACK panel_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 = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
|
|
|
|
->GetPreferredSize();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK panel_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
|
|
|
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
|
|
|
|
->SizeToPreferredSize();
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
cef_size_t CEF_CALLBACK panel_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 = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
|
|
|
|
->GetMinimumSize();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
cef_size_t CEF_CALLBACK panel_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 = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
|
|
|
|
->GetMaximumSize();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK panel_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 = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
|
|
|
|
->GetHeightForWidth(width);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK panel_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
|
|
|
|
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->InvalidateLayout();
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK panel_set_visible(struct _cef_view_t* self, 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
|
|
|
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
|
|
|
|
->SetVisible(visible ? true : false);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK panel_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 =
|
|
|
|
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->IsVisible();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK panel_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 =
|
|
|
|
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->IsDrawn();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK panel_set_enabled(struct _cef_view_t* self, 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
|
|
|
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
|
|
|
|
->SetEnabled(enabled ? true : false);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK panel_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 =
|
|
|
|
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->IsEnabled();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK panel_set_focusable(struct _cef_view_t* self, 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
|
|
|
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
|
|
|
|
->SetFocusable(focusable ? true : false);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK panel_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 =
|
|
|
|
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->IsFocusable();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK panel_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 = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
|
|
|
|
->IsAccessibilityFocusable();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2024-11-05 20:58:45 +01:00
|
|
|
int CEF_CALLBACK panel_has_focus(struct _cef_view_t* self) {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval =
|
|
|
|
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->HasFocus();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
void CEF_CALLBACK panel_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
|
|
|
|
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->RequestFocus();
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK panel_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
|
|
|
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
|
|
|
|
->SetBackgroundColor(color);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
cef_color_t CEF_CALLBACK panel_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 =
|
|
|
|
CefPanelCppToC::Get(reinterpret_cast<cef_panel_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 panel_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 =
|
|
|
|
CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
|
|
|
|
->GetThemeColor(color_id);
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
int CEF_CALLBACK panel_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 = CefPanelCppToC::Get(reinterpret_cast<cef_panel_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 panel_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 = CefPanelCppToC::Get(reinterpret_cast<cef_panel_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 panel_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 = CefPanelCppToC::Get(reinterpret_cast<cef_panel_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 panel_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 = CefPanelCppToC::Get(reinterpret_cast<cef_panel_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 panel_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 =
|
|
|
|
CefPanelCppToC::Get(reinterpret_cast<cef_panel_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 panel_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 =
|
|
|
|
CefPanelCppToC::Get(reinterpret_cast<cef_panel_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.
|
|
|
|
|
|
|
|
CefPanelCppToC::CefPanelCppToC() {
|
|
|
|
GetStruct()->as_window = panel_as_window;
|
|
|
|
GetStruct()->set_to_fill_layout = panel_set_to_fill_layout;
|
|
|
|
GetStruct()->set_to_box_layout = panel_set_to_box_layout;
|
|
|
|
GetStruct()->get_layout = panel_get_layout;
|
|
|
|
GetStruct()->layout = panel_layout;
|
|
|
|
GetStruct()->add_child_view = panel_add_child_view;
|
|
|
|
GetStruct()->add_child_view_at = panel_add_child_view_at;
|
|
|
|
GetStruct()->reorder_child_view = panel_reorder_child_view;
|
|
|
|
GetStruct()->remove_child_view = panel_remove_child_view;
|
|
|
|
GetStruct()->remove_all_child_views = panel_remove_all_child_views;
|
|
|
|
GetStruct()->get_child_view_count = panel_get_child_view_count;
|
|
|
|
GetStruct()->get_child_view_at = panel_get_child_view_at;
|
|
|
|
GetStruct()->base.as_browser_view = panel_as_browser_view;
|
|
|
|
GetStruct()->base.as_button = panel_as_button;
|
|
|
|
GetStruct()->base.as_panel = panel_as_panel;
|
|
|
|
GetStruct()->base.as_scroll_view = panel_as_scroll_view;
|
|
|
|
GetStruct()->base.as_textfield = panel_as_textfield;
|
|
|
|
GetStruct()->base.get_type_string = panel_get_type_string;
|
|
|
|
GetStruct()->base.to_string = panel_to_string;
|
|
|
|
GetStruct()->base.is_valid = panel_is_valid;
|
|
|
|
GetStruct()->base.is_attached = panel_is_attached;
|
|
|
|
GetStruct()->base.is_same = panel_is_same;
|
|
|
|
GetStruct()->base.get_delegate = panel_get_delegate;
|
|
|
|
GetStruct()->base.get_window = panel_get_window;
|
|
|
|
GetStruct()->base.get_id = panel_get_id;
|
|
|
|
GetStruct()->base.set_id = panel_set_id;
|
2017-02-18 03:08:51 +01:00
|
|
|
GetStruct()->base.get_group_id = panel_get_group_id;
|
|
|
|
GetStruct()->base.set_group_id = panel_set_group_id;
|
2016-01-19 21:09:01 +01:00
|
|
|
GetStruct()->base.get_parent_view = panel_get_parent_view;
|
|
|
|
GetStruct()->base.get_view_for_id = panel_get_view_for_id;
|
|
|
|
GetStruct()->base.set_bounds = panel_set_bounds;
|
|
|
|
GetStruct()->base.get_bounds = panel_get_bounds;
|
|
|
|
GetStruct()->base.get_bounds_in_screen = panel_get_bounds_in_screen;
|
|
|
|
GetStruct()->base.set_size = panel_set_size;
|
|
|
|
GetStruct()->base.get_size = panel_get_size;
|
|
|
|
GetStruct()->base.set_position = panel_set_position;
|
|
|
|
GetStruct()->base.get_position = panel_get_position;
|
2021-08-28 03:55:15 +02:00
|
|
|
GetStruct()->base.set_insets = panel_set_insets;
|
|
|
|
GetStruct()->base.get_insets = panel_get_insets;
|
2016-01-19 21:09:01 +01:00
|
|
|
GetStruct()->base.get_preferred_size = panel_get_preferred_size;
|
|
|
|
GetStruct()->base.size_to_preferred_size = panel_size_to_preferred_size;
|
|
|
|
GetStruct()->base.get_minimum_size = panel_get_minimum_size;
|
|
|
|
GetStruct()->base.get_maximum_size = panel_get_maximum_size;
|
|
|
|
GetStruct()->base.get_height_for_width = panel_get_height_for_width;
|
|
|
|
GetStruct()->base.invalidate_layout = panel_invalidate_layout;
|
|
|
|
GetStruct()->base.set_visible = panel_set_visible;
|
|
|
|
GetStruct()->base.is_visible = panel_is_visible;
|
|
|
|
GetStruct()->base.is_drawn = panel_is_drawn;
|
|
|
|
GetStruct()->base.set_enabled = panel_set_enabled;
|
|
|
|
GetStruct()->base.is_enabled = panel_is_enabled;
|
|
|
|
GetStruct()->base.set_focusable = panel_set_focusable;
|
|
|
|
GetStruct()->base.is_focusable = panel_is_focusable;
|
|
|
|
GetStruct()->base.is_accessibility_focusable =
|
|
|
|
panel_is_accessibility_focusable;
|
2024-11-05 20:58:45 +01:00
|
|
|
GetStruct()->base.has_focus = panel_has_focus;
|
2016-01-19 21:09:01 +01:00
|
|
|
GetStruct()->base.request_focus = panel_request_focus;
|
|
|
|
GetStruct()->base.set_background_color = panel_set_background_color;
|
|
|
|
GetStruct()->base.get_background_color = panel_get_background_color;
|
2024-03-29 17:48:33 +01:00
|
|
|
GetStruct()->base.get_theme_color = panel_get_theme_color;
|
2016-01-19 21:09:01 +01:00
|
|
|
GetStruct()->base.convert_point_to_screen = panel_convert_point_to_screen;
|
|
|
|
GetStruct()->base.convert_point_from_screen = panel_convert_point_from_screen;
|
|
|
|
GetStruct()->base.convert_point_to_window = panel_convert_point_to_window;
|
|
|
|
GetStruct()->base.convert_point_from_window = panel_convert_point_from_window;
|
|
|
|
GetStruct()->base.convert_point_to_view = panel_convert_point_to_view;
|
|
|
|
GetStruct()->base.convert_point_from_view = panel_convert_point_from_view;
|
|
|
|
}
|
|
|
|
|
2019-01-23 16:42:12 +01:00
|
|
|
// DESTRUCTOR - Do not edit by hand.
|
|
|
|
|
|
|
|
CefPanelCppToC::~CefPanelCppToC() {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefRefPtr<CefPanel>
|
|
|
|
CefCppToCRefCounted<CefPanelCppToC, CefPanel, cef_panel_t>::UnwrapDerived(
|
|
|
|
CefWrapperType type,
|
|
|
|
cef_panel_t* s) {
|
2016-01-19 21:09:01 +01:00
|
|
|
if (type == WT_WINDOW) {
|
|
|
|
return CefWindowCppToC::Unwrap(reinterpret_cast<cef_window_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<CefPanelCppToC, CefPanel, cef_panel_t>::kWrapperType =
|
|
|
|
WT_PANEL;
|