2016-01-08 20:00:27 +01:00
|
|
|
// Copyright (c) 2016 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.
|
|
|
|
//
|
|
|
|
|
|
|
|
#include "libcef_dll/ctocpp/navigation_entry_ctocpp.h"
|
2016-09-02 12:01:33 +02:00
|
|
|
#include "libcef_dll/ctocpp/sslstatus_ctocpp.h"
|
2014-11-24 20:23:26 +01:00
|
|
|
|
|
|
|
|
|
|
|
// VIRTUAL METHODS - Body may be edited by hand.
|
|
|
|
|
|
|
|
bool CefNavigationEntryCToCpp::IsValid() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_navigation_entry_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_valid))
|
2014-11-24 20:23:26 +01:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->is_valid(_struct);
|
2014-11-24 20:23:26 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefString CefNavigationEntryCToCpp::GetURL() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_navigation_entry_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_url))
|
2014-11-24 20:23:26 +01:00
|
|
|
return CefString();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_string_userfree_t _retval = _struct->get_url(_struct);
|
2014-11-24 20:23:26 +01:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefString CefNavigationEntryCToCpp::GetDisplayURL() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_navigation_entry_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_display_url))
|
2014-11-24 20:23:26 +01:00
|
|
|
return CefString();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_string_userfree_t _retval = _struct->get_display_url(_struct);
|
2014-11-24 20:23:26 +01:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefString CefNavigationEntryCToCpp::GetOriginalURL() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_navigation_entry_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_original_url))
|
2014-11-24 20:23:26 +01:00
|
|
|
return CefString();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_string_userfree_t _retval = _struct->get_original_url(_struct);
|
2014-11-24 20:23:26 +01:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefString CefNavigationEntryCToCpp::GetTitle() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_navigation_entry_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_title))
|
2014-11-24 20:23:26 +01:00
|
|
|
return CefString();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_string_userfree_t _retval = _struct->get_title(_struct);
|
2014-11-24 20:23:26 +01:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefNavigationEntry::TransitionType CefNavigationEntryCToCpp::GetTransitionType(
|
|
|
|
) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_navigation_entry_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_transition_type))
|
2014-11-24 20:23:26 +01:00
|
|
|
return TT_EXPLICIT;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_transition_type_t _retval = _struct->get_transition_type(_struct);
|
2014-11-24 20:23:26 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefNavigationEntryCToCpp::HasPostData() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_navigation_entry_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, has_post_data))
|
2014-11-24 20:23:26 +01:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->has_post_data(_struct);
|
2014-11-24 20:23:26 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefTime CefNavigationEntryCToCpp::GetCompletionTime() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_navigation_entry_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_completion_time))
|
2014-11-24 20:23:26 +01:00
|
|
|
return CefTime();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_time_t _retval = _struct->get_completion_time(_struct);
|
2014-11-24 20:23:26 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CefNavigationEntryCToCpp::GetHttpStatusCode() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_navigation_entry_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_http_status_code))
|
2014-11-24 20:23:26 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->get_http_status_code(_struct);
|
2014-11-24 20:23:26 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2016-09-02 12:01:33 +02:00
|
|
|
CefRefPtr<CefSSLStatus> CefNavigationEntryCToCpp::GetSSLStatus() {
|
|
|
|
cef_navigation_entry_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_sslstatus))
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_sslstatus_t* _retval = _struct->get_sslstatus(_struct);
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefSSLStatusCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2014-11-24 20:23:26 +01:00
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
// CONSTRUCTOR - Do not edit by hand.
|
|
|
|
|
|
|
|
CefNavigationEntryCToCpp::CefNavigationEntryCToCpp() {
|
|
|
|
}
|
|
|
|
|
|
|
|
template<> cef_navigation_entry_t* CefCToCpp<CefNavigationEntryCToCpp,
|
|
|
|
CefNavigationEntry, cef_navigation_entry_t>::UnwrapDerived(
|
|
|
|
CefWrapperType type, CefNavigationEntry* c) {
|
|
|
|
NOTREACHED() << "Unexpected class type: " << type;
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2016-09-01 13:24:30 +02:00
|
|
|
#if DCHECK_IS_ON()
|
2014-11-24 20:23:26 +01:00
|
|
|
template<> base::AtomicRefCount CefCToCpp<CefNavigationEntryCToCpp,
|
|
|
|
CefNavigationEntry, cef_navigation_entry_t>::DebugObjCt = 0;
|
|
|
|
#endif
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
template<> CefWrapperType CefCToCpp<CefNavigationEntryCToCpp,
|
|
|
|
CefNavigationEntry, cef_navigation_entry_t>::kWrapperType =
|
|
|
|
WT_NAVIGATION_ENTRY;
|