2018-01-03 21:46:26 +01:00
|
|
|
// Copyright (c) 2018 The Chromium Embedded Framework Authors. All rights
|
2014-11-24 20:23:26 +01:00
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
|
|
|
//
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// This file was generated by the CEF translator tool. If making changes by
|
|
|
|
// hand only do so within the body of existing method and function
|
|
|
|
// implementations. See the translator.README.txt file in the tools directory
|
|
|
|
// for more information.
|
|
|
|
//
|
2018-01-03 21:46:26 +01:00
|
|
|
// $hash=ae28c6ce7f521cf7c3d871a25e947f56738e2789$
|
2017-05-17 11:29:28 +02:00
|
|
|
//
|
2014-11-24 20:23:26 +01:00
|
|
|
|
|
|
|
#include "libcef_dll/cpptoc/navigation_entry_cpptoc.h"
|
2016-09-02 12:01:33 +02:00
|
|
|
#include "libcef_dll/cpptoc/sslstatus_cpptoc.h"
|
2014-11-24 20:23:26 +01:00
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
namespace {
|
|
|
|
|
2014-11-24 20:23:26 +01:00
|
|
|
// MEMBER FUNCTIONS - Body may be edited by hand.
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
int CEF_CALLBACK
|
|
|
|
navigation_entry_is_valid(struct _cef_navigation_entry_t* self) {
|
2014-11-24 20:23:26 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefNavigationEntryCppToC::Get(self)->IsValid();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t CEF_CALLBACK
|
|
|
|
navigation_entry_get_url(struct _cef_navigation_entry_t* self) {
|
2014-11-24 20:23:26 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefString _retval = CefNavigationEntryCppToC::Get(self)->GetURL();
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t CEF_CALLBACK
|
|
|
|
navigation_entry_get_display_url(struct _cef_navigation_entry_t* self) {
|
2014-11-24 20:23:26 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefString _retval = CefNavigationEntryCppToC::Get(self)->GetDisplayURL();
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t CEF_CALLBACK
|
|
|
|
navigation_entry_get_original_url(struct _cef_navigation_entry_t* self) {
|
2014-11-24 20:23:26 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefString _retval = CefNavigationEntryCppToC::Get(self)->GetOriginalURL();
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t CEF_CALLBACK
|
|
|
|
navigation_entry_get_title(struct _cef_navigation_entry_t* self) {
|
2014-11-24 20:23:26 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefString _retval = CefNavigationEntryCppToC::Get(self)->GetTitle();
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_transition_type_t CEF_CALLBACK
|
|
|
|
navigation_entry_get_transition_type(struct _cef_navigation_entry_t* self) {
|
2014-11-24 20:23:26 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return TT_EXPLICIT;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_transition_type_t _retval =
|
|
|
|
CefNavigationEntryCppToC::Get(self)->GetTransitionType();
|
2014-11-24 20:23:26 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
int CEF_CALLBACK
|
|
|
|
navigation_entry_has_post_data(struct _cef_navigation_entry_t* self) {
|
2014-11-24 20:23:26 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefNavigationEntryCppToC::Get(self)->HasPostData();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_time_t CEF_CALLBACK
|
|
|
|
navigation_entry_get_completion_time(struct _cef_navigation_entry_t* self) {
|
2014-11-24 20:23:26 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return CefTime();
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_time_t _retval = CefNavigationEntryCppToC::Get(self)->GetCompletionTime();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
int CEF_CALLBACK
|
|
|
|
navigation_entry_get_http_status_code(struct _cef_navigation_entry_t* self) {
|
2014-11-24 20:23:26 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = CefNavigationEntryCppToC::Get(self)->GetHttpStatusCode();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_sslstatus_t* CEF_CALLBACK
|
|
|
|
navigation_entry_get_sslstatus(struct _cef_navigation_entry_t* self) {
|
2016-09-02 12:01:33 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
|
|
|
if (!self)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefSSLStatus> _retval =
|
|
|
|
CefNavigationEntryCppToC::Get(self)->GetSSLStatus();
|
2016-09-02 12:01:33 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefSSLStatusCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
} // namespace
|
|
|
|
|
2014-11-24 20:23:26 +01:00
|
|
|
// CONSTRUCTOR - Do not edit by hand.
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
CefNavigationEntryCppToC::CefNavigationEntryCppToC() {
|
|
|
|
GetStruct()->is_valid = navigation_entry_is_valid;
|
|
|
|
GetStruct()->get_url = navigation_entry_get_url;
|
|
|
|
GetStruct()->get_display_url = navigation_entry_get_display_url;
|
|
|
|
GetStruct()->get_original_url = navigation_entry_get_original_url;
|
|
|
|
GetStruct()->get_title = navigation_entry_get_title;
|
|
|
|
GetStruct()->get_transition_type = navigation_entry_get_transition_type;
|
|
|
|
GetStruct()->has_post_data = navigation_entry_has_post_data;
|
|
|
|
GetStruct()->get_completion_time = navigation_entry_get_completion_time;
|
|
|
|
GetStruct()->get_http_status_code = navigation_entry_get_http_status_code;
|
2016-09-02 12:01:33 +02:00
|
|
|
GetStruct()->get_sslstatus = navigation_entry_get_sslstatus;
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefRefPtr<CefNavigationEntry> CefCppToCRefCounted<
|
|
|
|
CefNavigationEntryCppToC,
|
|
|
|
CefNavigationEntry,
|
|
|
|
cef_navigation_entry_t>::UnwrapDerived(CefWrapperType type,
|
|
|
|
cef_navigation_entry_t* s) {
|
2015-04-26 20:40:01 +02:00
|
|
|
NOTREACHED() << "Unexpected class type: " << type;
|
|
|
|
return NULL;
|
2014-11-24 20:23:26 +01:00
|
|
|
}
|
|
|
|
|
2016-09-01 13:24:30 +02:00
|
|
|
#if DCHECK_IS_ON()
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
base::AtomicRefCount CefCppToCRefCounted<CefNavigationEntryCppToC,
|
|
|
|
CefNavigationEntry,
|
2017-07-27 01:19:27 +02:00
|
|
|
cef_navigation_entry_t>::DebugObjCt
|
|
|
|
ATOMIC_DECLARATION;
|
2014-11-24 20:23:26 +01:00
|
|
|
#endif
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefWrapperType CefCppToCRefCounted<CefNavigationEntryCppToC,
|
|
|
|
CefNavigationEntry,
|
|
|
|
cef_navigation_entry_t>::kWrapperType =
|
2015-04-26 20:40:01 +02:00
|
|
|
WT_NAVIGATION_ENTRY;
|