Update generated files for copyright year and bracket style

This commit is contained in:
Marshall Greenblatt
2023-01-02 17:47:15 -05:00
parent c7ffa3a122
commit d84b07a5cb
759 changed files with 12777 additions and 7149 deletions

View File

@@ -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=24d0396cbcb6e2af587c1126c899277d4ac0b4d2$
// $hash=60bb1af4e6451440a44e3469e69e34fd6f711d62$
//
#include "include/capi/cef_app_capi.h"
@@ -155,8 +155,9 @@ void CefSetCrashKeyValue(const CefString& key, const CefString& value) {
// Verify param: key; type: string_byref_const
DCHECK(!key.empty());
if (key.empty())
if (key.empty()) {
return;
}
// Unverified params: value
// Execute
@@ -169,8 +170,9 @@ CEF_GLOBAL bool CefCreateDirectory(const CefString& full_path) {
// Verify param: full_path; type: string_byref_const
DCHECK(!full_path.empty());
if (full_path.empty())
if (full_path.empty()) {
return false;
}
// Execute
int _retval = cef_create_directory(full_path.GetStruct());
@@ -213,8 +215,9 @@ CEF_GLOBAL bool CefCreateTempDirectoryInDirectory(const CefString& base_dir,
// Verify param: base_dir; type: string_byref_const
DCHECK(!base_dir.empty());
if (base_dir.empty())
if (base_dir.empty()) {
return false;
}
// Unverified params: prefix
// Execute
@@ -231,8 +234,9 @@ CEF_GLOBAL bool CefDirectoryExists(const CefString& path) {
// Verify param: path; type: string_byref_const
DCHECK(!path.empty());
if (path.empty())
if (path.empty()) {
return false;
}
// Execute
int _retval = cef_directory_exists(path.GetStruct());
@@ -247,8 +251,9 @@ CEF_GLOBAL bool CefDeleteFile(const CefString& path, bool recursive) {
// Verify param: path; type: string_byref_const
DCHECK(!path.empty());
if (path.empty())
if (path.empty()) {
return false;
}
// Execute
int _retval = cef_delete_file(path.GetStruct(), recursive);
@@ -265,12 +270,14 @@ CEF_GLOBAL bool CefZipDirectory(const CefString& src_dir,
// Verify param: src_dir; type: string_byref_const
DCHECK(!src_dir.empty());
if (src_dir.empty())
if (src_dir.empty()) {
return false;
}
// Verify param: dest_file; type: string_byref_const
DCHECK(!dest_file.empty());
if (dest_file.empty())
if (dest_file.empty()) {
return false;
}
// Execute
int _retval = cef_zip_directory(src_dir.GetStruct(), dest_file.GetStruct(),
@@ -286,8 +293,9 @@ CEF_GLOBAL void CefLoadCRLSetsFile(const CefString& path) {
// Verify param: path; type: string_byref_const
DCHECK(!path.empty());
if (path.empty())
if (path.empty()) {
return;
}
// Execute
cef_load_crlsets_file(path.GetStruct());
@@ -313,12 +321,14 @@ bool CefAddCrossOriginWhitelistEntry(const CefString& source_origin,
// Verify param: source_origin; type: string_byref_const
DCHECK(!source_origin.empty());
if (source_origin.empty())
if (source_origin.empty()) {
return false;
}
// Verify param: target_protocol; type: string_byref_const
DCHECK(!target_protocol.empty());
if (target_protocol.empty())
if (target_protocol.empty()) {
return false;
}
// Unverified params: target_domain
// Execute
@@ -340,12 +350,14 @@ bool CefRemoveCrossOriginWhitelistEntry(const CefString& source_origin,
// Verify param: source_origin; type: string_byref_const
DCHECK(!source_origin.empty());
if (source_origin.empty())
if (source_origin.empty()) {
return false;
}
// Verify param: target_protocol; type: string_byref_const
DCHECK(!target_protocol.empty());
if (target_protocol.empty())
if (target_protocol.empty()) {
return false;
}
// Unverified params: target_domain
// Execute
@@ -375,12 +387,14 @@ CEF_GLOBAL bool CefResolveURL(const CefString& base_url,
// Verify param: base_url; type: string_byref_const
DCHECK(!base_url.empty());
if (base_url.empty())
if (base_url.empty()) {
return false;
}
// Verify param: relative_url; type: string_byref_const
DCHECK(!relative_url.empty());
if (relative_url.empty())
if (relative_url.empty()) {
return false;
}
// Execute
int _retval = cef_resolve_url(base_url.GetStruct(), relative_url.GetStruct(),
@@ -396,8 +410,9 @@ CEF_GLOBAL bool CefParseURL(const CefString& url, CefURLParts& parts) {
// Verify param: url; type: string_byref_const
DCHECK(!url.empty());
if (url.empty())
if (url.empty()) {
return false;
}
// Execute
int _retval = cef_parse_url(url.GetStruct(), &parts);
@@ -424,8 +439,9 @@ CefFormatUrlForSecurityDisplay(const CefString& origin_url) {
// Verify param: origin_url; type: string_byref_const
DCHECK(!origin_url.empty());
if (origin_url.empty())
if (origin_url.empty()) {
return CefString();
}
// Execute
cef_string_userfree_t _retval =
@@ -443,8 +459,9 @@ CEF_GLOBAL CefString CefGetMimeType(const CefString& extension) {
// Verify param: extension; type: string_byref_const
DCHECK(!extension.empty());
if (extension.empty())
if (extension.empty()) {
return CefString();
}
// Execute
cef_string_userfree_t _retval = cef_get_mime_type(extension.GetStruct());
@@ -463,14 +480,16 @@ void CefGetExtensionsForMimeType(const CefString& mime_type,
// Verify param: mime_type; type: string_byref_const
DCHECK(!mime_type.empty());
if (mime_type.empty())
if (mime_type.empty()) {
return;
}
// Translate param: extensions; type: string_vec_byref
cef_string_list_t extensionsList = cef_string_list_alloc();
DCHECK(extensionsList);
if (extensionsList)
if (extensionsList) {
transfer_string_list_contents(extensions, extensionsList);
}
// Execute
cef_get_extensions_for_mime_type(mime_type.GetStruct(), extensionsList);
@@ -489,8 +508,9 @@ CEF_GLOBAL CefString CefBase64Encode(const void* data, size_t data_size) {
// Verify param: data; type: simple_byaddr
DCHECK(data);
if (!data)
if (!data) {
return CefString();
}
// Execute
cef_string_userfree_t _retval = cef_base64encode(data, data_size);
@@ -507,8 +527,9 @@ CEF_GLOBAL CefRefPtr<CefBinaryValue> CefBase64Decode(const CefString& data) {
// Verify param: data; type: string_byref_const
DCHECK(!data.empty());
if (data.empty())
if (data.empty()) {
return nullptr;
}
// Execute
cef_binary_value_t* _retval = cef_base64decode(data.GetStruct());
@@ -523,8 +544,9 @@ CEF_GLOBAL CefString CefURIEncode(const CefString& text, bool use_plus) {
// Verify param: text; type: string_byref_const
DCHECK(!text.empty());
if (text.empty())
if (text.empty()) {
return CefString();
}
// Execute
cef_string_userfree_t _retval = cef_uriencode(text.GetStruct(), use_plus);
@@ -543,8 +565,9 @@ CEF_GLOBAL CefString CefURIDecode(const CefString& text,
// Verify param: text; type: string_byref_const
DCHECK(!text.empty());
if (text.empty())
if (text.empty()) {
return CefString();
}
// Execute
cef_string_userfree_t _retval =
@@ -563,8 +586,9 @@ CEF_GLOBAL CefRefPtr<CefValue> CefParseJSON(const CefString& json_string,
// Verify param: json_string; type: string_byref_const
DCHECK(!json_string.empty());
if (json_string.empty())
if (json_string.empty()) {
return nullptr;
}
// Execute
cef_value_t* _retval = cef_parse_json(json_string.GetStruct(), options);
@@ -581,8 +605,9 @@ CEF_GLOBAL CefRefPtr<CefValue> CefParseJSON(const void* json,
// Verify param: json; type: simple_byaddr
DCHECK(json);
if (!json)
if (!json) {
return nullptr;
}
// Execute
cef_value_t* _retval = cef_parse_json_buffer(json, json_size, options);
@@ -600,8 +625,9 @@ CEF_GLOBAL CefRefPtr<CefValue> CefParseJSONAndReturnError(
// Verify param: json_string; type: string_byref_const
DCHECK(!json_string.empty());
if (json_string.empty())
if (json_string.empty()) {
return nullptr;
}
// Execute
cef_value_t* _retval = cef_parse_jsonand_return_error(
@@ -618,8 +644,9 @@ CEF_GLOBAL CefString CefWriteJSON(CefRefPtr<CefValue> node,
// Verify param: node; type: refptr_same
DCHECK(node.get());
if (!node.get())
if (!node.get()) {
return CefString();
}
// Execute
cef_string_userfree_t _retval =
@@ -648,8 +675,9 @@ CEF_GLOBAL bool CefLaunchProcess(CefRefPtr<CefCommandLine> command_line) {
// Verify param: command_line; type: refptr_same
DCHECK(command_line.get());
if (!command_line.get())
if (!command_line.get()) {
return false;
}
// Execute
int _retval = cef_launch_process(CefCommandLineCToCpp::Unwrap(command_line));
@@ -667,8 +695,9 @@ CEF_GLOBAL bool CefRegisterSchemeHandlerFactory(
// Verify param: scheme_name; type: string_byref_const
DCHECK(!scheme_name.empty());
if (scheme_name.empty())
if (scheme_name.empty()) {
return false;
}
// Unverified params: domain_name, factory
// Execute
@@ -717,8 +746,9 @@ CEF_GLOBAL bool CefPostTask(CefThreadId threadId, CefRefPtr<CefTask> task) {
// Verify param: task; type: refptr_diff
DCHECK(task.get());
if (!task.get())
if (!task.get()) {
return false;
}
// Execute
int _retval = cef_post_task(threadId, CefTaskCppToC::Wrap(task));
@@ -735,8 +765,9 @@ CEF_GLOBAL bool CefPostDelayedTask(CefThreadId threadId,
// Verify param: task; type: refptr_diff
DCHECK(task.get());
if (!task.get())
if (!task.get()) {
return false;
}
// Execute
int _retval =
@@ -794,12 +825,14 @@ CEF_GLOBAL bool CefRegisterExtension(const CefString& extension_name,
// Verify param: extension_name; type: string_byref_const
DCHECK(!extension_name.empty());
if (extension_name.empty())
if (extension_name.empty()) {
return false;
}
// Verify param: javascript_code; type: string_byref_const
DCHECK(!javascript_code.empty());
if (javascript_code.empty())
if (javascript_code.empty()) {
return false;
}
// Unverified params: handler
// Execute
@@ -819,8 +852,9 @@ CEF_GLOBAL void CefExecuteJavaScriptWithUserGestureForTests(
// Verify param: frame; type: refptr_same
DCHECK(frame.get());
if (!frame.get())
if (!frame.get()) {
return;
}
// Unverified params: javascript
// Execute
@@ -834,8 +868,9 @@ CEF_GLOBAL void CefSetDataDirectoryForTests(const CefString& dir) {
// Verify param: dir; type: string_byref_const
DCHECK(!dir.empty());
if (dir.empty())
if (dir.empty()) {
return;
}
// Execute
cef_set_data_directory_for_tests(dir.GetStruct());