mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update generated files for copyright year and bracket style
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=027842b89846614ba6d0e3056db65004bc3a6b06$
|
||||
// $hash=46e4cc8924d3070e56735a5b2b0746ae82d25b2b$
|
||||
//
|
||||
|
||||
#include "libcef_dll/ctocpp/post_data_element_ctocpp.h"
|
||||
@@ -31,8 +31,9 @@ CefRefPtr<CefPostDataElement> CefPostDataElement::Create() {
|
||||
|
||||
NO_SANITIZE("cfi-icall") bool CefPostDataElementCToCpp::IsReadOnly() {
|
||||
cef_post_data_element_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, is_read_only))
|
||||
if (CEF_MEMBER_MISSING(_struct, is_read_only)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@@ -45,8 +46,9 @@ NO_SANITIZE("cfi-icall") bool CefPostDataElementCToCpp::IsReadOnly() {
|
||||
|
||||
NO_SANITIZE("cfi-icall") void CefPostDataElementCToCpp::SetToEmpty() {
|
||||
cef_post_data_element_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, set_to_empty))
|
||||
if (CEF_MEMBER_MISSING(_struct, set_to_empty)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@@ -57,15 +59,17 @@ NO_SANITIZE("cfi-icall") void CefPostDataElementCToCpp::SetToEmpty() {
|
||||
NO_SANITIZE("cfi-icall")
|
||||
void CefPostDataElementCToCpp::SetToFile(const CefString& fileName) {
|
||||
cef_post_data_element_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, set_to_file))
|
||||
if (CEF_MEMBER_MISSING(_struct, set_to_file)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: fileName; type: string_byref_const
|
||||
DCHECK(!fileName.empty());
|
||||
if (fileName.empty())
|
||||
if (fileName.empty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Execute
|
||||
_struct->set_to_file(_struct, fileName.GetStruct());
|
||||
@@ -74,15 +78,17 @@ void CefPostDataElementCToCpp::SetToFile(const CefString& fileName) {
|
||||
NO_SANITIZE("cfi-icall")
|
||||
void CefPostDataElementCToCpp::SetToBytes(size_t size, const void* bytes) {
|
||||
cef_post_data_element_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, set_to_bytes))
|
||||
if (CEF_MEMBER_MISSING(_struct, set_to_bytes)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: bytes; type: simple_byaddr
|
||||
DCHECK(bytes);
|
||||
if (!bytes)
|
||||
if (!bytes) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Execute
|
||||
_struct->set_to_bytes(_struct, size, bytes);
|
||||
@@ -91,8 +97,9 @@ void CefPostDataElementCToCpp::SetToBytes(size_t size, const void* bytes) {
|
||||
NO_SANITIZE("cfi-icall")
|
||||
CefPostDataElement::Type CefPostDataElementCToCpp::GetType() {
|
||||
cef_post_data_element_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, get_type))
|
||||
if (CEF_MEMBER_MISSING(_struct, get_type)) {
|
||||
return PDE_TYPE_EMPTY;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@@ -105,8 +112,9 @@ CefPostDataElement::Type CefPostDataElementCToCpp::GetType() {
|
||||
|
||||
NO_SANITIZE("cfi-icall") CefString CefPostDataElementCToCpp::GetFile() {
|
||||
cef_post_data_element_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, get_file))
|
||||
if (CEF_MEMBER_MISSING(_struct, get_file)) {
|
||||
return CefString();
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@@ -121,8 +129,9 @@ NO_SANITIZE("cfi-icall") CefString CefPostDataElementCToCpp::GetFile() {
|
||||
|
||||
NO_SANITIZE("cfi-icall") size_t CefPostDataElementCToCpp::GetBytesCount() {
|
||||
cef_post_data_element_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, get_bytes_count))
|
||||
if (CEF_MEMBER_MISSING(_struct, get_bytes_count)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@@ -136,15 +145,17 @@ NO_SANITIZE("cfi-icall") size_t CefPostDataElementCToCpp::GetBytesCount() {
|
||||
NO_SANITIZE("cfi-icall")
|
||||
size_t CefPostDataElementCToCpp::GetBytes(size_t size, void* bytes) {
|
||||
cef_post_data_element_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, get_bytes))
|
||||
if (CEF_MEMBER_MISSING(_struct, get_bytes)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: bytes; type: simple_byaddr
|
||||
DCHECK(bytes);
|
||||
if (!bytes)
|
||||
if (!bytes) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Execute
|
||||
size_t _retval = _struct->get_bytes(_struct, size, bytes);
|
||||
|
Reference in New Issue
Block a user