• 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=ced6517a7c7149502b418c5fb06386ff30777630$
13 //
14 
15 #include "libcef_dll/ctocpp/accessibility_handler_ctocpp.h"
16 #include "libcef_dll/cpptoc/value_cpptoc.h"
17 #include "libcef_dll/shutdown_checker.h"
18 
19 // VIRTUAL METHODS - Body may be edited by hand.
20 
21 NO_SANITIZE("cfi-icall")
OnAccessibilityTreeChange(CefRefPtr<CefValue> value)22 void CefAccessibilityHandlerCToCpp::OnAccessibilityTreeChange(
23     CefRefPtr<CefValue> value) {
24   shutdown_checker::AssertNotShutdown();
25 
26   cef_accessibility_handler_t* _struct = GetStruct();
27   if (CEF_MEMBER_MISSING(_struct, on_accessibility_tree_change))
28     return;
29 
30   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
31 
32   // Verify param: value; type: refptr_diff
33   DCHECK(value.get());
34   if (!value.get())
35     return;
36 
37   // Execute
38   _struct->on_accessibility_tree_change(_struct, CefValueCppToC::Wrap(value));
39 }
40 
41 NO_SANITIZE("cfi-icall")
OnAccessibilityLocationChange(CefRefPtr<CefValue> value)42 void CefAccessibilityHandlerCToCpp::OnAccessibilityLocationChange(
43     CefRefPtr<CefValue> value) {
44   shutdown_checker::AssertNotShutdown();
45 
46   cef_accessibility_handler_t* _struct = GetStruct();
47   if (CEF_MEMBER_MISSING(_struct, on_accessibility_location_change))
48     return;
49 
50   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
51 
52   // Verify param: value; type: refptr_diff
53   DCHECK(value.get());
54   if (!value.get())
55     return;
56 
57   // Execute
58   _struct->on_accessibility_location_change(_struct,
59                                             CefValueCppToC::Wrap(value));
60 }
61 
62 // CONSTRUCTOR - Do not edit by hand.
63 
CefAccessibilityHandlerCToCpp()64 CefAccessibilityHandlerCToCpp::CefAccessibilityHandlerCToCpp() {}
65 
66 // DESTRUCTOR - Do not edit by hand.
67 
~CefAccessibilityHandlerCToCpp()68 CefAccessibilityHandlerCToCpp::~CefAccessibilityHandlerCToCpp() {
69   shutdown_checker::AssertNotShutdown();
70 }
71 
72 template <>
73 cef_accessibility_handler_t* CefCToCppRefCounted<
74     CefAccessibilityHandlerCToCpp,
75     CefAccessibilityHandler,
UnwrapDerived(CefWrapperType type,CefAccessibilityHandler * c)76     cef_accessibility_handler_t>::UnwrapDerived(CefWrapperType type,
77                                                 CefAccessibilityHandler* c) {
78   NOTREACHED() << "Unexpected class type: " << type;
79   return nullptr;
80 }
81 
82 template <>
83 CefWrapperType CefCToCppRefCounted<CefAccessibilityHandlerCToCpp,
84                                    CefAccessibilityHandler,
85                                    cef_accessibility_handler_t>::kWrapperType =
86     WT_ACCESSIBILITY_HANDLER;
87