• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
2 // reserved. Use of this source code is governed by a BSD-style license that
3 // can be found in the LICENSE file.
4 //
5 // ---------------------------------------------------------------------------
6 //
7 // This file was generated by the CEF translator tool. If making changes by
8 // hand only do so within the body of existing method and function
9 // implementations. See the translator.README.txt file in the tools directory
10 // for more information.
11 //
12 // $hash=2e3cda6569368540518b84119205e1e5f6e0d36b$
13 //
14 
15 #include "libcef_dll/ctocpp/print_dialog_callback_ctocpp.h"
16 #include "libcef_dll/ctocpp/print_settings_ctocpp.h"
17 #include "libcef_dll/shutdown_checker.h"
18 
19 // VIRTUAL METHODS - Body may be edited by hand.
20 
21 NO_SANITIZE("cfi-icall")
Continue(CefRefPtr<CefPrintSettings> settings)22 void CefPrintDialogCallbackCToCpp::Continue(
23     CefRefPtr<CefPrintSettings> settings) {
24   shutdown_checker::AssertNotShutdown();
25 
26   cef_print_dialog_callback_t* _struct = GetStruct();
27   if (CEF_MEMBER_MISSING(_struct, cont))
28     return;
29 
30   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
31 
32   // Verify param: settings; type: refptr_same
33   DCHECK(settings.get());
34   if (!settings.get())
35     return;
36 
37   // Execute
38   _struct->cont(_struct, CefPrintSettingsCToCpp::Unwrap(settings));
39 }
40 
Cancel()41 NO_SANITIZE("cfi-icall") void CefPrintDialogCallbackCToCpp::Cancel() {
42   shutdown_checker::AssertNotShutdown();
43 
44   cef_print_dialog_callback_t* _struct = GetStruct();
45   if (CEF_MEMBER_MISSING(_struct, cancel))
46     return;
47 
48   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
49 
50   // Execute
51   _struct->cancel(_struct);
52 }
53 
54 // CONSTRUCTOR - Do not edit by hand.
55 
CefPrintDialogCallbackCToCpp()56 CefPrintDialogCallbackCToCpp::CefPrintDialogCallbackCToCpp() {}
57 
58 // DESTRUCTOR - Do not edit by hand.
59 
~CefPrintDialogCallbackCToCpp()60 CefPrintDialogCallbackCToCpp::~CefPrintDialogCallbackCToCpp() {
61   shutdown_checker::AssertNotShutdown();
62 }
63 
64 template <>
65 cef_print_dialog_callback_t* CefCToCppRefCounted<
66     CefPrintDialogCallbackCToCpp,
67     CefPrintDialogCallback,
UnwrapDerived(CefWrapperType type,CefPrintDialogCallback * c)68     cef_print_dialog_callback_t>::UnwrapDerived(CefWrapperType type,
69                                                 CefPrintDialogCallback* c) {
70   NOTREACHED() << "Unexpected class type: " << type;
71   return nullptr;
72 }
73 
74 template <>
75 CefWrapperType CefCToCppRefCounted<CefPrintDialogCallbackCToCpp,
76                                    CefPrintDialogCallback,
77                                    cef_print_dialog_callback_t>::kWrapperType =
78     WT_PRINT_DIALOG_CALLBACK;
79