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