1 // Copyright (c) 2021 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=63a8d238ef8d6d46bc4950db235b5960d2eb42a2$
13 //
14
15 #include "libcef_dll/ctocpp/run_context_menu_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(int command_id,EventFlags event_flags)21 void CefRunContextMenuCallbackCToCpp::Continue(int command_id,
22 EventFlags event_flags) {
23 shutdown_checker::AssertNotShutdown();
24
25 cef_run_context_menu_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 // Execute
32 _struct->cont(_struct, command_id, event_flags);
33 }
34
Cancel()35 NO_SANITIZE("cfi-icall") void CefRunContextMenuCallbackCToCpp::Cancel() {
36 shutdown_checker::AssertNotShutdown();
37
38 cef_run_context_menu_callback_t* _struct = GetStruct();
39 if (CEF_MEMBER_MISSING(_struct, cancel))
40 return;
41
42 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
43
44 // Execute
45 _struct->cancel(_struct);
46 }
47
48 // CONSTRUCTOR - Do not edit by hand.
49
CefRunContextMenuCallbackCToCpp()50 CefRunContextMenuCallbackCToCpp::CefRunContextMenuCallbackCToCpp() {}
51
52 // DESTRUCTOR - Do not edit by hand.
53
~CefRunContextMenuCallbackCToCpp()54 CefRunContextMenuCallbackCToCpp::~CefRunContextMenuCallbackCToCpp() {
55 shutdown_checker::AssertNotShutdown();
56 }
57
58 template <>
59 cef_run_context_menu_callback_t* CefCToCppRefCounted<
60 CefRunContextMenuCallbackCToCpp,
61 CefRunContextMenuCallback,
UnwrapDerived(CefWrapperType type,CefRunContextMenuCallback * c)62 cef_run_context_menu_callback_t>::UnwrapDerived(CefWrapperType type,
63 CefRunContextMenuCallback*
64 c) {
65 NOTREACHED() << "Unexpected class type: " << type;
66 return nullptr;
67 }
68
69 template <>
70 CefWrapperType
71 CefCToCppRefCounted<CefRunContextMenuCallbackCToCpp,
72 CefRunContextMenuCallback,
73 cef_run_context_menu_callback_t>::kWrapperType =
74 WT_RUN_CONTEXT_MENU_CALLBACK;
75