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.
5 // ---------------------------------------------------------------------------
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.
13 #include "libcef_dll/cpptoc/completion_callback_cpptoc.h"
18 // MEMBER FUNCTIONS - Body may be edited by hand.
20 void CEF_CALLBACK completion_callback_on_complete(
21 struct _cef_completion_callback_t* self) {
22 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
29 CefCompletionCallbackCppToC::Get(self)->OnComplete();
35 // CONSTRUCTOR - Do not edit by hand.
37 CefCompletionCallbackCppToC::CefCompletionCallbackCppToC() {
38 GetStruct()->on_complete = completion_callback_on_complete;
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;
49 template<> base::AtomicRefCount CefCppToCRefCounted<CefCompletionCallbackCppToC,
50 CefCompletionCallback, cef_completion_callback_t>::DebugObjCt = 0;
53 template<> CefWrapperType CefCppToCRefCounted<CefCompletionCallbackCppToC,
54 CefCompletionCallback, cef_completion_callback_t>::kWrapperType =
55 WT_COMPLETION_CALLBACK;