]> git.sesse.net Git - casparcg/blob - dependencies64/cef/windows/libcef_dll/cpptoc/completion_callback_cpptoc.cc
1c1802c704d954d96b43cbcf2a30e5dbe8abcf7a
[casparcg] / dependencies64 / cef / windows / libcef_dll / cpptoc / completion_callback_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/completion_callback_cpptoc.h"
14
15
16 namespace {
17
18 // MEMBER FUNCTIONS - Body may be edited by hand.
19
20 void CEF_CALLBACK completion_callback_on_complete(
21     struct _cef_completion_callback_t* self) {
22   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
23
24   DCHECK(self);
25   if (!self)
26     return;
27
28   // Execute
29   CefCompletionCallbackCppToC::Get(self)->OnComplete();
30 }
31
32 }  // namespace
33
34
35 // CONSTRUCTOR - Do not edit by hand.
36
37 CefCompletionCallbackCppToC::CefCompletionCallbackCppToC() {
38   GetStruct()->on_complete = completion_callback_on_complete;
39 }
40
41 template<> CefRefPtr<CefCompletionCallback> CefCppToCRefCounted<CefCompletionCallbackCppToC,
42     CefCompletionCallback, cef_completion_callback_t>::UnwrapDerived(
43     CefWrapperType type, cef_completion_callback_t* s) {
44   NOTREACHED() << "Unexpected class type: " << type;
45   return NULL;
46 }
47
48 #if DCHECK_IS_ON()
49 template<> base::AtomicRefCount CefCppToCRefCounted<CefCompletionCallbackCppToC,
50     CefCompletionCallback, cef_completion_callback_t>::DebugObjCt = 0;
51 #endif
52
53 template<> CefWrapperType CefCppToCRefCounted<CefCompletionCallbackCppToC,
54     CefCompletionCallback, cef_completion_callback_t>::kWrapperType =
55     WT_COMPLETION_CALLBACK;