2023-01-02 23:47:15 +01:00
|
|
|
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
|
2014-01-06 20:48:18 +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.
|
|
|
|
//
|
2023-01-02 23:47:15 +01:00
|
|
|
// $hash=978e101f569a95222ce4e962d681ff2b4df46955$
|
2017-05-17 11:29:28 +02:00
|
|
|
//
|
2014-01-06 20:48:18 +01:00
|
|
|
|
|
|
|
#include "libcef_dll/cpptoc/drag_data_cpptoc.h"
|
2017-05-11 20:22:21 +02:00
|
|
|
#include "libcef_dll/cpptoc/image_cpptoc.h"
|
2014-07-01 00:30:29 +02:00
|
|
|
#include "libcef_dll/cpptoc/stream_writer_cpptoc.h"
|
2019-01-23 16:42:12 +01:00
|
|
|
#include "libcef_dll/shutdown_checker.h"
|
2014-01-06 20:48:18 +01:00
|
|
|
#include "libcef_dll/transfer_util.h"
|
|
|
|
|
2014-07-01 00:30:29 +02:00
|
|
|
// GLOBAL FUNCTIONS - Body may be edited by hand.
|
|
|
|
|
|
|
|
CEF_EXPORT cef_drag_data_t* cef_drag_data_create() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2014-07-01 00:30:29 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefRefPtr<CefDragData> _retval = CefDragData::Create();
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefDragDataCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
namespace {
|
|
|
|
|
2014-01-06 20:48:18 +01:00
|
|
|
// MEMBER FUNCTIONS - Body may be edited by hand.
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_drag_data_t* CEF_CALLBACK
|
|
|
|
drag_data_clone(struct _cef_drag_data_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2014-07-01 00:30:29 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2014-07-01 00:30:29 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-07-01 00:30:29 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefRefPtr<CefDragData> _retval = CefDragDataCppToC::Get(self)->Clone();
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefDragDataCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK drag_data_is_read_only(struct _cef_drag_data_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2014-07-01 00:30:29 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2014-07-01 00:30:29 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-07-01 00:30:29 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefDragDataCppToC::Get(self)->IsReadOnly();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2014-01-06 20:48:18 +01:00
|
|
|
int CEF_CALLBACK drag_data_is_link(struct _cef_drag_data_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2014-01-06 20:48:18 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2014-01-06 20:48:18 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-01-06 20:48:18 +01:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefDragDataCppToC::Get(self)->IsLink();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK drag_data_is_fragment(struct _cef_drag_data_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2014-01-06 20:48:18 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2014-01-06 20:48:18 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-01-06 20:48:18 +01:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefDragDataCppToC::Get(self)->IsFragment();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK drag_data_is_file(struct _cef_drag_data_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2014-01-06 20:48:18 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2014-01-06 20:48:18 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-01-06 20:48:18 +01:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefDragDataCppToC::Get(self)->IsFile();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t CEF_CALLBACK
|
|
|
|
drag_data_get_link_url(struct _cef_drag_data_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2014-01-06 20:48:18 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2014-01-06 20:48:18 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-01-06 20:48:18 +01:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefString _retval = CefDragDataCppToC::Get(self)->GetLinkURL();
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t CEF_CALLBACK
|
|
|
|
drag_data_get_link_title(struct _cef_drag_data_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2014-01-06 20:48:18 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2014-01-06 20:48:18 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-01-06 20:48:18 +01:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefString _retval = CefDragDataCppToC::Get(self)->GetLinkTitle();
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t CEF_CALLBACK
|
|
|
|
drag_data_get_link_metadata(struct _cef_drag_data_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2014-01-06 20:48:18 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2014-01-06 20:48:18 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-01-06 20:48:18 +01:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefString _retval = CefDragDataCppToC::Get(self)->GetLinkMetadata();
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t CEF_CALLBACK
|
|
|
|
drag_data_get_fragment_text(struct _cef_drag_data_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2014-01-06 20:48:18 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2014-01-06 20:48:18 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-01-06 20:48:18 +01:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefString _retval = CefDragDataCppToC::Get(self)->GetFragmentText();
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t CEF_CALLBACK
|
|
|
|
drag_data_get_fragment_html(struct _cef_drag_data_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2014-01-06 20:48:18 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2014-01-06 20:48:18 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-01-06 20:48:18 +01:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefString _retval = CefDragDataCppToC::Get(self)->GetFragmentHtml();
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t CEF_CALLBACK
|
|
|
|
drag_data_get_fragment_base_url(struct _cef_drag_data_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2014-01-06 20:48:18 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2014-01-06 20:48:18 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-01-06 20:48:18 +01:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefString _retval = CefDragDataCppToC::Get(self)->GetFragmentBaseURL();
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t CEF_CALLBACK
|
|
|
|
drag_data_get_file_name(struct _cef_drag_data_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2014-01-06 20:48:18 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2014-01-06 20:48:18 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-01-06 20:48:18 +01:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefString _retval = CefDragDataCppToC::Get(self)->GetFileName();
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
size_t CEF_CALLBACK
|
|
|
|
drag_data_get_file_contents(struct _cef_drag_data_t* self,
|
|
|
|
struct _cef_stream_writer_t* writer) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2014-07-01 00:30:29 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2014-07-01 00:30:29 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-07-01 00:30:29 +02:00
|
|
|
// Unverified params: writer
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
size_t _retval = CefDragDataCppToC::Get(self)->GetFileContents(
|
|
|
|
CefStreamWriterCppToC::Unwrap(writer));
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2014-01-06 20:48:18 +01:00
|
|
|
int CEF_CALLBACK drag_data_get_file_names(struct _cef_drag_data_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_list_t names) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2014-01-06 20:48:18 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2014-01-06 20:48:18 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-01-06 20:48:18 +01:00
|
|
|
// Verify param: names; type: string_vec_byref
|
|
|
|
DCHECK(names);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!names) {
|
2014-01-06 20:48:18 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-01-06 20:48:18 +01:00
|
|
|
|
|
|
|
// Translate param: names; type: string_vec_byref
|
|
|
|
std::vector<CefString> namesList;
|
|
|
|
transfer_string_list_contents(names, namesList);
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefDragDataCppToC::Get(self)->GetFileNames(namesList);
|
2014-01-06 20:48:18 +01:00
|
|
|
|
|
|
|
// Restore param: names; type: string_vec_byref
|
|
|
|
cef_string_list_clear(names);
|
|
|
|
transfer_string_list_contents(namesList, names);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2014-07-01 00:30:29 +02:00
|
|
|
void CEF_CALLBACK drag_data_set_link_url(struct _cef_drag_data_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
const cef_string_t* url) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2014-07-01 00:30:29 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2014-07-01 00:30:29 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-07-01 00:30:29 +02:00
|
|
|
// Unverified params: url
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefDragDataCppToC::Get(self)->SetLinkURL(CefString(url));
|
2014-07-01 00:30:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK drag_data_set_link_title(struct _cef_drag_data_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
const cef_string_t* title) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2014-07-01 00:30:29 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2014-07-01 00:30:29 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-07-01 00:30:29 +02:00
|
|
|
// Unverified params: title
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefDragDataCppToC::Get(self)->SetLinkTitle(CefString(title));
|
2014-07-01 00:30:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK drag_data_set_link_metadata(struct _cef_drag_data_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
const cef_string_t* data) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2014-07-01 00:30:29 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2014-07-01 00:30:29 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-07-01 00:30:29 +02:00
|
|
|
// Unverified params: data
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefDragDataCppToC::Get(self)->SetLinkMetadata(CefString(data));
|
2014-07-01 00:30:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK drag_data_set_fragment_text(struct _cef_drag_data_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
const cef_string_t* text) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2014-07-01 00:30:29 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2014-07-01 00:30:29 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-07-01 00:30:29 +02:00
|
|
|
// Unverified params: text
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefDragDataCppToC::Get(self)->SetFragmentText(CefString(text));
|
2014-07-01 00:30:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK drag_data_set_fragment_html(struct _cef_drag_data_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
const cef_string_t* html) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2014-07-01 00:30:29 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2014-07-01 00:30:29 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-07-01 00:30:29 +02:00
|
|
|
// Unverified params: html
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefDragDataCppToC::Get(self)->SetFragmentHtml(CefString(html));
|
2014-07-01 00:30:29 +02:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
void CEF_CALLBACK
|
|
|
|
drag_data_set_fragment_base_url(struct _cef_drag_data_t* self,
|
|
|
|
const cef_string_t* base_url) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2014-07-01 00:30:29 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2014-07-01 00:30:29 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-07-01 00:30:29 +02:00
|
|
|
// Unverified params: base_url
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefDragDataCppToC::Get(self)->SetFragmentBaseURL(CefString(base_url));
|
2014-07-01 00:30:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK drag_data_reset_file_contents(struct _cef_drag_data_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2014-07-01 00:30:29 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2014-07-01 00:30:29 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-07-01 00:30:29 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefDragDataCppToC::Get(self)->ResetFileContents();
|
|
|
|
}
|
|
|
|
|
|
|
|
void CEF_CALLBACK drag_data_add_file(struct _cef_drag_data_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
const cef_string_t* path,
|
|
|
|
const cef_string_t* display_name) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2014-07-01 00:30:29 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2014-07-01 00:30:29 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-07-01 00:30:29 +02:00
|
|
|
// Verify param: path; type: string_byref_const
|
|
|
|
DCHECK(path);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!path) {
|
2014-07-01 00:30:29 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2014-07-01 00:30:29 +02:00
|
|
|
// Unverified params: display_name
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefDragDataCppToC::Get(self)->AddFile(CefString(path),
|
|
|
|
CefString(display_name));
|
2014-07-01 00:30:29 +02:00
|
|
|
}
|
|
|
|
|
2022-03-02 20:44:16 +01:00
|
|
|
void CEF_CALLBACK drag_data_clear_filenames(struct _cef_drag_data_t* self) {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2022-03-02 20:44:16 +01:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2022-03-02 20:44:16 +01:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefDragDataCppToC::Get(self)->ClearFilenames();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_image_t* CEF_CALLBACK
|
|
|
|
drag_data_get_image(struct _cef_drag_data_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-05-11 20:22:21 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2017-05-11 20:22:21 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-05-11 20:22:21 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefRefPtr<CefImage> _retval = CefDragDataCppToC::Get(self)->GetImage();
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefImageCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_point_t CEF_CALLBACK
|
|
|
|
drag_data_get_image_hotspot(struct _cef_drag_data_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-05-11 20:22:21 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2017-05-11 20:22:21 +02:00
|
|
|
return CefPoint();
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-05-11 20:22:21 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_point_t _retval = CefDragDataCppToC::Get(self)->GetImageHotspot();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK drag_data_has_image(struct _cef_drag_data_t* self) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-05-11 20:22:21 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2017-05-11 20:22:21 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-05-11 20:22:21 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefDragDataCppToC::Get(self)->HasImage();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
} // namespace
|
|
|
|
|
2014-01-06 20:48:18 +01:00
|
|
|
// CONSTRUCTOR - Do not edit by hand.
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
CefDragDataCppToC::CefDragDataCppToC() {
|
|
|
|
GetStruct()->clone = drag_data_clone;
|
|
|
|
GetStruct()->is_read_only = drag_data_is_read_only;
|
|
|
|
GetStruct()->is_link = drag_data_is_link;
|
|
|
|
GetStruct()->is_fragment = drag_data_is_fragment;
|
|
|
|
GetStruct()->is_file = drag_data_is_file;
|
|
|
|
GetStruct()->get_link_url = drag_data_get_link_url;
|
|
|
|
GetStruct()->get_link_title = drag_data_get_link_title;
|
|
|
|
GetStruct()->get_link_metadata = drag_data_get_link_metadata;
|
|
|
|
GetStruct()->get_fragment_text = drag_data_get_fragment_text;
|
|
|
|
GetStruct()->get_fragment_html = drag_data_get_fragment_html;
|
|
|
|
GetStruct()->get_fragment_base_url = drag_data_get_fragment_base_url;
|
|
|
|
GetStruct()->get_file_name = drag_data_get_file_name;
|
|
|
|
GetStruct()->get_file_contents = drag_data_get_file_contents;
|
|
|
|
GetStruct()->get_file_names = drag_data_get_file_names;
|
|
|
|
GetStruct()->set_link_url = drag_data_set_link_url;
|
|
|
|
GetStruct()->set_link_title = drag_data_set_link_title;
|
|
|
|
GetStruct()->set_link_metadata = drag_data_set_link_metadata;
|
|
|
|
GetStruct()->set_fragment_text = drag_data_set_fragment_text;
|
|
|
|
GetStruct()->set_fragment_html = drag_data_set_fragment_html;
|
|
|
|
GetStruct()->set_fragment_base_url = drag_data_set_fragment_base_url;
|
|
|
|
GetStruct()->reset_file_contents = drag_data_reset_file_contents;
|
|
|
|
GetStruct()->add_file = drag_data_add_file;
|
2022-03-02 20:44:16 +01:00
|
|
|
GetStruct()->clear_filenames = drag_data_clear_filenames;
|
2017-05-11 20:22:21 +02:00
|
|
|
GetStruct()->get_image = drag_data_get_image;
|
|
|
|
GetStruct()->get_image_hotspot = drag_data_get_image_hotspot;
|
|
|
|
GetStruct()->has_image = drag_data_has_image;
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2019-01-23 16:42:12 +01:00
|
|
|
// DESTRUCTOR - Do not edit by hand.
|
|
|
|
|
|
|
|
CefDragDataCppToC::~CefDragDataCppToC() {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefRefPtr<CefDragData>
|
|
|
|
CefCppToCRefCounted<CefDragDataCppToC, CefDragData, cef_drag_data_t>::
|
|
|
|
UnwrapDerived(CefWrapperType type, cef_drag_data_t* s) {
|
2015-04-26 20:40:01 +02:00
|
|
|
NOTREACHED() << "Unexpected class type: " << type;
|
2020-01-15 14:53:19 +01:00
|
|
|
return nullptr;
|
2014-01-06 20:48:18 +01:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefWrapperType CefCppToCRefCounted<CefDragDataCppToC,
|
|
|
|
CefDragData,
|
|
|
|
cef_drag_data_t>::kWrapperType =
|
|
|
|
WT_DRAG_DATA;
|