2018-01-03 21:46:26 +01:00
|
|
|
// Copyright (c) 2018 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.
|
|
|
|
//
|
2018-01-03 21:46:26 +01:00
|
|
|
// $hash=2dde73e06cfa172efe71528a8d6ecc8e74ea28ca$
|
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/ctocpp/views/scroll_view_ctocpp.h"
|
2016-01-19 21:09:01 +01:00
|
|
|
#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/panel_ctocpp.h"
|
|
|
|
#include "libcef_dll/ctocpp/views/textfield_ctocpp.h"
|
|
|
|
#include "libcef_dll/ctocpp/views/view_ctocpp.h"
|
|
|
|
#include "libcef_dll/ctocpp/views/window_ctocpp.h"
|
|
|
|
|
|
|
|
// STATIC METHODS - Body may be edited by hand.
|
|
|
|
|
|
|
|
CefRefPtr<CefScrollView> CefScrollView::CreateScrollView(
|
|
|
|
CefRefPtr<CefViewDelegate> delegate) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Unverified params: delegate
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_scroll_view_t* _retval =
|
|
|
|
cef_scroll_view_create(CefViewDelegateCppToC::Wrap(delegate));
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefScrollViewCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
// VIRTUAL METHODS - Body may be edited by hand.
|
|
|
|
|
|
|
|
void CefScrollViewCToCpp::SetContentView(CefRefPtr<CefView> view) {
|
|
|
|
cef_scroll_view_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_content_view))
|
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: view; type: refptr_same
|
|
|
|
DCHECK(view.get());
|
|
|
|
if (!view.get())
|
|
|
|
return;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->set_content_view(_struct, CefViewCToCpp::Unwrap(view));
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefView> CefScrollViewCToCpp::GetContentView() {
|
|
|
|
cef_scroll_view_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_content_view))
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_view_t* _retval = _struct->get_content_view(_struct);
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefViewCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
CefRect CefScrollViewCToCpp::GetVisibleContentRect() {
|
|
|
|
cef_scroll_view_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_visible_content_rect))
|
|
|
|
return CefRect();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_rect_t _retval = _struct->get_visible_content_rect(_struct);
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefScrollViewCToCpp::HasHorizontalScrollbar() {
|
|
|
|
cef_scroll_view_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, has_horizontal_scrollbar))
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = _struct->has_horizontal_scrollbar(_struct);
|
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
int CefScrollViewCToCpp::GetHorizontalScrollbarHeight() {
|
|
|
|
cef_scroll_view_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_horizontal_scrollbar_height))
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = _struct->get_horizontal_scrollbar_height(_struct);
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefScrollViewCToCpp::HasVerticalScrollbar() {
|
|
|
|
cef_scroll_view_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, has_vertical_scrollbar))
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = _struct->has_vertical_scrollbar(_struct);
|
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
int CefScrollViewCToCpp::GetVerticalScrollbarWidth() {
|
|
|
|
cef_scroll_view_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_vertical_scrollbar_width))
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = _struct->get_vertical_scrollbar_width(_struct);
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefBrowserView> CefScrollViewCToCpp::AsBrowserView() {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, as_browser_view))
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// 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);
|
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefButton> CefScrollViewCToCpp::AsButton() {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, as_button))
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// 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);
|
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefPanel> CefScrollViewCToCpp::AsPanel() {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, as_panel))
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// 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);
|
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefScrollView> CefScrollViewCToCpp::AsScrollView() {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, as_scroll_view))
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// 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);
|
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefTextfield> CefScrollViewCToCpp::AsTextfield() {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, as_textfield))
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// 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);
|
|
|
|
}
|
|
|
|
|
|
|
|
CefString CefScrollViewCToCpp::GetTypeString() {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(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;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefString CefScrollViewCToCpp::ToString(bool include_children) {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, to_string))
|
|
|
|
return CefString();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t _retval = _struct->to_string(_struct, include_children);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefScrollViewCToCpp::IsValid() {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(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
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
bool CefScrollViewCToCpp::IsAttached() {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(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
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
bool CefScrollViewCToCpp::IsSame(CefRefPtr<CefView> that) {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(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
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->is_same(_struct, CefViewCToCpp::Unwrap(that));
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefViewDelegate> CefScrollViewCToCpp::GetDelegate() {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_delegate))
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// 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);
|
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefWindow> CefScrollViewCToCpp::GetWindow() {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_window))
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// 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);
|
|
|
|
}
|
|
|
|
|
|
|
|
int CefScrollViewCToCpp::GetID() {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(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;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CefScrollViewCToCpp::SetID(int id) {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_id))
|
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->set_id(_struct, id);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
2017-02-18 03:08:51 +01:00
|
|
|
int CefScrollViewCToCpp::GetGroupID() {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(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;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CefScrollViewCToCpp::SetGroupID(int group_id) {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_group_id))
|
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->set_group_id(_struct, group_id);
|
2017-02-18 03:08:51 +01:00
|
|
|
}
|
|
|
|
|
2016-01-19 21:09:01 +01:00
|
|
|
CefRefPtr<CefView> CefScrollViewCToCpp::GetParentView() {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_parent_view))
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// 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);
|
|
|
|
}
|
|
|
|
|
|
|
|
CefRefPtr<CefView> CefScrollViewCToCpp::GetViewForID(int id) {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_view_for_id))
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_view_t* _retval = _struct->get_view_for_id(_struct, id);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefViewCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CefScrollViewCToCpp::SetBounds(const CefRect& bounds) {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_bounds))
|
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->set_bounds(_struct, &bounds);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
CefRect CefScrollViewCToCpp::GetBounds() {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(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;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefRect CefScrollViewCToCpp::GetBoundsInScreen() {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(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;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CefScrollViewCToCpp::SetSize(const CefSize& size) {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_size))
|
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->set_size(_struct, &size);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
CefSize CefScrollViewCToCpp::GetSize() {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(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;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CefScrollViewCToCpp::SetPosition(const CefPoint& position) {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_position))
|
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->set_position(_struct, &position);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
CefPoint CefScrollViewCToCpp::GetPosition() {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(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;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefSize CefScrollViewCToCpp::GetPreferredSize() {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(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;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CefScrollViewCToCpp::SizeToPreferredSize() {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(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);
|
|
|
|
}
|
|
|
|
|
|
|
|
CefSize CefScrollViewCToCpp::GetMinimumSize() {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(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;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefSize CefScrollViewCToCpp::GetMaximumSize() {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(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;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CefScrollViewCToCpp::GetHeightForWidth(int width) {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_height_for_width))
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->get_height_for_width(_struct, width);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CefScrollViewCToCpp::InvalidateLayout() {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, invalidate_layout))
|
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
_struct->invalidate_layout(_struct);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CefScrollViewCToCpp::SetVisible(bool visible) {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_visible))
|
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->set_visible(_struct, visible);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
bool CefScrollViewCToCpp::IsVisible() {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(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
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
bool CefScrollViewCToCpp::IsDrawn() {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(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
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void CefScrollViewCToCpp::SetEnabled(bool enabled) {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_enabled))
|
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->set_enabled(_struct, enabled);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
bool CefScrollViewCToCpp::IsEnabled() {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(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
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void CefScrollViewCToCpp::SetFocusable(bool focusable) {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_focusable))
|
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->set_focusable(_struct, focusable);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
bool CefScrollViewCToCpp::IsFocusable() {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(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
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
bool CefScrollViewCToCpp::IsAccessibilityFocusable() {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(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
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void CefScrollViewCToCpp::RequestFocus() {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, request_focus))
|
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
_struct->request_focus(_struct);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CefScrollViewCToCpp::SetBackgroundColor(cef_color_t color) {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_background_color))
|
|
|
|
return;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->set_background_color(_struct, color);
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
cef_color_t CefScrollViewCToCpp::GetBackgroundColor() {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(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;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefScrollViewCToCpp::ConvertPointToScreen(CefPoint& point) {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, convert_point_to_screen))
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->convert_point_to_screen(_struct, &point);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
bool CefScrollViewCToCpp::ConvertPointFromScreen(CefPoint& point) {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, convert_point_from_screen))
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->convert_point_from_screen(_struct, &point);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
bool CefScrollViewCToCpp::ConvertPointToWindow(CefPoint& point) {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, convert_point_to_window))
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->convert_point_to_window(_struct, &point);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
bool CefScrollViewCToCpp::ConvertPointFromWindow(CefPoint& point) {
|
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, convert_point_from_window))
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->convert_point_from_window(_struct, &point);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
bool CefScrollViewCToCpp::ConvertPointToView(CefRefPtr<CefView> view,
|
2017-05-17 11:29:28 +02:00
|
|
|
CefPoint& point) {
|
2016-01-19 21:09:01 +01:00
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(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
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->convert_point_to_view(
|
|
|
|
_struct, CefViewCToCpp::Unwrap(view), &point);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
bool CefScrollViewCToCpp::ConvertPointFromView(CefRefPtr<CefView> view,
|
2017-05-17 11:29:28 +02:00
|
|
|
CefPoint& point) {
|
2016-01-19 21:09:01 +01:00
|
|
|
cef_view_t* _struct = reinterpret_cast<cef_view_t*>(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
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->convert_point_from_view(
|
|
|
|
_struct, CefViewCToCpp::Unwrap(view), &point);
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2016-01-19 21:09:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// CONSTRUCTOR - Do not edit by hand.
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
CefScrollViewCToCpp::CefScrollViewCToCpp() {}
|
2016-01-19 21:09:01 +01:00
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
cef_scroll_view_t*
|
|
|
|
CefCToCppRefCounted<CefScrollViewCToCpp, CefScrollView, cef_scroll_view_t>::
|
|
|
|
UnwrapDerived(CefWrapperType type, CefScrollView* c) {
|
2016-01-19 21:09:01 +01:00
|
|
|
NOTREACHED() << "Unexpected class type: " << type;
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2016-09-01 13:24:30 +02:00
|
|
|
#if DCHECK_IS_ON()
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
2017-07-27 01:19:27 +02:00
|
|
|
base::AtomicRefCount
|
|
|
|
CefCToCppRefCounted<CefScrollViewCToCpp, CefScrollView, cef_scroll_view_t>::
|
|
|
|
DebugObjCt ATOMIC_DECLARATION;
|
2016-01-19 21:09:01 +01:00
|
|
|
#endif
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefWrapperType CefCToCppRefCounted<CefScrollViewCToCpp,
|
|
|
|
CefScrollView,
|
|
|
|
cef_scroll_view_t>::kWrapperType =
|
|
|
|
WT_SCROLL_VIEW;
|