• 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=159abfe9b788acf428465451ee232ee1675ea1a5$
13 //
14 
15 #include "libcef_dll/cpptoc/media_sink_device_info_callback_cpptoc.h"
16 #include "libcef_dll/shutdown_checker.h"
17 
18 namespace {
19 
20 // MEMBER FUNCTIONS - Body may be edited by hand.
21 
media_sink_device_info_callback_on_media_sink_device_info(struct _cef_media_sink_device_info_callback_t * self,const struct _cef_media_sink_device_info_t * device_info)22 void CEF_CALLBACK media_sink_device_info_callback_on_media_sink_device_info(
23     struct _cef_media_sink_device_info_callback_t* self,
24     const struct _cef_media_sink_device_info_t* device_info) {
25   shutdown_checker::AssertNotShutdown();
26 
27   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
28 
29   DCHECK(self);
30   if (!self)
31     return;
32   // Verify param: device_info; type: struct_byref_const
33   DCHECK(device_info);
34   if (!device_info)
35     return;
36 
37   // Translate param: device_info; type: struct_byref_const
38   CefMediaSinkDeviceInfo device_infoObj;
39   if (device_info)
40     device_infoObj.Set(*device_info, false);
41 
42   // Execute
43   CefMediaSinkDeviceInfoCallbackCppToC::Get(self)->OnMediaSinkDeviceInfo(
44       device_infoObj);
45 }
46 
47 }  // namespace
48 
49 // CONSTRUCTOR - Do not edit by hand.
50 
CefMediaSinkDeviceInfoCallbackCppToC()51 CefMediaSinkDeviceInfoCallbackCppToC::CefMediaSinkDeviceInfoCallbackCppToC() {
52   GetStruct()->on_media_sink_device_info =
53       media_sink_device_info_callback_on_media_sink_device_info;
54 }
55 
56 // DESTRUCTOR - Do not edit by hand.
57 
~CefMediaSinkDeviceInfoCallbackCppToC()58 CefMediaSinkDeviceInfoCallbackCppToC::~CefMediaSinkDeviceInfoCallbackCppToC() {
59   shutdown_checker::AssertNotShutdown();
60 }
61 
62 template <>
63 CefRefPtr<CefMediaSinkDeviceInfoCallback>
64 CefCppToCRefCounted<CefMediaSinkDeviceInfoCallbackCppToC,
65                     CefMediaSinkDeviceInfoCallback,
66                     cef_media_sink_device_info_callback_t>::
UnwrapDerived(CefWrapperType type,cef_media_sink_device_info_callback_t * s)67     UnwrapDerived(CefWrapperType type,
68                   cef_media_sink_device_info_callback_t* s) {
69   NOTREACHED() << "Unexpected class type: " << type;
70   return nullptr;
71 }
72 
73 template <>
74 CefWrapperType
75     CefCppToCRefCounted<CefMediaSinkDeviceInfoCallbackCppToC,
76                         CefMediaSinkDeviceInfoCallback,
77                         cef_media_sink_device_info_callback_t>::kWrapperType =
78         WT_MEDIA_SINK_DEVICE_INFO_CALLBACK;
79