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=9664002969db52fb75ab4f02ecd72aa7c4473115$ 13 // 14 15 #include "libcef_dll/ctocpp/media_sink_device_info_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") OnMediaSinkDeviceInfo(const CefMediaSinkDeviceInfo & device_info)21void CefMediaSinkDeviceInfoCallbackCToCpp::OnMediaSinkDeviceInfo( 22 const CefMediaSinkDeviceInfo& device_info) { 23 shutdown_checker::AssertNotShutdown(); 24 25 cef_media_sink_device_info_callback_t* _struct = GetStruct(); 26 if (CEF_MEMBER_MISSING(_struct, on_media_sink_device_info)) 27 return; 28 29 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 30 31 // Execute 32 _struct->on_media_sink_device_info(_struct, &device_info); 33 } 34 35 // CONSTRUCTOR - Do not edit by hand. 36 CefMediaSinkDeviceInfoCallbackCToCpp()37CefMediaSinkDeviceInfoCallbackCToCpp::CefMediaSinkDeviceInfoCallbackCToCpp() {} 38 39 // DESTRUCTOR - Do not edit by hand. 40 ~CefMediaSinkDeviceInfoCallbackCToCpp()41CefMediaSinkDeviceInfoCallbackCToCpp::~CefMediaSinkDeviceInfoCallbackCToCpp() { 42 shutdown_checker::AssertNotShutdown(); 43 } 44 45 template <> 46 cef_media_sink_device_info_callback_t* 47 CefCToCppRefCounted<CefMediaSinkDeviceInfoCallbackCToCpp, 48 CefMediaSinkDeviceInfoCallback, 49 cef_media_sink_device_info_callback_t>:: UnwrapDerived(CefWrapperType type,CefMediaSinkDeviceInfoCallback * c)50 UnwrapDerived(CefWrapperType type, CefMediaSinkDeviceInfoCallback* c) { 51 NOTREACHED() << "Unexpected class type: " << type; 52 return nullptr; 53 } 54 55 template <> 56 CefWrapperType 57 CefCToCppRefCounted<CefMediaSinkDeviceInfoCallbackCToCpp, 58 CefMediaSinkDeviceInfoCallback, 59 cef_media_sink_device_info_callback_t>::kWrapperType = 60 WT_MEDIA_SINK_DEVICE_INFO_CALLBACK; 61