]> git.sesse.net Git - casparcg/blob - dependencies64/cef/windows/libcef_dll/ctocpp/request_callback_ctocpp.cc
f287fd61ab5fbec1d584ce5f1630093442756221
[casparcg] / dependencies64 / cef / windows / libcef_dll / ctocpp / request_callback_ctocpp.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/ctocpp/request_callback_ctocpp.h"
14
15
16 // VIRTUAL METHODS - Body may be edited by hand.
17
18 void CefRequestCallbackCToCpp::Continue(bool allow) {
19   cef_request_callback_t* _struct = GetStruct();
20   if (CEF_MEMBER_MISSING(_struct, cont))
21     return;
22
23   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
24
25   // Execute
26   _struct->cont(_struct,
27       allow);
28 }
29
30 void CefRequestCallbackCToCpp::Cancel() {
31   cef_request_callback_t* _struct = GetStruct();
32   if (CEF_MEMBER_MISSING(_struct, cancel))
33     return;
34
35   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
36
37   // Execute
38   _struct->cancel(_struct);
39 }
40
41
42 // CONSTRUCTOR - Do not edit by hand.
43
44 CefRequestCallbackCToCpp::CefRequestCallbackCToCpp() {
45 }
46
47 template<> cef_request_callback_t* CefCToCppRefCounted<CefRequestCallbackCToCpp,
48     CefRequestCallback, cef_request_callback_t>::UnwrapDerived(
49     CefWrapperType type, CefRequestCallback* c) {
50   NOTREACHED() << "Unexpected class type: " << type;
51   return NULL;
52 }
53
54 #if DCHECK_IS_ON()
55 template<> base::AtomicRefCount CefCToCppRefCounted<CefRequestCallbackCToCpp,
56     CefRequestCallback, cef_request_callback_t>::DebugObjCt = 0;
57 #endif
58
59 template<> CefWrapperType CefCToCppRefCounted<CefRequestCallbackCToCpp,
60     CefRequestCallback, cef_request_callback_t>::kWrapperType =
61     WT_REQUEST_CALLBACK;