2012-01-10 00:46:23 +01:00
|
|
|
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
2011-08-22 03:31:55 +02:00
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
|
|
|
//
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
//
|
2011-12-08 02:38:30 +01:00
|
|
|
// 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.
|
2011-08-22 03:31:55 +02:00
|
|
|
//
|
|
|
|
|
|
|
|
#include "libcef_dll/ctocpp/drag_data_ctocpp.h"
|
|
|
|
#include "libcef_dll/transfer_util.h"
|
|
|
|
|
|
|
|
|
|
|
|
// VIRTUAL METHODS - Body may be edited by hand.
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
bool CefDragDataCToCpp::IsLink() {
|
2011-08-22 03:31:55 +02:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, is_link))
|
|
|
|
return false;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->is_link(struct_);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2011-08-22 03:31:55 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
bool CefDragDataCToCpp::IsFragment() {
|
2011-08-22 03:31:55 +02:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, is_fragment))
|
|
|
|
return false;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->is_fragment(struct_);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2011-08-22 03:31:55 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
bool CefDragDataCToCpp::IsFile() {
|
2011-08-22 03:31:55 +02:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, is_file))
|
|
|
|
return false;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->is_file(struct_);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2011-08-22 03:31:55 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CefString CefDragDataCToCpp::GetLinkURL() {
|
2011-08-22 03:31:55 +02:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_link_url))
|
2011-12-08 02:38:30 +01:00
|
|
|
return CefString();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
2011-08-22 03:31:55 +02:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// Execute
|
|
|
|
cef_string_userfree_t _retval = struct_->get_link_url(struct_);
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
2011-08-22 03:31:55 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CefString CefDragDataCToCpp::GetLinkTitle() {
|
2011-08-22 03:31:55 +02:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_link_title))
|
2011-12-08 02:38:30 +01:00
|
|
|
return CefString();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
2011-08-22 03:31:55 +02:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// Execute
|
|
|
|
cef_string_userfree_t _retval = struct_->get_link_title(struct_);
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
2011-08-22 03:31:55 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CefString CefDragDataCToCpp::GetLinkMetadata() {
|
2011-08-22 03:31:55 +02:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_link_metadata))
|
2011-12-08 02:38:30 +01:00
|
|
|
return CefString();
|
2011-08-22 03:31:55 +02:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_string_userfree_t _retval = struct_->get_link_metadata(struct_);
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
2011-08-22 03:31:55 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CefString CefDragDataCToCpp::GetFragmentText() {
|
2011-08-22 03:31:55 +02:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_fragment_text))
|
2011-12-08 02:38:30 +01:00
|
|
|
return CefString();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
2011-08-22 03:31:55 +02:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// Execute
|
|
|
|
cef_string_userfree_t _retval = struct_->get_fragment_text(struct_);
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
2011-08-22 03:31:55 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CefString CefDragDataCToCpp::GetFragmentHtml() {
|
2011-08-22 03:31:55 +02:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_fragment_html))
|
2011-12-08 02:38:30 +01:00
|
|
|
return CefString();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
2011-08-22 03:31:55 +02:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// Execute
|
|
|
|
cef_string_userfree_t _retval = struct_->get_fragment_html(struct_);
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
2011-08-22 03:31:55 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CefString CefDragDataCToCpp::GetFragmentBaseURL() {
|
2011-08-22 03:31:55 +02:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_fragment_base_url))
|
2011-12-08 02:38:30 +01:00
|
|
|
return CefString();
|
2011-08-22 03:31:55 +02:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_string_userfree_t _retval = struct_->get_fragment_base_url(struct_);
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
2011-08-22 03:31:55 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CefString CefDragDataCToCpp::GetFileName() {
|
2011-08-22 03:31:55 +02:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_file_name))
|
2011-12-08 02:38:30 +01:00
|
|
|
return CefString();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
2011-08-22 03:31:55 +02:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// Execute
|
|
|
|
cef_string_userfree_t _retval = struct_->get_file_name(struct_);
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
2011-08-22 03:31:55 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
bool CefDragDataCToCpp::GetFileNames(std::vector<CefString>& names) {
|
2011-08-22 03:31:55 +02:00
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_file_names))
|
|
|
|
return false;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Translate param: names; type: string_vec_byref
|
|
|
|
cef_string_list_t namesList = cef_string_list_alloc();
|
|
|
|
DCHECK(namesList);
|
|
|
|
if (namesList)
|
|
|
|
transfer_string_list_contents(names, namesList);
|
2011-11-15 00:43:52 +01:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// Execute
|
|
|
|
int _retval = struct_->get_file_names(struct_,
|
|
|
|
namesList);
|
|
|
|
|
|
|
|
// Restore param:names; type: string_vec_byref
|
|
|
|
if (namesList) {
|
|
|
|
names.clear();
|
|
|
|
transfer_string_list_contents(namesList, names);
|
|
|
|
cef_string_list_free(namesList);
|
2011-08-22 03:31:55 +02:00
|
|
|
}
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2011-08-22 03:31:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef NDEBUG
|
|
|
|
template<> long CefCToCpp<CefDragDataCToCpp, CefDragData,
|
|
|
|
cef_drag_data_t>::DebugObjCt = 0;
|
|
|
|
#endif
|
|
|
|
|