mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2024-12-11 17:15:57 +01:00
7fe86e0b26
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1961 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
192 lines
5.2 KiB
C++
192 lines
5.2 KiB
C++
// Copyright (c) 2015 The Chromium Embedded Framework Authors. All rights
|
|
// 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/cpptoc/navigation_entry_cpptoc.h"
|
|
|
|
|
|
// MEMBER FUNCTIONS - Body may be edited by hand.
|
|
|
|
int CEF_CALLBACK navigation_entry_is_valid(
|
|
struct _cef_navigation_entry_t* self) {
|
|
// 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;
|
|
}
|
|
|
|
cef_string_userfree_t CEF_CALLBACK navigation_entry_get_url(
|
|
struct _cef_navigation_entry_t* self) {
|
|
// 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();
|
|
}
|
|
|
|
cef_string_userfree_t CEF_CALLBACK navigation_entry_get_display_url(
|
|
struct _cef_navigation_entry_t* self) {
|
|
// 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();
|
|
}
|
|
|
|
cef_string_userfree_t CEF_CALLBACK navigation_entry_get_original_url(
|
|
struct _cef_navigation_entry_t* self) {
|
|
// 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();
|
|
}
|
|
|
|
cef_string_userfree_t CEF_CALLBACK navigation_entry_get_title(
|
|
struct _cef_navigation_entry_t* self) {
|
|
// 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();
|
|
}
|
|
|
|
cef_transition_type_t CEF_CALLBACK navigation_entry_get_transition_type(
|
|
struct _cef_navigation_entry_t* self) {
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
DCHECK(self);
|
|
if (!self)
|
|
return TT_EXPLICIT;
|
|
|
|
// Execute
|
|
cef_transition_type_t _retval = CefNavigationEntryCppToC::Get(
|
|
self)->GetTransitionType();
|
|
|
|
// Return type: simple
|
|
return _retval;
|
|
}
|
|
|
|
int CEF_CALLBACK navigation_entry_has_post_data(
|
|
struct _cef_navigation_entry_t* self) {
|
|
// 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;
|
|
}
|
|
|
|
cef_string_userfree_t CEF_CALLBACK navigation_entry_get_frame_name(
|
|
struct _cef_navigation_entry_t* self) {
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
DCHECK(self);
|
|
if (!self)
|
|
return NULL;
|
|
|
|
// Execute
|
|
CefString _retval = CefNavigationEntryCppToC::Get(self)->GetFrameName();
|
|
|
|
// Return type: string
|
|
return _retval.DetachToUserFree();
|
|
}
|
|
|
|
cef_time_t CEF_CALLBACK navigation_entry_get_completion_time(
|
|
struct _cef_navigation_entry_t* self) {
|
|
// 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;
|
|
}
|
|
|
|
int CEF_CALLBACK navigation_entry_get_http_status_code(
|
|
struct _cef_navigation_entry_t* self) {
|
|
// 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;
|
|
}
|
|
|
|
|
|
// CONSTRUCTOR - Do not edit by hand.
|
|
|
|
CefNavigationEntryCppToC::CefNavigationEntryCppToC(CefNavigationEntry* cls)
|
|
: CefCppToC<CefNavigationEntryCppToC, CefNavigationEntry,
|
|
cef_navigation_entry_t>(cls) {
|
|
struct_.struct_.is_valid = navigation_entry_is_valid;
|
|
struct_.struct_.get_url = navigation_entry_get_url;
|
|
struct_.struct_.get_display_url = navigation_entry_get_display_url;
|
|
struct_.struct_.get_original_url = navigation_entry_get_original_url;
|
|
struct_.struct_.get_title = navigation_entry_get_title;
|
|
struct_.struct_.get_transition_type = navigation_entry_get_transition_type;
|
|
struct_.struct_.has_post_data = navigation_entry_has_post_data;
|
|
struct_.struct_.get_frame_name = navigation_entry_get_frame_name;
|
|
struct_.struct_.get_completion_time = navigation_entry_get_completion_time;
|
|
struct_.struct_.get_http_status_code = navigation_entry_get_http_status_code;
|
|
}
|
|
|
|
#ifndef NDEBUG
|
|
template<> base::AtomicRefCount CefCppToC<CefNavigationEntryCppToC,
|
|
CefNavigationEntry, cef_navigation_entry_t>::DebugObjCt = 0;
|
|
#endif
|
|
|