• 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=42ed9f3aa6aef7580eabb0a94981f1b7b5760d16$
13 //
14 
15 #include "libcef_dll/cpptoc/web_plugin_unstable_callback_cpptoc.h"
16 #include "libcef_dll/shutdown_checker.h"
17 
18 namespace {
19 
20 // MEMBER FUNCTIONS - Body may be edited by hand.
21 
web_plugin_unstable_callback_is_unstable(struct _cef_web_plugin_unstable_callback_t * self,const cef_string_t * path,int unstable)22 void CEF_CALLBACK web_plugin_unstable_callback_is_unstable(
23     struct _cef_web_plugin_unstable_callback_t* self,
24     const cef_string_t* path,
25     int unstable) {
26   shutdown_checker::AssertNotShutdown();
27 
28   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
29 
30   DCHECK(self);
31   if (!self)
32     return;
33   // Verify param: path; type: string_byref_const
34   DCHECK(path);
35   if (!path)
36     return;
37 
38   // Execute
39   CefWebPluginUnstableCallbackCppToC::Get(self)->IsUnstable(
40       CefString(path), unstable ? true : false);
41 }
42 
43 }  // namespace
44 
45 // CONSTRUCTOR - Do not edit by hand.
46 
CefWebPluginUnstableCallbackCppToC()47 CefWebPluginUnstableCallbackCppToC::CefWebPluginUnstableCallbackCppToC() {
48   GetStruct()->is_unstable = web_plugin_unstable_callback_is_unstable;
49 }
50 
51 // DESTRUCTOR - Do not edit by hand.
52 
~CefWebPluginUnstableCallbackCppToC()53 CefWebPluginUnstableCallbackCppToC::~CefWebPluginUnstableCallbackCppToC() {
54   shutdown_checker::AssertNotShutdown();
55 }
56 
57 template <>
58 CefRefPtr<CefWebPluginUnstableCallback>
59 CefCppToCRefCounted<CefWebPluginUnstableCallbackCppToC,
60                     CefWebPluginUnstableCallback,
61                     cef_web_plugin_unstable_callback_t>::
UnwrapDerived(CefWrapperType type,cef_web_plugin_unstable_callback_t * s)62     UnwrapDerived(CefWrapperType type, cef_web_plugin_unstable_callback_t* s) {
63   NOTREACHED() << "Unexpected class type: " << type;
64   return nullptr;
65 }
66 
67 template <>
68 CefWrapperType
69     CefCppToCRefCounted<CefWebPluginUnstableCallbackCppToC,
70                         CefWebPluginUnstableCallback,
71                         cef_web_plugin_unstable_callback_t>::kWrapperType =
72         WT_WEB_PLUGIN_UNSTABLE_CALLBACK;
73