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=336c57e3c57a1a5bf8fa4a39aee8f204788ccddb$
|
||||
// $hash=d3e14a8c5fc34064be3a20f386a11b1d7962163e$
|
||||
//
|
||||
|
||||
#include "libcef_dll/ctocpp/dialog_handler_ctocpp.h"
|
||||
@@ -31,26 +31,30 @@ bool CefDialogHandlerCToCpp::OnFileDialog(
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
cef_dialog_handler_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, on_file_dialog))
|
||||
if (CEF_MEMBER_MISSING(_struct, on_file_dialog)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: browser; type: refptr_diff
|
||||
DCHECK(browser.get());
|
||||
if (!browser.get())
|
||||
if (!browser.get()) {
|
||||
return false;
|
||||
}
|
||||
// Verify param: callback; type: refptr_diff
|
||||
DCHECK(callback.get());
|
||||
if (!callback.get())
|
||||
if (!callback.get()) {
|
||||
return false;
|
||||
}
|
||||
// Unverified params: title, default_file_path, accept_filters
|
||||
|
||||
// Translate param: accept_filters; type: string_vec_byref_const
|
||||
cef_string_list_t accept_filtersList = cef_string_list_alloc();
|
||||
DCHECK(accept_filtersList);
|
||||
if (accept_filtersList)
|
||||
if (accept_filtersList) {
|
||||
transfer_string_list_contents(accept_filters, accept_filtersList);
|
||||
}
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->on_file_dialog(
|
||||
@@ -59,8 +63,9 @@ bool CefDialogHandlerCToCpp::OnFileDialog(
|
||||
CefFileDialogCallbackCppToC::Wrap(callback));
|
||||
|
||||
// Restore param:accept_filters; type: string_vec_byref_const
|
||||
if (accept_filtersList)
|
||||
if (accept_filtersList) {
|
||||
cef_string_list_free(accept_filtersList);
|
||||
}
|
||||
|
||||
// Return type: bool
|
||||
return _retval ? true : false;
|
||||
|
Reference in New Issue
Block a user