2022-01-06 19:34:35 +01:00
|
|
|
// Copyright (c) 2022 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.
|
|
|
|
//
|
2022-01-06 19:34:35 +01:00
|
|
|
// $hash=02f2588f9c40c510115d3279fbffdb9bf2f4dcfb$
|
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/scroll_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/panel_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/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_scroll_view_t* cef_scroll_view_create(
|
|
|
|
struct _cef_view_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<CefScrollView> _retval =
|
|
|
|
CefScrollView::CreateScrollView(CefViewDelegateCToCpp::Wrap(delegate));
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefScrollViewCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace {
|
|
|
|
|
|
|
|
// MEMBER FUNCTIONS - Body may be edited by hand.
|
|
|
|
|
|
|
|
void CEF_CALLBACK scroll_view_set_content_view(struct _cef_scroll_view_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);
|
|
|
|
if (!self)
|
|
|
|
return;
|
|
|
|
// Verify param: view; type: refptr_same
|
|
|
|
DCHECK(view);
|
|
|
|
if (!view)
|
|
|
|
return;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefScrollViewCppToC::Get(self)->SetContentView(CefViewCppToC::Unwrap(view));
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_view_t* CEF_CALLBACK
|
|
|
|
scroll_view_get_content_view(struct _cef_scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefRefPtr<CefView> _retval = CefScrollViewCppToC::Get(self)->GetContentView();
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefViewCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_rect_t CEF_CALLBACK
|
|
|
|
scroll_view_get_visible_content_rect(struct _cef_scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return CefRect();
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_rect_t _retval = CefScrollViewCppToC::Get(self)->GetVisibleContentRect();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
int CEF_CALLBACK
|
|
|
|
scroll_view_has_horizontal_scrollbar(struct _cef_scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefScrollViewCppToC::Get(self)->HasHorizontalScrollbar();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
int CEF_CALLBACK
|
|
|
|
scroll_view_get_horizontal_scrollbar_height(struct _cef_scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = CefScrollViewCppToC::Get(self)->GetHorizontalScrollbarHeight();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
int CEF_CALLBACK
|
|
|
|
scroll_view_has_vertical_scrollbar(struct _cef_scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefScrollViewCppToC::Get(self)->HasVerticalScrollbar();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
int CEF_CALLBACK
|
|
|
|
scroll_view_get_vertical_scrollbar_width(struct _cef_scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = CefScrollViewCppToC::Get(self)->GetVerticalScrollbarWidth();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_browser_view_t* CEF_CALLBACK
|
|
|
|
scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefBrowserView> _retval =
|
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->AsBrowserView();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefBrowserViewCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
cef_button_t* CEF_CALLBACK scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefButton> _retval =
|
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->AsButton();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefButtonCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
cef_panel_t* CEF_CALLBACK scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefPanel> _retval =
|
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->AsPanel();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefPanelCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_scroll_view_t* CEF_CALLBACK
|
|
|
|
scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefScrollView> _retval =
|
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->AsScrollView();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefScrollViewCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_textfield_t* CEF_CALLBACK
|
|
|
|
scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefTextfield> _retval =
|
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_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
|
|
|
|
scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefString _retval =
|
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->GetTypeString();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t CEF_CALLBACK
|
|
|
|
scroll_view_to_string(struct _cef_view_t* self, int include_children) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefString _retval =
|
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->ToString(include_children ? true : false);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->IsValid();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->IsAttached();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
// Verify param: that; type: refptr_same
|
|
|
|
DCHECK(that);
|
|
|
|
if (!that)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_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
|
|
|
|
scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefViewDelegate> _retval =
|
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->GetDelegate();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: refptr_diff
|
|
|
|
return CefViewDelegateCToCpp::Unwrap(_retval);
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_window_t* CEF_CALLBACK
|
|
|
|
scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefWindow> _retval =
|
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->GetWindow();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefWindowCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval =
|
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->GetID();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->SetID(id);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
2017-02-18 03:08:51 +01:00
|
|
|
int CEF_CALLBACK scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval =
|
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->GetGroupID();
|
2017-02-18 03:08:51 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK scroll_view_set_group_id(struct _cef_view_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int group_id) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-02-18 03:08:51 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_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
|
|
|
|
scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefView> _retval =
|
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->GetParentView();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefViewCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_view_t* CEF_CALLBACK
|
|
|
|
scroll_view_get_view_for_id(struct _cef_view_t* self, int id) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefView> _retval =
|
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->GetViewForID(id);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefViewCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return;
|
|
|
|
// Verify param: bounds; type: simple_byref_const
|
|
|
|
DCHECK(bounds);
|
|
|
|
if (!bounds)
|
|
|
|
return;
|
|
|
|
|
|
|
|
// 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
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->SetBounds(boundsVal);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
cef_rect_t CEF_CALLBACK scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return CefRect();
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_rect_t _retval =
|
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->GetBounds();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_rect_t CEF_CALLBACK
|
|
|
|
scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return CefRect();
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_rect_t _retval =
|
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->GetBoundsInScreen();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return;
|
|
|
|
// Verify param: size; type: simple_byref_const
|
|
|
|
DCHECK(size);
|
|
|
|
if (!size)
|
|
|
|
return;
|
|
|
|
|
|
|
|
// 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
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->SetSize(sizeVal);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
cef_size_t CEF_CALLBACK scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return CefSize();
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_size_t _retval =
|
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->GetSize();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return;
|
|
|
|
// Verify param: position; type: simple_byref_const
|
|
|
|
DCHECK(position);
|
|
|
|
if (!position)
|
|
|
|
return;
|
|
|
|
|
|
|
|
// 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
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->SetPosition(positionVal);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
cef_point_t CEF_CALLBACK scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return CefPoint();
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_point_t _retval =
|
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_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 scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return;
|
|
|
|
// Verify param: insets; type: simple_byref_const
|
|
|
|
DCHECK(insets);
|
|
|
|
if (!insets)
|
|
|
|
return;
|
|
|
|
|
|
|
|
// Translate param: insets; type: simple_byref_const
|
|
|
|
CefInsets insetsVal = insets ? *insets : CefInsets();
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->SetInsets(insetsVal);
|
|
|
|
}
|
|
|
|
|
|
|
|
cef_insets_t CEF_CALLBACK scroll_view_get_insets(struct _cef_view_t* self) {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return CefInsets();
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_insets_t _retval =
|
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->GetInsets();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_size_t CEF_CALLBACK
|
|
|
|
scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return CefSize();
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_size_t _retval =
|
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->GetPreferredSize();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->SizeToPreferredSize();
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
cef_size_t CEF_CALLBACK scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return CefSize();
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_size_t _retval =
|
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->GetMinimumSize();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
cef_size_t CEF_CALLBACK scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return CefSize();
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_size_t _retval =
|
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->GetMaximumSize();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval =
|
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->GetHeightForWidth(width);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->InvalidateLayout();
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK scroll_view_set_visible(struct _cef_view_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int visible) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->SetVisible(visible ? true : false);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->IsVisible();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->IsDrawn();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK scroll_view_set_enabled(struct _cef_view_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int enabled) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->SetEnabled(enabled ? true : false);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->IsEnabled();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK scroll_view_set_focusable(struct _cef_view_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int focusable) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->SetFocusable(focusable ? true : false);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->IsFocusable();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
int CEF_CALLBACK
|
|
|
|
scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->IsAccessibilityFocusable();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->RequestFocus();
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->SetBackgroundColor(color);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_color_t CEF_CALLBACK
|
|
|
|
scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_color_t _retval =
|
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->GetBackgroundColor();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
// Verify param: point; type: simple_byref
|
|
|
|
DCHECK(point);
|
|
|
|
if (!point)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// 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 =
|
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->ConvertPointToScreen(pointVal);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Restore param: point; type: simple_byref
|
|
|
|
if (point)
|
|
|
|
*point = pointVal;
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
// Verify param: point; type: simple_byref
|
|
|
|
DCHECK(point);
|
|
|
|
if (!point)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// 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 =
|
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->ConvertPointFromScreen(pointVal);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Restore param: point; type: simple_byref
|
|
|
|
if (point)
|
|
|
|
*point = pointVal;
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
// Verify param: point; type: simple_byref
|
|
|
|
DCHECK(point);
|
|
|
|
if (!point)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// 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 =
|
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->ConvertPointToWindow(pointVal);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Restore param: point; type: simple_byref
|
|
|
|
if (point)
|
|
|
|
*point = pointVal;
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
// Verify param: point; type: simple_byref
|
|
|
|
DCHECK(point);
|
|
|
|
if (!point)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// 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 =
|
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->ConvertPointFromWindow(pointVal);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Restore param: point; type: simple_byref
|
|
|
|
if (point)
|
|
|
|
*point = pointVal;
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
// Verify param: view; type: refptr_same
|
|
|
|
DCHECK(view);
|
|
|
|
if (!view)
|
|
|
|
return 0;
|
|
|
|
// Verify param: point; type: simple_byref
|
|
|
|
DCHECK(point);
|
|
|
|
if (!point)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// 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 =
|
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->ConvertPointToView(CefViewCppToC::Unwrap(view), pointVal);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Restore param: point; type: simple_byref
|
|
|
|
if (point)
|
|
|
|
*point = pointVal;
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK scroll_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);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
// Verify param: view; type: refptr_same
|
|
|
|
DCHECK(view);
|
|
|
|
if (!view)
|
|
|
|
return 0;
|
|
|
|
// Verify param: point; type: simple_byref
|
|
|
|
DCHECK(point);
|
|
|
|
if (!point)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// 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 =
|
|
|
|
CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
|
|
|
|
->ConvertPointFromView(CefViewCppToC::Unwrap(view), pointVal);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Restore param: point; type: simple_byref
|
|
|
|
if (point)
|
|
|
|
*point = pointVal;
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace
|
|
|
|
|
|
|
|
// CONSTRUCTOR - Do not edit by hand.
|
|
|
|
|
|
|
|
CefScrollViewCppToC::CefScrollViewCppToC() {
|
|
|
|
GetStruct()->set_content_view = scroll_view_set_content_view;
|
|
|
|
GetStruct()->get_content_view = scroll_view_get_content_view;
|
|
|
|
GetStruct()->get_visible_content_rect = scroll_view_get_visible_content_rect;
|
|
|
|
GetStruct()->has_horizontal_scrollbar = scroll_view_has_horizontal_scrollbar;
|
|
|
|
GetStruct()->get_horizontal_scrollbar_height =
|
|
|
|
scroll_view_get_horizontal_scrollbar_height;
|
|
|
|
GetStruct()->has_vertical_scrollbar = scroll_view_has_vertical_scrollbar;
|
|
|
|
GetStruct()->get_vertical_scrollbar_width =
|
|
|
|
scroll_view_get_vertical_scrollbar_width;
|
|
|
|
GetStruct()->base.as_browser_view = scroll_view_as_browser_view;
|
|
|
|
GetStruct()->base.as_button = scroll_view_as_button;
|
|
|
|
GetStruct()->base.as_panel = scroll_view_as_panel;
|
|
|
|
GetStruct()->base.as_scroll_view = scroll_view_as_scroll_view;
|
|
|
|
GetStruct()->base.as_textfield = scroll_view_as_textfield;
|
|
|
|
GetStruct()->base.get_type_string = scroll_view_get_type_string;
|
|
|
|
GetStruct()->base.to_string = scroll_view_to_string;
|
|
|
|
GetStruct()->base.is_valid = scroll_view_is_valid;
|
|
|
|
GetStruct()->base.is_attached = scroll_view_is_attached;
|
|
|
|
GetStruct()->base.is_same = scroll_view_is_same;
|
|
|
|
GetStruct()->base.get_delegate = scroll_view_get_delegate;
|
|
|
|
GetStruct()->base.get_window = scroll_view_get_window;
|
|
|
|
GetStruct()->base.get_id = scroll_view_get_id;
|
|
|
|
GetStruct()->base.set_id = scroll_view_set_id;
|
2017-02-18 03:08:51 +01:00
|
|
|
GetStruct()->base.get_group_id = scroll_view_get_group_id;
|
|
|
|
GetStruct()->base.set_group_id = scroll_view_set_group_id;
|
2016-01-19 21:09:01 +01:00
|
|
|
GetStruct()->base.get_parent_view = scroll_view_get_parent_view;
|
|
|
|
GetStruct()->base.get_view_for_id = scroll_view_get_view_for_id;
|
|
|
|
GetStruct()->base.set_bounds = scroll_view_set_bounds;
|
|
|
|
GetStruct()->base.get_bounds = scroll_view_get_bounds;
|
|
|
|
GetStruct()->base.get_bounds_in_screen = scroll_view_get_bounds_in_screen;
|
|
|
|
GetStruct()->base.set_size = scroll_view_set_size;
|
|
|
|
GetStruct()->base.get_size = scroll_view_get_size;
|
|
|
|
GetStruct()->base.set_position = scroll_view_set_position;
|
|
|
|
GetStruct()->base.get_position = scroll_view_get_position;
|
2021-08-28 03:55:15 +02:00
|
|
|
GetStruct()->base.set_insets = scroll_view_set_insets;
|
|
|
|
GetStruct()->base.get_insets = scroll_view_get_insets;
|
2016-01-19 21:09:01 +01:00
|
|
|
GetStruct()->base.get_preferred_size = scroll_view_get_preferred_size;
|
|
|
|
GetStruct()->base.size_to_preferred_size = scroll_view_size_to_preferred_size;
|
|
|
|
GetStruct()->base.get_minimum_size = scroll_view_get_minimum_size;
|
|
|
|
GetStruct()->base.get_maximum_size = scroll_view_get_maximum_size;
|
|
|
|
GetStruct()->base.get_height_for_width = scroll_view_get_height_for_width;
|
|
|
|
GetStruct()->base.invalidate_layout = scroll_view_invalidate_layout;
|
|
|
|
GetStruct()->base.set_visible = scroll_view_set_visible;
|
|
|
|
GetStruct()->base.is_visible = scroll_view_is_visible;
|
|
|
|
GetStruct()->base.is_drawn = scroll_view_is_drawn;
|
|
|
|
GetStruct()->base.set_enabled = scroll_view_set_enabled;
|
|
|
|
GetStruct()->base.is_enabled = scroll_view_is_enabled;
|
|
|
|
GetStruct()->base.set_focusable = scroll_view_set_focusable;
|
|
|
|
GetStruct()->base.is_focusable = scroll_view_is_focusable;
|
|
|
|
GetStruct()->base.is_accessibility_focusable =
|
|
|
|
scroll_view_is_accessibility_focusable;
|
|
|
|
GetStruct()->base.request_focus = scroll_view_request_focus;
|
|
|
|
GetStruct()->base.set_background_color = scroll_view_set_background_color;
|
|
|
|
GetStruct()->base.get_background_color = scroll_view_get_background_color;
|
|
|
|
GetStruct()->base.convert_point_to_screen =
|
|
|
|
scroll_view_convert_point_to_screen;
|
|
|
|
GetStruct()->base.convert_point_from_screen =
|
|
|
|
scroll_view_convert_point_from_screen;
|
|
|
|
GetStruct()->base.convert_point_to_window =
|
|
|
|
scroll_view_convert_point_to_window;
|
|
|
|
GetStruct()->base.convert_point_from_window =
|
|
|
|
scroll_view_convert_point_from_window;
|
|
|
|
GetStruct()->base.convert_point_to_view = scroll_view_convert_point_to_view;
|
|
|
|
GetStruct()->base.convert_point_from_view =
|
|
|
|
scroll_view_convert_point_from_view;
|
|
|
|
}
|
|
|
|
|
2019-01-23 16:42:12 +01:00
|
|
|
// DESTRUCTOR - Do not edit by hand.
|
|
|
|
|
|
|
|
CefScrollViewCppToC::~CefScrollViewCppToC() {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefRefPtr<CefScrollView>
|
|
|
|
CefCppToCRefCounted<CefScrollViewCppToC, CefScrollView, cef_scroll_view_t>::
|
|
|
|
UnwrapDerived(CefWrapperType type, cef_scroll_view_t* s) {
|
2016-01-19 21:09:01 +01:00
|
|
|
NOTREACHED() << "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<CefScrollViewCppToC,
|
|
|
|
CefScrollView,
|
|
|
|
cef_scroll_view_t>::kWrapperType =
|
|
|
|
WT_SCROLL_VIEW;
|