• 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=47bacb389bbb262f0be39b49c5d6251b8bf1c507$
13 //
14 
15 #include "libcef_dll/cpptoc/task_cpptoc.h"
16 
17 namespace {
18 
19 // MEMBER FUNCTIONS - Body may be edited by hand.
20 
task_execute(struct _cef_task_t * self)21 void CEF_CALLBACK task_execute(struct _cef_task_t* self) {
22   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
23 
24   DCHECK(self);
25   if (!self)
26     return;
27 
28   // Execute
29   CefTaskCppToC::Get(self)->Execute();
30 }
31 
32 }  // namespace
33 
34 // CONSTRUCTOR - Do not edit by hand.
35 
CefTaskCppToC()36 CefTaskCppToC::CefTaskCppToC() {
37   GetStruct()->execute = task_execute;
38 }
39 
40 // DESTRUCTOR - Do not edit by hand.
41 
~CefTaskCppToC()42 CefTaskCppToC::~CefTaskCppToC() {}
43 
44 template <>
45 CefRefPtr<CefTask>
UnwrapDerived(CefWrapperType type,cef_task_t * s)46 CefCppToCRefCounted<CefTaskCppToC, CefTask, cef_task_t>::UnwrapDerived(
47     CefWrapperType type,
48     cef_task_t* s) {
49   NOTREACHED() << "Unexpected class type: " << type;
50   return nullptr;
51 }
52 
53 template <>
54 CefWrapperType
55     CefCppToCRefCounted<CefTaskCppToC, CefTask, cef_task_t>::kWrapperType =
56         WT_TASK;
57