]> git.sesse.net Git - casparcg/blob - dependencies64/cef/windows/libcef_dll/cpptoc/web_plugin_info_visitor_cpptoc.cc
020f18073e40f635057bcce019eb5bb5676d7aeb
[casparcg] / dependencies64 / cef / windows / libcef_dll / cpptoc / web_plugin_info_visitor_cpptoc.cc
1 // Copyright (c) 2017 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
13 #include "libcef_dll/cpptoc/web_plugin_info_visitor_cpptoc.h"
14 #include "libcef_dll/ctocpp/web_plugin_info_ctocpp.h"
15
16
17 namespace {
18
19 // MEMBER FUNCTIONS - Body may be edited by hand.
20
21 int CEF_CALLBACK web_plugin_info_visitor_visit(
22     struct _cef_web_plugin_info_visitor_t* self, cef_web_plugin_info_t* info,
23     int count, int total) {
24   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
25
26   DCHECK(self);
27   if (!self)
28     return 0;
29   // Verify param: info; type: refptr_diff
30   DCHECK(info);
31   if (!info)
32     return 0;
33
34   // Execute
35   bool _retval = CefWebPluginInfoVisitorCppToC::Get(self)->Visit(
36       CefWebPluginInfoCToCpp::Wrap(info),
37       count,
38       total);
39
40   // Return type: bool
41   return _retval;
42 }
43
44 }  // namespace
45
46
47 // CONSTRUCTOR - Do not edit by hand.
48
49 CefWebPluginInfoVisitorCppToC::CefWebPluginInfoVisitorCppToC() {
50   GetStruct()->visit = web_plugin_info_visitor_visit;
51 }
52
53 template<> CefRefPtr<CefWebPluginInfoVisitor> CefCppToCRefCounted<CefWebPluginInfoVisitorCppToC,
54     CefWebPluginInfoVisitor, cef_web_plugin_info_visitor_t>::UnwrapDerived(
55     CefWrapperType type, cef_web_plugin_info_visitor_t* s) {
56   NOTREACHED() << "Unexpected class type: " << type;
57   return NULL;
58 }
59
60 #if DCHECK_IS_ON()
61 template<> base::AtomicRefCount CefCppToCRefCounted<CefWebPluginInfoVisitorCppToC,
62     CefWebPluginInfoVisitor, cef_web_plugin_info_visitor_t>::DebugObjCt = 0;
63 #endif
64
65 template<> CefWrapperType CefCppToCRefCounted<CefWebPluginInfoVisitorCppToC,
66     CefWebPluginInfoVisitor, cef_web_plugin_info_visitor_t>::kWrapperType =
67     WT_WEB_PLUGIN_INFO_VISITOR;