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=aa6efd61a1ebf39506a9cb655dd1c07168dc3d33$ 13 // 14 15 #include "libcef_dll/ctocpp/media_source_ctocpp.h" 16 #include "libcef_dll/shutdown_checker.h" 17 18 // VIRTUAL METHODS - Body may be edited by hand. 19 GetId()20NO_SANITIZE("cfi-icall") CefString CefMediaSourceCToCpp::GetId() { 21 shutdown_checker::AssertNotShutdown(); 22 23 cef_media_source_t* _struct = GetStruct(); 24 if (CEF_MEMBER_MISSING(_struct, get_id)) 25 return CefString(); 26 27 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 28 29 // Execute 30 cef_string_userfree_t _retval = _struct->get_id(_struct); 31 32 // Return type: string 33 CefString _retvalStr; 34 _retvalStr.AttachToUserFree(_retval); 35 return _retvalStr; 36 } 37 IsCastSource()38NO_SANITIZE("cfi-icall") bool CefMediaSourceCToCpp::IsCastSource() { 39 shutdown_checker::AssertNotShutdown(); 40 41 cef_media_source_t* _struct = GetStruct(); 42 if (CEF_MEMBER_MISSING(_struct, is_cast_source)) 43 return false; 44 45 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 46 47 // Execute 48 int _retval = _struct->is_cast_source(_struct); 49 50 // Return type: bool 51 return _retval ? true : false; 52 } 53 IsDialSource()54NO_SANITIZE("cfi-icall") bool CefMediaSourceCToCpp::IsDialSource() { 55 shutdown_checker::AssertNotShutdown(); 56 57 cef_media_source_t* _struct = GetStruct(); 58 if (CEF_MEMBER_MISSING(_struct, is_dial_source)) 59 return false; 60 61 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 62 63 // Execute 64 int _retval = _struct->is_dial_source(_struct); 65 66 // Return type: bool 67 return _retval ? true : false; 68 } 69 70 // CONSTRUCTOR - Do not edit by hand. 71 CefMediaSourceCToCpp()72CefMediaSourceCToCpp::CefMediaSourceCToCpp() {} 73 74 // DESTRUCTOR - Do not edit by hand. 75 ~CefMediaSourceCToCpp()76CefMediaSourceCToCpp::~CefMediaSourceCToCpp() { 77 shutdown_checker::AssertNotShutdown(); 78 } 79 80 template <> 81 cef_media_source_t* 82 CefCToCppRefCounted<CefMediaSourceCToCpp, CefMediaSource, cef_media_source_t>:: UnwrapDerived(CefWrapperType type,CefMediaSource * c)83 UnwrapDerived(CefWrapperType type, CefMediaSource* c) { 84 NOTREACHED() << "Unexpected class type: " << type; 85 return nullptr; 86 } 87 88 template <> 89 CefWrapperType CefCToCppRefCounted<CefMediaSourceCToCpp, 90 CefMediaSource, 91 cef_media_source_t>::kWrapperType = 92 WT_MEDIA_SOURCE; 93