• 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=8fa9cd400d5a9ecce87183cdbbee8673845b2228$
13 //
14 
15 #include "libcef_dll/ctocpp/jsdialog_callback_ctocpp.h"
16 #include "libcef_dll/shutdown_checker.h"
17 
18 // VIRTUAL METHODS - Body may be edited by hand.
19 
20 NO_SANITIZE("cfi-icall")
Continue(bool success,const CefString & user_input)21 void CefJSDialogCallbackCToCpp::Continue(bool success,
22                                          const CefString& user_input) {
23   shutdown_checker::AssertNotShutdown();
24 
25   cef_jsdialog_callback_t* _struct = GetStruct();
26   if (CEF_MEMBER_MISSING(_struct, cont))
27     return;
28 
29   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
30 
31   // Unverified params: user_input
32 
33   // Execute
34   _struct->cont(_struct, success, user_input.GetStruct());
35 }
36 
37 // CONSTRUCTOR - Do not edit by hand.
38 
CefJSDialogCallbackCToCpp()39 CefJSDialogCallbackCToCpp::CefJSDialogCallbackCToCpp() {}
40 
41 // DESTRUCTOR - Do not edit by hand.
42 
~CefJSDialogCallbackCToCpp()43 CefJSDialogCallbackCToCpp::~CefJSDialogCallbackCToCpp() {
44   shutdown_checker::AssertNotShutdown();
45 }
46 
47 template <>
48 cef_jsdialog_callback_t* CefCToCppRefCounted<
49     CefJSDialogCallbackCToCpp,
50     CefJSDialogCallback,
UnwrapDerived(CefWrapperType type,CefJSDialogCallback * c)51     cef_jsdialog_callback_t>::UnwrapDerived(CefWrapperType type,
52                                             CefJSDialogCallback* c) {
53   NOTREACHED() << "Unexpected class type: " << type;
54   return nullptr;
55 }
56 
57 template <>
58 CefWrapperType CefCToCppRefCounted<CefJSDialogCallbackCToCpp,
59                                    CefJSDialogCallback,
60                                    cef_jsdialog_callback_t>::kWrapperType =
61     WT_JSDIALOG_CALLBACK;
62