mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Controls now respect OS and Chrome themes by default for both Alloy and Chrome runtimes. Chrome themes (mode and colors) can be configured using the new CefRequestContext::SetChromeColorScheme method. Individual theme colors can be overridden using the new CefWindowDelegate:: OnThemeColorsChanged and CefWindow::SetThemeColor methods. The `--force-light-mode` and `--force-dark-mode` command-line flags are now respected on all platforms as an override for the OS theme. The current Chrome theme, if any, will take precedence over the OS theme when determining light/dark status. On Windows and MacOS the titlebar color will also be updated to match the light/dark theme. Testable as follows: - Run: `cefclient --enable-chrome-runtime` OR `cefclient --use-views --persist-user-preferences --cache-path=...` - App launches with default OS light/dark theme colors. - Change OS dark/light theme under system settings. Notice that theme colors change as expected. - Right click, select items from the new Theme sub-menu. Notice that theme colors behave as expected. - Exit and relaunch the app. Notice that the last-used theme colors are applied on app restart. - Add `--background-color=green` to above command-line. - Perform the same actions as above. Notice that all controls start and remain green throughout (except some icons with Chrome runtime). - Add `--force-light-mode` or `--force-dark-mode` to above command-line. - Perform the same actions as above. Notice that OS dark/light theme changes are ignored, but Chrome theme changes work as expected.
953 lines
24 KiB
C++
953 lines
24 KiB
C++
// Copyright (c) 2024 The Chromium Embedded Framework Authors. All rights
|
|
// 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.
|
|
//
|
|
// $hash=8bbe8af593158eac1cbbdaa09313216872488f86$
|
|
//
|
|
|
|
#include "libcef_dll/ctocpp/views/view_ctocpp.h"
|
|
#include "libcef_dll/cpptoc/views/view_delegate_cpptoc.h"
|
|
#include "libcef_dll/ctocpp/views/browser_view_ctocpp.h"
|
|
#include "libcef_dll/ctocpp/views/button_ctocpp.h"
|
|
#include "libcef_dll/ctocpp/views/label_button_ctocpp.h"
|
|
#include "libcef_dll/ctocpp/views/menu_button_ctocpp.h"
|
|
#include "libcef_dll/ctocpp/views/panel_ctocpp.h"
|
|
#include "libcef_dll/ctocpp/views/scroll_view_ctocpp.h"
|
|
#include "libcef_dll/ctocpp/views/textfield_ctocpp.h"
|
|
#include "libcef_dll/ctocpp/views/window_ctocpp.h"
|
|
#include "libcef_dll/shutdown_checker.h"
|
|
|
|
// VIRTUAL METHODS - Body may be edited by hand.
|
|
|
|
NO_SANITIZE("cfi-icall")
|
|
CefRefPtr<CefBrowserView> CefViewCToCpp::AsBrowserView() {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, as_browser_view)) {
|
|
return nullptr;
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
cef_browser_view_t* _retval = _struct->as_browser_view(_struct);
|
|
|
|
// Return type: refptr_same
|
|
return CefBrowserViewCToCpp::Wrap(_retval);
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall") CefRefPtr<CefButton> CefViewCToCpp::AsButton() {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, as_button)) {
|
|
return nullptr;
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
cef_button_t* _retval = _struct->as_button(_struct);
|
|
|
|
// Return type: refptr_same
|
|
return CefButtonCToCpp::Wrap(_retval);
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall") CefRefPtr<CefPanel> CefViewCToCpp::AsPanel() {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, as_panel)) {
|
|
return nullptr;
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
cef_panel_t* _retval = _struct->as_panel(_struct);
|
|
|
|
// Return type: refptr_same
|
|
return CefPanelCToCpp::Wrap(_retval);
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall")
|
|
CefRefPtr<CefScrollView> CefViewCToCpp::AsScrollView() {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, as_scroll_view)) {
|
|
return nullptr;
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
cef_scroll_view_t* _retval = _struct->as_scroll_view(_struct);
|
|
|
|
// Return type: refptr_same
|
|
return CefScrollViewCToCpp::Wrap(_retval);
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall") CefRefPtr<CefTextfield> CefViewCToCpp::AsTextfield() {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, as_textfield)) {
|
|
return nullptr;
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
cef_textfield_t* _retval = _struct->as_textfield(_struct);
|
|
|
|
// Return type: refptr_same
|
|
return CefTextfieldCToCpp::Wrap(_retval);
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall") CefString CefViewCToCpp::GetTypeString() {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, get_type_string)) {
|
|
return CefString();
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
cef_string_userfree_t _retval = _struct->get_type_string(_struct);
|
|
|
|
// Return type: string
|
|
CefString _retvalStr;
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
return _retvalStr;
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall")
|
|
CefString CefViewCToCpp::ToString(bool include_children) {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, to_string)) {
|
|
return CefString();
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
cef_string_userfree_t _retval = _struct->to_string(_struct, include_children);
|
|
|
|
// Return type: string
|
|
CefString _retvalStr;
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
return _retvalStr;
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall") bool CefViewCToCpp::IsValid() {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, is_valid)) {
|
|
return false;
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
int _retval = _struct->is_valid(_struct);
|
|
|
|
// Return type: bool
|
|
return _retval ? true : false;
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall") bool CefViewCToCpp::IsAttached() {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, is_attached)) {
|
|
return false;
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
int _retval = _struct->is_attached(_struct);
|
|
|
|
// Return type: bool
|
|
return _retval ? true : false;
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall") bool CefViewCToCpp::IsSame(CefRefPtr<CefView> that) {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, is_same)) {
|
|
return false;
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Verify param: that; type: refptr_same
|
|
DCHECK(that.get());
|
|
if (!that.get()) {
|
|
return false;
|
|
}
|
|
|
|
// Execute
|
|
int _retval = _struct->is_same(_struct, CefViewCToCpp::Unwrap(that));
|
|
|
|
// Return type: bool
|
|
return _retval ? true : false;
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall")
|
|
CefRefPtr<CefViewDelegate> CefViewCToCpp::GetDelegate() {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, get_delegate)) {
|
|
return nullptr;
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
cef_view_delegate_t* _retval = _struct->get_delegate(_struct);
|
|
|
|
// Return type: refptr_diff
|
|
return CefViewDelegateCppToC::Unwrap(_retval);
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall") CefRefPtr<CefWindow> CefViewCToCpp::GetWindow() {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, get_window)) {
|
|
return nullptr;
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
cef_window_t* _retval = _struct->get_window(_struct);
|
|
|
|
// Return type: refptr_same
|
|
return CefWindowCToCpp::Wrap(_retval);
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall") int CefViewCToCpp::GetID() {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, get_id)) {
|
|
return 0;
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
int _retval = _struct->get_id(_struct);
|
|
|
|
// Return type: simple
|
|
return _retval;
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall") void CefViewCToCpp::SetID(int id) {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, set_id)) {
|
|
return;
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
_struct->set_id(_struct, id);
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall") int CefViewCToCpp::GetGroupID() {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, get_group_id)) {
|
|
return 0;
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
int _retval = _struct->get_group_id(_struct);
|
|
|
|
// Return type: simple
|
|
return _retval;
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall") void CefViewCToCpp::SetGroupID(int group_id) {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, set_group_id)) {
|
|
return;
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
_struct->set_group_id(_struct, group_id);
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall") CefRefPtr<CefView> CefViewCToCpp::GetParentView() {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, get_parent_view)) {
|
|
return nullptr;
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
cef_view_t* _retval = _struct->get_parent_view(_struct);
|
|
|
|
// Return type: refptr_same
|
|
return CefViewCToCpp::Wrap(_retval);
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall")
|
|
CefRefPtr<CefView> CefViewCToCpp::GetViewForID(int id) {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, get_view_for_id)) {
|
|
return nullptr;
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
cef_view_t* _retval = _struct->get_view_for_id(_struct, id);
|
|
|
|
// Return type: refptr_same
|
|
return CefViewCToCpp::Wrap(_retval);
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall") void CefViewCToCpp::SetBounds(const CefRect& bounds) {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, set_bounds)) {
|
|
return;
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
_struct->set_bounds(_struct, &bounds);
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall") CefRect CefViewCToCpp::GetBounds() {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, get_bounds)) {
|
|
return CefRect();
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
cef_rect_t _retval = _struct->get_bounds(_struct);
|
|
|
|
// Return type: simple
|
|
return _retval;
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall") CefRect CefViewCToCpp::GetBoundsInScreen() {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, get_bounds_in_screen)) {
|
|
return CefRect();
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
cef_rect_t _retval = _struct->get_bounds_in_screen(_struct);
|
|
|
|
// Return type: simple
|
|
return _retval;
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall") void CefViewCToCpp::SetSize(const CefSize& size) {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, set_size)) {
|
|
return;
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
_struct->set_size(_struct, &size);
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall") CefSize CefViewCToCpp::GetSize() {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, get_size)) {
|
|
return CefSize();
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
cef_size_t _retval = _struct->get_size(_struct);
|
|
|
|
// Return type: simple
|
|
return _retval;
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall")
|
|
void CefViewCToCpp::SetPosition(const CefPoint& position) {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, set_position)) {
|
|
return;
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
_struct->set_position(_struct, &position);
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall") CefPoint CefViewCToCpp::GetPosition() {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, get_position)) {
|
|
return CefPoint();
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
cef_point_t _retval = _struct->get_position(_struct);
|
|
|
|
// Return type: simple
|
|
return _retval;
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall")
|
|
void CefViewCToCpp::SetInsets(const CefInsets& insets) {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, set_insets)) {
|
|
return;
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
_struct->set_insets(_struct, &insets);
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall") CefInsets CefViewCToCpp::GetInsets() {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, get_insets)) {
|
|
return CefInsets();
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
cef_insets_t _retval = _struct->get_insets(_struct);
|
|
|
|
// Return type: simple
|
|
return _retval;
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall") CefSize CefViewCToCpp::GetPreferredSize() {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, get_preferred_size)) {
|
|
return CefSize();
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
cef_size_t _retval = _struct->get_preferred_size(_struct);
|
|
|
|
// Return type: simple
|
|
return _retval;
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall") void CefViewCToCpp::SizeToPreferredSize() {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, size_to_preferred_size)) {
|
|
return;
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
_struct->size_to_preferred_size(_struct);
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall") CefSize CefViewCToCpp::GetMinimumSize() {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, get_minimum_size)) {
|
|
return CefSize();
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
cef_size_t _retval = _struct->get_minimum_size(_struct);
|
|
|
|
// Return type: simple
|
|
return _retval;
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall") CefSize CefViewCToCpp::GetMaximumSize() {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, get_maximum_size)) {
|
|
return CefSize();
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
cef_size_t _retval = _struct->get_maximum_size(_struct);
|
|
|
|
// Return type: simple
|
|
return _retval;
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall") int CefViewCToCpp::GetHeightForWidth(int width) {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, get_height_for_width)) {
|
|
return 0;
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
int _retval = _struct->get_height_for_width(_struct, width);
|
|
|
|
// Return type: simple
|
|
return _retval;
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall") void CefViewCToCpp::InvalidateLayout() {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, invalidate_layout)) {
|
|
return;
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
_struct->invalidate_layout(_struct);
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall") void CefViewCToCpp::SetVisible(bool visible) {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, set_visible)) {
|
|
return;
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
_struct->set_visible(_struct, visible);
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall") bool CefViewCToCpp::IsVisible() {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, is_visible)) {
|
|
return false;
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
int _retval = _struct->is_visible(_struct);
|
|
|
|
// Return type: bool
|
|
return _retval ? true : false;
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall") bool CefViewCToCpp::IsDrawn() {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, is_drawn)) {
|
|
return false;
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
int _retval = _struct->is_drawn(_struct);
|
|
|
|
// Return type: bool
|
|
return _retval ? true : false;
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall") void CefViewCToCpp::SetEnabled(bool enabled) {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, set_enabled)) {
|
|
return;
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
_struct->set_enabled(_struct, enabled);
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall") bool CefViewCToCpp::IsEnabled() {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, is_enabled)) {
|
|
return false;
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
int _retval = _struct->is_enabled(_struct);
|
|
|
|
// Return type: bool
|
|
return _retval ? true : false;
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall") void CefViewCToCpp::SetFocusable(bool focusable) {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, set_focusable)) {
|
|
return;
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
_struct->set_focusable(_struct, focusable);
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall") bool CefViewCToCpp::IsFocusable() {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, is_focusable)) {
|
|
return false;
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
int _retval = _struct->is_focusable(_struct);
|
|
|
|
// Return type: bool
|
|
return _retval ? true : false;
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall") bool CefViewCToCpp::IsAccessibilityFocusable() {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, is_accessibility_focusable)) {
|
|
return false;
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
int _retval = _struct->is_accessibility_focusable(_struct);
|
|
|
|
// Return type: bool
|
|
return _retval ? true : false;
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall") void CefViewCToCpp::RequestFocus() {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, request_focus)) {
|
|
return;
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
_struct->request_focus(_struct);
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall")
|
|
void CefViewCToCpp::SetBackgroundColor(cef_color_t color) {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, set_background_color)) {
|
|
return;
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
_struct->set_background_color(_struct, color);
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall") cef_color_t CefViewCToCpp::GetBackgroundColor() {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, get_background_color)) {
|
|
return 0;
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
cef_color_t _retval = _struct->get_background_color(_struct);
|
|
|
|
// Return type: simple
|
|
return _retval;
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall")
|
|
cef_color_t CefViewCToCpp::GetThemeColor(int color_id) {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, get_theme_color)) {
|
|
return 0;
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
cef_color_t _retval = _struct->get_theme_color(_struct, color_id);
|
|
|
|
// Return type: simple
|
|
return _retval;
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall")
|
|
bool CefViewCToCpp::ConvertPointToScreen(CefPoint& point) {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, convert_point_to_screen)) {
|
|
return false;
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
int _retval = _struct->convert_point_to_screen(_struct, &point);
|
|
|
|
// Return type: bool
|
|
return _retval ? true : false;
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall")
|
|
bool CefViewCToCpp::ConvertPointFromScreen(CefPoint& point) {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, convert_point_from_screen)) {
|
|
return false;
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
int _retval = _struct->convert_point_from_screen(_struct, &point);
|
|
|
|
// Return type: bool
|
|
return _retval ? true : false;
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall")
|
|
bool CefViewCToCpp::ConvertPointToWindow(CefPoint& point) {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, convert_point_to_window)) {
|
|
return false;
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
int _retval = _struct->convert_point_to_window(_struct, &point);
|
|
|
|
// Return type: bool
|
|
return _retval ? true : false;
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall")
|
|
bool CefViewCToCpp::ConvertPointFromWindow(CefPoint& point) {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, convert_point_from_window)) {
|
|
return false;
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Execute
|
|
int _retval = _struct->convert_point_from_window(_struct, &point);
|
|
|
|
// Return type: bool
|
|
return _retval ? true : false;
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall")
|
|
bool CefViewCToCpp::ConvertPointToView(CefRefPtr<CefView> view,
|
|
CefPoint& point) {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, convert_point_to_view)) {
|
|
return false;
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Verify param: view; type: refptr_same
|
|
DCHECK(view.get());
|
|
if (!view.get()) {
|
|
return false;
|
|
}
|
|
|
|
// Execute
|
|
int _retval = _struct->convert_point_to_view(
|
|
_struct, CefViewCToCpp::Unwrap(view), &point);
|
|
|
|
// Return type: bool
|
|
return _retval ? true : false;
|
|
}
|
|
|
|
NO_SANITIZE("cfi-icall")
|
|
bool CefViewCToCpp::ConvertPointFromView(CefRefPtr<CefView> view,
|
|
CefPoint& point) {
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
cef_view_t* _struct = GetStruct();
|
|
if (CEF_MEMBER_MISSING(_struct, convert_point_from_view)) {
|
|
return false;
|
|
}
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
// Verify param: view; type: refptr_same
|
|
DCHECK(view.get());
|
|
if (!view.get()) {
|
|
return false;
|
|
}
|
|
|
|
// Execute
|
|
int _retval = _struct->convert_point_from_view(
|
|
_struct, CefViewCToCpp::Unwrap(view), &point);
|
|
|
|
// Return type: bool
|
|
return _retval ? true : false;
|
|
}
|
|
|
|
// CONSTRUCTOR - Do not edit by hand.
|
|
|
|
CefViewCToCpp::CefViewCToCpp() {}
|
|
|
|
// DESTRUCTOR - Do not edit by hand.
|
|
|
|
CefViewCToCpp::~CefViewCToCpp() {
|
|
shutdown_checker::AssertNotShutdown();
|
|
}
|
|
|
|
template <>
|
|
cef_view_t*
|
|
CefCToCppRefCounted<CefViewCToCpp, CefView, cef_view_t>::UnwrapDerived(
|
|
CefWrapperType type,
|
|
CefView* c) {
|
|
if (type == WT_BROWSER_VIEW) {
|
|
return reinterpret_cast<cef_view_t*>(
|
|
CefBrowserViewCToCpp::Unwrap(reinterpret_cast<CefBrowserView*>(c)));
|
|
}
|
|
if (type == WT_BUTTON) {
|
|
return reinterpret_cast<cef_view_t*>(
|
|
CefButtonCToCpp::Unwrap(reinterpret_cast<CefButton*>(c)));
|
|
}
|
|
if (type == WT_LABEL_BUTTON) {
|
|
return reinterpret_cast<cef_view_t*>(
|
|
CefLabelButtonCToCpp::Unwrap(reinterpret_cast<CefLabelButton*>(c)));
|
|
}
|
|
if (type == WT_MENU_BUTTON) {
|
|
return reinterpret_cast<cef_view_t*>(
|
|
CefMenuButtonCToCpp::Unwrap(reinterpret_cast<CefMenuButton*>(c)));
|
|
}
|
|
if (type == WT_PANEL) {
|
|
return reinterpret_cast<cef_view_t*>(
|
|
CefPanelCToCpp::Unwrap(reinterpret_cast<CefPanel*>(c)));
|
|
}
|
|
if (type == WT_SCROLL_VIEW) {
|
|
return reinterpret_cast<cef_view_t*>(
|
|
CefScrollViewCToCpp::Unwrap(reinterpret_cast<CefScrollView*>(c)));
|
|
}
|
|
if (type == WT_TEXTFIELD) {
|
|
return reinterpret_cast<cef_view_t*>(
|
|
CefTextfieldCToCpp::Unwrap(reinterpret_cast<CefTextfield*>(c)));
|
|
}
|
|
if (type == WT_WINDOW) {
|
|
return reinterpret_cast<cef_view_t*>(
|
|
CefWindowCToCpp::Unwrap(reinterpret_cast<CefWindow*>(c)));
|
|
}
|
|
DCHECK(false) << "Unexpected class type: " << type;
|
|
return nullptr;
|
|
}
|
|
|
|
template <>
|
|
CefWrapperType
|
|
CefCToCppRefCounted<CefViewCToCpp, CefView, cef_view_t>::kWrapperType =
|
|
WT_VIEW;
|