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=cc3c62b07c8e4d6f019637a0338673ac21ffa017$
|
||||
// $hash=e641e3609e9b096e6be7edc589314d4d3e909ad1$
|
||||
//
|
||||
|
||||
#include "libcef_dll/ctocpp/command_line_ctocpp.h"
|
||||
@@ -58,8 +58,9 @@ CefRefPtr<CefCommandLine> CefCommandLine::GetGlobalCommandLine() {
|
||||
|
||||
NO_SANITIZE("cfi-icall") bool CefCommandLineCToCpp::IsValid() {
|
||||
cef_command_line_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, is_valid))
|
||||
if (CEF_MEMBER_MISSING(_struct, is_valid)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@@ -72,8 +73,9 @@ NO_SANITIZE("cfi-icall") bool CefCommandLineCToCpp::IsValid() {
|
||||
|
||||
NO_SANITIZE("cfi-icall") bool CefCommandLineCToCpp::IsReadOnly() {
|
||||
cef_command_line_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
|
||||
|
||||
@@ -87,8 +89,9 @@ NO_SANITIZE("cfi-icall") bool CefCommandLineCToCpp::IsReadOnly() {
|
||||
NO_SANITIZE("cfi-icall")
|
||||
CefRefPtr<CefCommandLine> CefCommandLineCToCpp::Copy() {
|
||||
cef_command_line_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, copy))
|
||||
if (CEF_MEMBER_MISSING(_struct, copy)) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@@ -102,15 +105,17 @@ CefRefPtr<CefCommandLine> CefCommandLineCToCpp::Copy() {
|
||||
NO_SANITIZE("cfi-icall")
|
||||
void CefCommandLineCToCpp::InitFromArgv(int argc, const char* const* argv) {
|
||||
cef_command_line_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, init_from_argv))
|
||||
if (CEF_MEMBER_MISSING(_struct, init_from_argv)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: argv; type: simple_byaddr
|
||||
DCHECK(argv);
|
||||
if (!argv)
|
||||
if (!argv) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Execute
|
||||
_struct->init_from_argv(_struct, argc, argv);
|
||||
@@ -119,15 +124,17 @@ void CefCommandLineCToCpp::InitFromArgv(int argc, const char* const* argv) {
|
||||
NO_SANITIZE("cfi-icall")
|
||||
void CefCommandLineCToCpp::InitFromString(const CefString& command_line) {
|
||||
cef_command_line_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, init_from_string))
|
||||
if (CEF_MEMBER_MISSING(_struct, init_from_string)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: command_line; type: string_byref_const
|
||||
DCHECK(!command_line.empty());
|
||||
if (command_line.empty())
|
||||
if (command_line.empty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Execute
|
||||
_struct->init_from_string(_struct, command_line.GetStruct());
|
||||
@@ -135,8 +142,9 @@ void CefCommandLineCToCpp::InitFromString(const CefString& command_line) {
|
||||
|
||||
NO_SANITIZE("cfi-icall") void CefCommandLineCToCpp::Reset() {
|
||||
cef_command_line_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, reset))
|
||||
if (CEF_MEMBER_MISSING(_struct, reset)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@@ -147,16 +155,18 @@ NO_SANITIZE("cfi-icall") void CefCommandLineCToCpp::Reset() {
|
||||
NO_SANITIZE("cfi-icall")
|
||||
void CefCommandLineCToCpp::GetArgv(std::vector<CefString>& argv) {
|
||||
cef_command_line_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, get_argv))
|
||||
if (CEF_MEMBER_MISSING(_struct, get_argv)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Translate param: argv; type: string_vec_byref
|
||||
cef_string_list_t argvList = cef_string_list_alloc();
|
||||
DCHECK(argvList);
|
||||
if (argvList)
|
||||
if (argvList) {
|
||||
transfer_string_list_contents(argv, argvList);
|
||||
}
|
||||
|
||||
// Execute
|
||||
_struct->get_argv(_struct, argvList);
|
||||
@@ -172,8 +182,9 @@ void CefCommandLineCToCpp::GetArgv(std::vector<CefString>& argv) {
|
||||
NO_SANITIZE("cfi-icall")
|
||||
CefString CefCommandLineCToCpp::GetCommandLineString() {
|
||||
cef_command_line_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, get_command_line_string))
|
||||
if (CEF_MEMBER_MISSING(_struct, get_command_line_string)) {
|
||||
return CefString();
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@@ -188,8 +199,9 @@ CefString CefCommandLineCToCpp::GetCommandLineString() {
|
||||
|
||||
NO_SANITIZE("cfi-icall") CefString CefCommandLineCToCpp::GetProgram() {
|
||||
cef_command_line_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, get_program))
|
||||
if (CEF_MEMBER_MISSING(_struct, get_program)) {
|
||||
return CefString();
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@@ -205,15 +217,17 @@ NO_SANITIZE("cfi-icall") CefString CefCommandLineCToCpp::GetProgram() {
|
||||
NO_SANITIZE("cfi-icall")
|
||||
void CefCommandLineCToCpp::SetProgram(const CefString& program) {
|
||||
cef_command_line_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, set_program))
|
||||
if (CEF_MEMBER_MISSING(_struct, set_program)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: program; type: string_byref_const
|
||||
DCHECK(!program.empty());
|
||||
if (program.empty())
|
||||
if (program.empty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Execute
|
||||
_struct->set_program(_struct, program.GetStruct());
|
||||
@@ -221,8 +235,9 @@ void CefCommandLineCToCpp::SetProgram(const CefString& program) {
|
||||
|
||||
NO_SANITIZE("cfi-icall") bool CefCommandLineCToCpp::HasSwitches() {
|
||||
cef_command_line_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, has_switches))
|
||||
if (CEF_MEMBER_MISSING(_struct, has_switches)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@@ -236,15 +251,17 @@ NO_SANITIZE("cfi-icall") bool CefCommandLineCToCpp::HasSwitches() {
|
||||
NO_SANITIZE("cfi-icall")
|
||||
bool CefCommandLineCToCpp::HasSwitch(const CefString& name) {
|
||||
cef_command_line_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, has_switch))
|
||||
if (CEF_MEMBER_MISSING(_struct, has_switch)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: name; type: string_byref_const
|
||||
DCHECK(!name.empty());
|
||||
if (name.empty())
|
||||
if (name.empty()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->has_switch(_struct, name.GetStruct());
|
||||
@@ -256,15 +273,17 @@ bool CefCommandLineCToCpp::HasSwitch(const CefString& name) {
|
||||
NO_SANITIZE("cfi-icall")
|
||||
CefString CefCommandLineCToCpp::GetSwitchValue(const CefString& name) {
|
||||
cef_command_line_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, get_switch_value))
|
||||
if (CEF_MEMBER_MISSING(_struct, get_switch_value)) {
|
||||
return CefString();
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: name; type: string_byref_const
|
||||
DCHECK(!name.empty());
|
||||
if (name.empty())
|
||||
if (name.empty()) {
|
||||
return CefString();
|
||||
}
|
||||
|
||||
// Execute
|
||||
cef_string_userfree_t _retval =
|
||||
@@ -279,16 +298,18 @@ CefString CefCommandLineCToCpp::GetSwitchValue(const CefString& name) {
|
||||
NO_SANITIZE("cfi-icall")
|
||||
void CefCommandLineCToCpp::GetSwitches(SwitchMap& switches) {
|
||||
cef_command_line_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, get_switches))
|
||||
if (CEF_MEMBER_MISSING(_struct, get_switches)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Translate param: switches; type: string_map_single_byref
|
||||
cef_string_map_t switchesMap = cef_string_map_alloc();
|
||||
DCHECK(switchesMap);
|
||||
if (switchesMap)
|
||||
if (switchesMap) {
|
||||
transfer_string_map_contents(switches, switchesMap);
|
||||
}
|
||||
|
||||
// Execute
|
||||
_struct->get_switches(_struct, switchesMap);
|
||||
@@ -304,15 +325,17 @@ void CefCommandLineCToCpp::GetSwitches(SwitchMap& switches) {
|
||||
NO_SANITIZE("cfi-icall")
|
||||
void CefCommandLineCToCpp::AppendSwitch(const CefString& name) {
|
||||
cef_command_line_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, append_switch))
|
||||
if (CEF_MEMBER_MISSING(_struct, append_switch)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: name; type: string_byref_const
|
||||
DCHECK(!name.empty());
|
||||
if (name.empty())
|
||||
if (name.empty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Execute
|
||||
_struct->append_switch(_struct, name.GetStruct());
|
||||
@@ -322,19 +345,22 @@ NO_SANITIZE("cfi-icall")
|
||||
void CefCommandLineCToCpp::AppendSwitchWithValue(const CefString& name,
|
||||
const CefString& value) {
|
||||
cef_command_line_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, append_switch_with_value))
|
||||
if (CEF_MEMBER_MISSING(_struct, append_switch_with_value)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: name; type: string_byref_const
|
||||
DCHECK(!name.empty());
|
||||
if (name.empty())
|
||||
if (name.empty()) {
|
||||
return;
|
||||
}
|
||||
// Verify param: value; type: string_byref_const
|
||||
DCHECK(!value.empty());
|
||||
if (value.empty())
|
||||
if (value.empty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Execute
|
||||
_struct->append_switch_with_value(_struct, name.GetStruct(),
|
||||
@@ -343,8 +369,9 @@ void CefCommandLineCToCpp::AppendSwitchWithValue(const CefString& name,
|
||||
|
||||
NO_SANITIZE("cfi-icall") bool CefCommandLineCToCpp::HasArguments() {
|
||||
cef_command_line_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, has_arguments))
|
||||
if (CEF_MEMBER_MISSING(_struct, has_arguments)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@@ -358,16 +385,18 @@ NO_SANITIZE("cfi-icall") bool CefCommandLineCToCpp::HasArguments() {
|
||||
NO_SANITIZE("cfi-icall")
|
||||
void CefCommandLineCToCpp::GetArguments(ArgumentList& arguments) {
|
||||
cef_command_line_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, get_arguments))
|
||||
if (CEF_MEMBER_MISSING(_struct, get_arguments)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Translate param: arguments; type: string_vec_byref
|
||||
cef_string_list_t argumentsList = cef_string_list_alloc();
|
||||
DCHECK(argumentsList);
|
||||
if (argumentsList)
|
||||
if (argumentsList) {
|
||||
transfer_string_list_contents(arguments, argumentsList);
|
||||
}
|
||||
|
||||
// Execute
|
||||
_struct->get_arguments(_struct, argumentsList);
|
||||
@@ -383,15 +412,17 @@ void CefCommandLineCToCpp::GetArguments(ArgumentList& arguments) {
|
||||
NO_SANITIZE("cfi-icall")
|
||||
void CefCommandLineCToCpp::AppendArgument(const CefString& argument) {
|
||||
cef_command_line_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, append_argument))
|
||||
if (CEF_MEMBER_MISSING(_struct, append_argument)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: argument; type: string_byref_const
|
||||
DCHECK(!argument.empty());
|
||||
if (argument.empty())
|
||||
if (argument.empty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Execute
|
||||
_struct->append_argument(_struct, argument.GetStruct());
|
||||
@@ -400,15 +431,17 @@ void CefCommandLineCToCpp::AppendArgument(const CefString& argument) {
|
||||
NO_SANITIZE("cfi-icall")
|
||||
void CefCommandLineCToCpp::PrependWrapper(const CefString& wrapper) {
|
||||
cef_command_line_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, prepend_wrapper))
|
||||
if (CEF_MEMBER_MISSING(_struct, prepend_wrapper)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: wrapper; type: string_byref_const
|
||||
DCHECK(!wrapper.empty());
|
||||
if (wrapper.empty())
|
||||
if (wrapper.empty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Execute
|
||||
_struct->prepend_wrapper(_struct, wrapper.GetStruct());
|
||||
|
Reference in New Issue
Block a user