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=ae22b240b761b1bd2e9f168de2859ae0085191f6$
|
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/view_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/menu_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/window_cpptoc.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
|
|
|
|
|
|
|
namespace {
|
|
|
|
|
|
|
|
// MEMBER FUNCTIONS - Body may be edited by hand.
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_browser_view_t* CEF_CALLBACK
|
|
|
|
view_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
|
|
|
|
CefRefPtr<CefBrowserView> _retval = CefViewCppToC::Get(self)->AsBrowserView();
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefBrowserViewCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
cef_button_t* CEF_CALLBACK view_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
|
|
|
|
CefRefPtr<CefButton> _retval = CefViewCppToC::Get(self)->AsButton();
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefButtonCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
cef_panel_t* CEF_CALLBACK view_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
|
|
|
|
CefRefPtr<CefPanel> _retval = CefViewCppToC::Get(self)->AsPanel();
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefPanelCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
cef_scroll_view_t* CEF_CALLBACK view_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
|
|
|
|
CefRefPtr<CefScrollView> _retval = CefViewCppToC::Get(self)->AsScrollView();
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefScrollViewCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
cef_textfield_t* CEF_CALLBACK view_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
|
|
|
|
CefRefPtr<CefTextfield> _retval = CefViewCppToC::Get(self)->AsTextfield();
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefTextfieldCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t CEF_CALLBACK
|
|
|
|
view_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
|
|
|
|
CefString _retval = CefViewCppToC::Get(self)->GetTypeString();
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
|
|
|
cef_string_userfree_t CEF_CALLBACK view_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 =
|
|
|
|
CefViewCppToC::Get(self)->ToString(include_children ? true : false);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK view_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
|
|
|
|
bool _retval = CefViewCppToC::Get(self)->IsValid();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK view_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
|
|
|
|
bool _retval = CefViewCppToC::Get(self)->IsAttached();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK view_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 = CefViewCppToC::Get(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
|
|
|
|
view_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
|
|
|
|
CefRefPtr<CefViewDelegate> _retval = CefViewCppToC::Get(self)->GetDelegate();
|
|
|
|
|
|
|
|
// Return type: refptr_diff
|
|
|
|
return CefViewDelegateCToCpp::Unwrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
struct _cef_window_t* CEF_CALLBACK view_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
|
|
|
|
CefRefPtr<CefWindow> _retval = CefViewCppToC::Get(self)->GetWindow();
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefWindowCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK view_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
|
|
|
|
int _retval = CefViewCppToC::Get(self)->GetID();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK view_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
|
|
|
CefViewCppToC::Get(self)->SetID(id);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
2017-02-18 03:08:51 +01:00
|
|
|
int CEF_CALLBACK view_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
|
|
|
|
int _retval = CefViewCppToC::Get(self)->GetGroupID();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK view_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
|
|
|
CefViewCppToC::Get(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
|
|
|
|
view_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
|
|
|
|
CefRefPtr<CefView> _retval = CefViewCppToC::Get(self)->GetParentView();
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefViewCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
struct _cef_view_t* CEF_CALLBACK view_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 = CefViewCppToC::Get(self)->GetViewForID(id);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefViewCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK view_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
|
|
|
CefViewCppToC::Get(self)->SetBounds(boundsVal);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
cef_rect_t CEF_CALLBACK view_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
|
|
|
|
cef_rect_t _retval = CefViewCppToC::Get(self)->GetBounds();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
cef_rect_t CEF_CALLBACK view_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
|
|
|
|
cef_rect_t _retval = CefViewCppToC::Get(self)->GetBoundsInScreen();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK view_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
|
|
|
CefViewCppToC::Get(self)->SetSize(sizeVal);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
cef_size_t CEF_CALLBACK view_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
|
|
|
|
cef_size_t _retval = CefViewCppToC::Get(self)->GetSize();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK view_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
|
|
|
CefViewCppToC::Get(self)->SetPosition(positionVal);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
cef_point_t CEF_CALLBACK view_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
|
|
|
|
cef_point_t _retval = CefViewCppToC::Get(self)->GetPosition();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2021-08-28 03:55:15 +02:00
|
|
|
void CEF_CALLBACK view_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
|
|
|
|
CefViewCppToC::Get(self)->SetInsets(insetsVal);
|
|
|
|
}
|
|
|
|
|
|
|
|
cef_insets_t CEF_CALLBACK view_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 = CefViewCppToC::Get(self)->GetInsets();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
cef_size_t CEF_CALLBACK view_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
|
|
|
|
cef_size_t _retval = CefViewCppToC::Get(self)->GetPreferredSize();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK view_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
|
|
|
|
CefViewCppToC::Get(self)->SizeToPreferredSize();
|
|
|
|
}
|
|
|
|
|
|
|
|
cef_size_t CEF_CALLBACK view_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
|
|
|
|
cef_size_t _retval = CefViewCppToC::Get(self)->GetMinimumSize();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
cef_size_t CEF_CALLBACK view_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
|
|
|
|
cef_size_t _retval = CefViewCppToC::Get(self)->GetMaximumSize();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK view_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 = CefViewCppToC::Get(self)->GetHeightForWidth(width);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK view_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
|
|
|
|
CefViewCppToC::Get(self)->InvalidateLayout();
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK view_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
|
|
|
CefViewCppToC::Get(self)->SetVisible(visible ? true : false);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK view_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
|
|
|
|
bool _retval = CefViewCppToC::Get(self)->IsVisible();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK view_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
|
|
|
|
bool _retval = CefViewCppToC::Get(self)->IsDrawn();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK view_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
|
|
|
CefViewCppToC::Get(self)->SetEnabled(enabled ? true : false);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK view_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
|
|
|
|
bool _retval = CefViewCppToC::Get(self)->IsEnabled();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK view_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
|
|
|
CefViewCppToC::Get(self)->SetFocusable(focusable ? true : false);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK view_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
|
|
|
|
bool _retval = CefViewCppToC::Get(self)->IsFocusable();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK view_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
|
|
|
|
bool _retval = CefViewCppToC::Get(self)->IsAccessibilityFocusable();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK view_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
|
|
|
|
CefViewCppToC::Get(self)->RequestFocus();
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK view_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
|
|
|
CefViewCppToC::Get(self)->SetBackgroundColor(color);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
cef_color_t CEF_CALLBACK view_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
|
|
|
|
cef_color_t _retval = CefViewCppToC::Get(self)->GetBackgroundColor();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2024-03-29 17:48:33 +01:00
|
|
|
cef_color_t CEF_CALLBACK view_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 = CefViewCppToC::Get(self)->GetThemeColor(color_id);
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
int CEF_CALLBACK view_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 = CefViewCppToC::Get(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 view_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 = CefViewCppToC::Get(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 view_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 = CefViewCppToC::Get(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 view_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 = CefViewCppToC::Get(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 view_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
|
|
|
|
bool _retval = CefViewCppToC::Get(self)->ConvertPointToView(
|
2017-05-17 11:29:28 +02:00
|
|
|
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 view_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
|
|
|
|
bool _retval = CefViewCppToC::Get(self)->ConvertPointFromView(
|
2017-05-17 11:29:28 +02:00
|
|
|
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.
|
|
|
|
|
|
|
|
CefViewCppToC::CefViewCppToC() {
|
|
|
|
GetStruct()->as_browser_view = view_as_browser_view;
|
|
|
|
GetStruct()->as_button = view_as_button;
|
|
|
|
GetStruct()->as_panel = view_as_panel;
|
|
|
|
GetStruct()->as_scroll_view = view_as_scroll_view;
|
|
|
|
GetStruct()->as_textfield = view_as_textfield;
|
|
|
|
GetStruct()->get_type_string = view_get_type_string;
|
|
|
|
GetStruct()->to_string = view_to_string;
|
|
|
|
GetStruct()->is_valid = view_is_valid;
|
|
|
|
GetStruct()->is_attached = view_is_attached;
|
|
|
|
GetStruct()->is_same = view_is_same;
|
|
|
|
GetStruct()->get_delegate = view_get_delegate;
|
|
|
|
GetStruct()->get_window = view_get_window;
|
|
|
|
GetStruct()->get_id = view_get_id;
|
|
|
|
GetStruct()->set_id = view_set_id;
|
2017-02-18 03:08:51 +01:00
|
|
|
GetStruct()->get_group_id = view_get_group_id;
|
|
|
|
GetStruct()->set_group_id = view_set_group_id;
|
2016-01-19 21:09:01 +01:00
|
|
|
GetStruct()->get_parent_view = view_get_parent_view;
|
|
|
|
GetStruct()->get_view_for_id = view_get_view_for_id;
|
|
|
|
GetStruct()->set_bounds = view_set_bounds;
|
|
|
|
GetStruct()->get_bounds = view_get_bounds;
|
|
|
|
GetStruct()->get_bounds_in_screen = view_get_bounds_in_screen;
|
|
|
|
GetStruct()->set_size = view_set_size;
|
|
|
|
GetStruct()->get_size = view_get_size;
|
|
|
|
GetStruct()->set_position = view_set_position;
|
|
|
|
GetStruct()->get_position = view_get_position;
|
2021-08-28 03:55:15 +02:00
|
|
|
GetStruct()->set_insets = view_set_insets;
|
|
|
|
GetStruct()->get_insets = view_get_insets;
|
2016-01-19 21:09:01 +01:00
|
|
|
GetStruct()->get_preferred_size = view_get_preferred_size;
|
|
|
|
GetStruct()->size_to_preferred_size = view_size_to_preferred_size;
|
|
|
|
GetStruct()->get_minimum_size = view_get_minimum_size;
|
|
|
|
GetStruct()->get_maximum_size = view_get_maximum_size;
|
|
|
|
GetStruct()->get_height_for_width = view_get_height_for_width;
|
|
|
|
GetStruct()->invalidate_layout = view_invalidate_layout;
|
|
|
|
GetStruct()->set_visible = view_set_visible;
|
|
|
|
GetStruct()->is_visible = view_is_visible;
|
|
|
|
GetStruct()->is_drawn = view_is_drawn;
|
|
|
|
GetStruct()->set_enabled = view_set_enabled;
|
|
|
|
GetStruct()->is_enabled = view_is_enabled;
|
|
|
|
GetStruct()->set_focusable = view_set_focusable;
|
|
|
|
GetStruct()->is_focusable = view_is_focusable;
|
|
|
|
GetStruct()->is_accessibility_focusable = view_is_accessibility_focusable;
|
|
|
|
GetStruct()->request_focus = view_request_focus;
|
|
|
|
GetStruct()->set_background_color = view_set_background_color;
|
|
|
|
GetStruct()->get_background_color = view_get_background_color;
|
2024-03-29 17:48:33 +01:00
|
|
|
GetStruct()->get_theme_color = view_get_theme_color;
|
2016-01-19 21:09:01 +01:00
|
|
|
GetStruct()->convert_point_to_screen = view_convert_point_to_screen;
|
|
|
|
GetStruct()->convert_point_from_screen = view_convert_point_from_screen;
|
|
|
|
GetStruct()->convert_point_to_window = view_convert_point_to_window;
|
|
|
|
GetStruct()->convert_point_from_window = view_convert_point_from_window;
|
|
|
|
GetStruct()->convert_point_to_view = view_convert_point_to_view;
|
|
|
|
GetStruct()->convert_point_from_view = view_convert_point_from_view;
|
|
|
|
}
|
|
|
|
|
2019-01-23 16:42:12 +01:00
|
|
|
// DESTRUCTOR - Do not edit by hand.
|
|
|
|
|
|
|
|
CefViewCppToC::~CefViewCppToC() {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefRefPtr<CefView>
|
|
|
|
CefCppToCRefCounted<CefViewCppToC, CefView, cef_view_t>::UnwrapDerived(
|
|
|
|
CefWrapperType type,
|
|
|
|
cef_view_t* s) {
|
2016-01-19 21:09:01 +01:00
|
|
|
if (type == WT_BROWSER_VIEW) {
|
2017-05-17 11:29:28 +02:00
|
|
|
return CefBrowserViewCppToC::Unwrap(
|
|
|
|
reinterpret_cast<cef_browser_view_t*>(s));
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
if (type == WT_BUTTON) {
|
|
|
|
return CefButtonCppToC::Unwrap(reinterpret_cast<cef_button_t*>(s));
|
|
|
|
}
|
|
|
|
if (type == WT_LABEL_BUTTON) {
|
2017-05-17 11:29:28 +02:00
|
|
|
return CefLabelButtonCppToC::Unwrap(
|
|
|
|
reinterpret_cast<cef_label_button_t*>(s));
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
if (type == WT_MENU_BUTTON) {
|
|
|
|
return CefMenuButtonCppToC::Unwrap(reinterpret_cast<cef_menu_button_t*>(s));
|
|
|
|
}
|
|
|
|
if (type == WT_PANEL) {
|
|
|
|
return CefPanelCppToC::Unwrap(reinterpret_cast<cef_panel_t*>(s));
|
|
|
|
}
|
|
|
|
if (type == WT_SCROLL_VIEW) {
|
|
|
|
return CefScrollViewCppToC::Unwrap(reinterpret_cast<cef_scroll_view_t*>(s));
|
|
|
|
}
|
|
|
|
if (type == WT_TEXTFIELD) {
|
|
|
|
return CefTextfieldCppToC::Unwrap(reinterpret_cast<cef_textfield_t*>(s));
|
|
|
|
}
|
|
|
|
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<CefViewCppToC, CefView, cef_view_t>::kWrapperType =
|
|
|
|
WT_VIEW;
|