mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Expose resource type and transition type via CefRequest (issue #1071).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1433 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -269,6 +269,32 @@ void CefRequestCToCpp::SetFirstPartyForCookies(const CefString& url) {
|
||||
url.GetStruct());
|
||||
}
|
||||
|
||||
CefRequest::ResourceType CefRequestCToCpp::GetResourceType() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_resource_type))
|
||||
return RT_SUB_RESOURCE;
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
cef_resource_type_t _retval = struct_->get_resource_type(struct_);
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
CefRequest::TransitionType CefRequestCToCpp::GetTransitionType() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_transition_type))
|
||||
return TT_EXPLICIT;
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
cef_transition_type_t _retval = struct_->get_transition_type(struct_);
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
|
||||
#ifndef NDEBUG
|
||||
template<> long CefCToCpp<CefRequestCToCpp, CefRequest,
|
||||
|
Reference in New Issue
Block a user