From 07ba48b082f406873597196c267e7042c303a79f Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Tue, 7 Feb 2017 16:25:11 -0500 Subject: Add support for non-ref-counted interface classes (issue #2090) --- .../test/translator_test_scoped_library_ctocpp.h | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h (limited to 'libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h') diff --git a/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h b/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h new file mode 100644 index 00000000..978316de --- /dev/null +++ b/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h @@ -0,0 +1,39 @@ +// Copyright (c) 2017 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. +// +// --------------------------------------------------------------------------- +// +// 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. +// + +#ifndef CEF_LIBCEF_DLL_CTOCPP_TEST_TRANSLATOR_TEST_SCOPED_LIBRARY_CTOCPP_H_ +#define CEF_LIBCEF_DLL_CTOCPP_TEST_TRANSLATOR_TEST_SCOPED_LIBRARY_CTOCPP_H_ +#pragma once + +#if !defined(WRAPPING_CEF_SHARED) +#error This file can be included wrapper-side only +#endif + +#include "include/test/cef_translator_test.h" +#include "include/capi/test/cef_translator_test_capi.h" +#include "libcef_dll/ctocpp/ctocpp_scoped.h" + +// Wrap a C structure with a C++ class. +// This class may be instantiated and accessed wrapper-side only. +class CefTranslatorTestScopedLibraryCToCpp + : public CefCToCppScoped { + public: + CefTranslatorTestScopedLibraryCToCpp(); + + // CefTranslatorTestScopedLibrary methods. + int GetValue() OVERRIDE; + void SetValue(int value) OVERRIDE; +}; + +#endif // CEF_LIBCEF_DLL_CTOCPP_TEST_TRANSLATOR_TEST_SCOPED_LIBRARY_CTOCPP_H_ -- cgit v1.2.3 From 31d9407ee28d85b71d808b263d452e57a563c375 Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Wed, 17 May 2017 11:29:28 +0200 Subject: Apply clang-format to all C, C++ and ObjC files (issue #2171) --- libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h') diff --git a/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h b/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h index 978316de..009aae06 100644 --- a/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h +++ b/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h @@ -9,6 +9,8 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // +// $hash=7615ff956f45991a56cad535593fc68da2a73aa4$ +// #ifndef CEF_LIBCEF_DLL_CTOCPP_TEST_TRANSLATOR_TEST_SCOPED_LIBRARY_CTOCPP_H_ #define CEF_LIBCEF_DLL_CTOCPP_TEST_TRANSLATOR_TEST_SCOPED_LIBRARY_CTOCPP_H_ @@ -18,16 +20,16 @@ #error This file can be included wrapper-side only #endif -#include "include/test/cef_translator_test.h" #include "include/capi/test/cef_translator_test_capi.h" +#include "include/test/cef_translator_test.h" #include "libcef_dll/ctocpp/ctocpp_scoped.h" // Wrap a C structure with a C++ class. // This class may be instantiated and accessed wrapper-side only. class CefTranslatorTestScopedLibraryCToCpp : public CefCToCppScoped { + CefTranslatorTestScopedLibrary, + cef_translator_test_scoped_library_t> { public: CefTranslatorTestScopedLibraryCToCpp(); -- cgit v1.2.3 From 1c7391b70a9b995830db63623b819d8c022a68f1 Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Wed, 3 Jan 2018 15:46:26 -0500 Subject: Update generated file copyright year --- libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h') diff --git a/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h b/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h index 009aae06..e8126116 100644 --- a/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h +++ b/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h @@ -1,4 +1,4 @@ -// Copyright (c) 2017 The Chromium Embedded Framework Authors. All rights +// Copyright (c) 2018 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=7615ff956f45991a56cad535593fc68da2a73aa4$ +// $hash=9b768b477e82f0dd8922c93d1062c499e56085f0$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_TEST_TRANSLATOR_TEST_SCOPED_LIBRARY_CTOCPP_H_ -- cgit v1.2.3 From bac8fb5e61bc9aa4db93e6708ac039a627c34c99 Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Thu, 10 Jan 2019 15:22:19 +0100 Subject: Update copyright year on generated files --- libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h') diff --git a/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h b/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h index e8126116..e90b15c8 100644 --- a/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h +++ b/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h @@ -1,4 +1,4 @@ -// Copyright (c) 2018 The Chromium Embedded Framework Authors. All rights +// Copyright (c) 2019 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=9b768b477e82f0dd8922c93d1062c499e56085f0$ +// $hash=ad52635fd194ac77ee339bc48490214252faab16$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_TEST_TRANSLATOR_TEST_SCOPED_LIBRARY_CTOCPP_H_ -- cgit v1.2.3 From 3fe062a5b6c6a5dccb11d8c9759531dc2aeefd0e Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Wed, 23 Jan 2019 16:42:12 +0100 Subject: Implement new approach for debugging leaked wrapper object references (issue #2593) --- libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h') diff --git a/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h b/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h index e90b15c8..706d85ad 100644 --- a/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h +++ b/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=ad52635fd194ac77ee339bc48490214252faab16$ +// $hash=002a6b9b0c43790f493141a8496f5132fe7e141e$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_TEST_TRANSLATOR_TEST_SCOPED_LIBRARY_CTOCPP_H_ @@ -32,6 +32,7 @@ class CefTranslatorTestScopedLibraryCToCpp cef_translator_test_scoped_library_t> { public: CefTranslatorTestScopedLibraryCToCpp(); + virtual ~CefTranslatorTestScopedLibraryCToCpp(); // CefTranslatorTestScopedLibrary methods. int GetValue() OVERRIDE; -- cgit v1.2.3 From beb005138a9d6b7a603bbd6cc28ccaf6e119918c Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Mon, 6 Jan 2020 11:59:05 +0200 Subject: Update copyright year --- libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h') diff --git a/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h b/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h index 706d85ad..11600e0c 100644 --- a/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h +++ b/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h @@ -1,4 +1,4 @@ -// Copyright (c) 2019 The Chromium Embedded Framework Authors. All rights +// Copyright (c) 2020 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=002a6b9b0c43790f493141a8496f5132fe7e141e$ +// $hash=35349ead1a95bca88b7076a79e1c8ad7be025d08$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_TEST_TRANSLATOR_TEST_SCOPED_LIBRARY_CTOCPP_H_ -- cgit v1.2.3 From 119415b8e9eabae2322479594b7d99e3dbce56a2 Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Wed, 27 Jan 2021 13:36:54 -0500 Subject: Update copyright year on generated files --- libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h') diff --git a/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h b/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h index 11600e0c..2cbf56e9 100644 --- a/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h +++ b/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h @@ -1,4 +1,4 @@ -// Copyright (c) 2020 The Chromium Embedded Framework Authors. All rights +// Copyright (c) 2021 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=35349ead1a95bca88b7076a79e1c8ad7be025d08$ +// $hash=32beea0e95a0acdbf22d552970d719382785554a$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_TEST_TRANSLATOR_TEST_SCOPED_LIBRARY_CTOCPP_H_ -- cgit v1.2.3 From 6d80ec69d77bdc4594009edfbc7665fb70be2724 Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Thu, 17 Jun 2021 15:43:06 -0400 Subject: Replace OVERRIDE with override (see issue #3140) --- libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h') diff --git a/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h b/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h index 2cbf56e9..844cfd20 100644 --- a/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h +++ b/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h @@ -9,7 +9,7 @@ // implementations. See the translator.README.txt file in the tools directory // for more information. // -// $hash=32beea0e95a0acdbf22d552970d719382785554a$ +// $hash=4ecab663ff0d6a777de108ff3d346eed68ca379d$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_TEST_TRANSLATOR_TEST_SCOPED_LIBRARY_CTOCPP_H_ @@ -35,8 +35,8 @@ class CefTranslatorTestScopedLibraryCToCpp virtual ~CefTranslatorTestScopedLibraryCToCpp(); // CefTranslatorTestScopedLibrary methods. - int GetValue() OVERRIDE; - void SetValue(int value) OVERRIDE; + int GetValue() override; + void SetValue(int value) override; }; #endif // CEF_LIBCEF_DLL_CTOCPP_TEST_TRANSLATOR_TEST_SCOPED_LIBRARY_CTOCPP_H_ -- cgit v1.2.3 From 2b9a06933bf47472c363f20c744485e6db0c814e Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Thu, 6 Jan 2022 13:34:35 -0500 Subject: Update copyright year in generated files --- libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h') diff --git a/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h b/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h index 844cfd20..3ff0bbe1 100644 --- a/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h +++ b/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h @@ -1,4 +1,4 @@ -// Copyright (c) 2021 The Chromium Embedded Framework Authors. All rights +// Copyright (c) 2022 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=4ecab663ff0d6a777de108ff3d346eed68ca379d$ +// $hash=0c47852a4585753b8775a38b380be6f38fe45027$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_TEST_TRANSLATOR_TEST_SCOPED_LIBRARY_CTOCPP_H_ -- cgit v1.2.3 From d84b07a5cb229f552fa7865d323073adfeddb46a Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Mon, 2 Jan 2023 17:47:15 -0500 Subject: Update generated files for copyright year and bracket style --- libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h') diff --git a/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h b/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h index 3ff0bbe1..c40e19ef 100644 --- a/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h +++ b/libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h @@ -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=0c47852a4585753b8775a38b380be6f38fe45027$ +// $hash=5fafb4986f557d448f6f234fd49ea899eac81af1$ // #ifndef CEF_LIBCEF_DLL_CTOCPP_TEST_TRANSLATOR_TEST_SCOPED_LIBRARY_CTOCPP_H_ -- cgit v1.2.3