• 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=3becd112f5c17b36328e77fcdcd296cdf73291a3$
13 //
14 
15 #include "libcef_dll/cpptoc/print_job_callback_cpptoc.h"
16 #include "libcef_dll/shutdown_checker.h"
17 
18 namespace {
19 
20 // MEMBER FUNCTIONS - Body may be edited by hand.
21 
22 void CEF_CALLBACK
print_job_callback_cont(struct _cef_print_job_callback_t * self)23 print_job_callback_cont(struct _cef_print_job_callback_t* self) {
24   shutdown_checker::AssertNotShutdown();
25 
26   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
27 
28   DCHECK(self);
29   if (!self)
30     return;
31 
32   // Execute
33   CefPrintJobCallbackCppToC::Get(self)->Continue();
34 }
35 
36 }  // namespace
37 
38 // CONSTRUCTOR - Do not edit by hand.
39 
CefPrintJobCallbackCppToC()40 CefPrintJobCallbackCppToC::CefPrintJobCallbackCppToC() {
41   GetStruct()->cont = print_job_callback_cont;
42 }
43 
44 // DESTRUCTOR - Do not edit by hand.
45 
~CefPrintJobCallbackCppToC()46 CefPrintJobCallbackCppToC::~CefPrintJobCallbackCppToC() {
47   shutdown_checker::AssertNotShutdown();
48 }
49 
50 template <>
51 CefRefPtr<CefPrintJobCallback> CefCppToCRefCounted<
52     CefPrintJobCallbackCppToC,
53     CefPrintJobCallback,
UnwrapDerived(CefWrapperType type,cef_print_job_callback_t * s)54     cef_print_job_callback_t>::UnwrapDerived(CefWrapperType type,
55                                              cef_print_job_callback_t* s) {
56   NOTREACHED() << "Unexpected class type: " << type;
57   return nullptr;
58 }
59 
60 template <>
61 CefWrapperType CefCppToCRefCounted<CefPrintJobCallbackCppToC,
62                                    CefPrintJobCallback,
63                                    cef_print_job_callback_t>::kWrapperType =
64     WT_PRINT_JOB_CALLBACK;
65