2017-01-11 00:00:30 +01:00
|
|
|
// Copyright (c) 2017 The Chromium Embedded Framework Authors. All rights
|
2012-04-19 22:31:46 +02: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/context_menu_params_ctocpp.h"
|
2014-10-07 22:44:33 +02:00
|
|
|
#include "libcef_dll/transfer_util.h"
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
// VIRTUAL METHODS - Body may be edited by hand.
|
|
|
|
|
|
|
|
int CefContextMenuParamsCToCpp::GetXCoord() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_context_menu_params_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_xcoord))
|
2012-04-19 22:31:46 +02:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->get_xcoord(_struct);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CefContextMenuParamsCToCpp::GetYCoord() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_context_menu_params_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_ycoord))
|
2012-04-19 22:31:46 +02:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->get_ycoord(_struct);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefContextMenuParams::TypeFlags CefContextMenuParamsCToCpp::GetTypeFlags() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_context_menu_params_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_type_flags))
|
2012-04-19 22:31:46 +02:00
|
|
|
return CM_TYPEFLAG_NONE;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_context_menu_type_flags_t _retval = _struct->get_type_flags(_struct);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefString CefContextMenuParamsCToCpp::GetLinkUrl() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_context_menu_params_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_link_url))
|
2012-04-19 22:31:46 +02: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_link_url(_struct);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefString CefContextMenuParamsCToCpp::GetUnfilteredLinkUrl() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_context_menu_params_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_unfiltered_link_url))
|
2012-04-19 22:31:46 +02: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_unfiltered_link_url(_struct);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefString CefContextMenuParamsCToCpp::GetSourceUrl() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_context_menu_params_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_source_url))
|
2012-04-19 22:31:46 +02: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_source_url(_struct);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
2013-09-03 23:48:12 +02:00
|
|
|
bool CefContextMenuParamsCToCpp::HasImageContents() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_context_menu_params_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, has_image_contents))
|
2012-04-19 22:31:46 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->has_image_contents(_struct);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
2017-01-17 18:43:49 +01:00
|
|
|
CefString CefContextMenuParamsCToCpp::GetTitleText() {
|
|
|
|
cef_context_menu_params_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_title_text))
|
|
|
|
return CefString();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_string_userfree_t _retval = _struct->get_title_text(_struct);
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
CefString CefContextMenuParamsCToCpp::GetPageUrl() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_context_menu_params_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_page_url))
|
2012-04-19 22:31:46 +02: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_page_url(_struct);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefString CefContextMenuParamsCToCpp::GetFrameUrl() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_context_menu_params_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_frame_url))
|
2012-04-19 22:31:46 +02: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_frame_url(_struct);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefString CefContextMenuParamsCToCpp::GetFrameCharset() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_context_menu_params_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_frame_charset))
|
2012-04-19 22:31:46 +02: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_frame_charset(_struct);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefContextMenuParams::MediaType CefContextMenuParamsCToCpp::GetMediaType() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_context_menu_params_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_media_type))
|
2012-04-19 22:31:46 +02:00
|
|
|
return CM_MEDIATYPE_NONE;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_context_menu_media_type_t _retval = _struct->get_media_type(_struct);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefContextMenuParams::MediaStateFlags CefContextMenuParamsCToCpp::GetMediaStateFlags(
|
|
|
|
) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_context_menu_params_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_media_state_flags))
|
2012-04-19 22:31:46 +02:00
|
|
|
return CM_MEDIAFLAG_NONE;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_context_menu_media_state_flags_t _retval = _struct->get_media_state_flags(
|
|
|
|
_struct);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
CefString CefContextMenuParamsCToCpp::GetSelectionText() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_context_menu_params_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_selection_text))
|
2012-04-19 22:31:46 +02: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_selection_text(_struct);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
2014-10-07 22:44:33 +02:00
|
|
|
CefString CefContextMenuParamsCToCpp::GetMisspelledWord() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_context_menu_params_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_misspelled_word))
|
2014-10-07 22:44:33 +02: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_misspelled_word(_struct);
|
2014-10-07 22:44:33 +02:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefContextMenuParamsCToCpp::GetDictionarySuggestions(
|
|
|
|
std::vector<CefString>& suggestions) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_context_menu_params_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_dictionary_suggestions))
|
2014-10-07 22:44:33 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Translate param: suggestions; type: string_vec_byref
|
|
|
|
cef_string_list_t suggestionsList = cef_string_list_alloc();
|
|
|
|
DCHECK(suggestionsList);
|
|
|
|
if (suggestionsList)
|
|
|
|
transfer_string_list_contents(suggestions, suggestionsList);
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->get_dictionary_suggestions(_struct,
|
2014-10-07 22:44:33 +02:00
|
|
|
suggestionsList);
|
|
|
|
|
|
|
|
// Restore param:suggestions; type: string_vec_byref
|
|
|
|
if (suggestionsList) {
|
|
|
|
suggestions.clear();
|
|
|
|
transfer_string_list_contents(suggestionsList, suggestions);
|
|
|
|
cef_string_list_free(suggestionsList);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
bool CefContextMenuParamsCToCpp::IsEditable() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_context_menu_params_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_editable))
|
2012-04-19 22:31:46 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->is_editable(_struct);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
2014-10-07 22:44:33 +02:00
|
|
|
bool CefContextMenuParamsCToCpp::IsSpellCheckEnabled() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_context_menu_params_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_spell_check_enabled))
|
2014-10-07 22:44:33 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->is_spell_check_enabled(_struct);
|
2014-10-07 22:44:33 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
CefContextMenuParams::EditStateFlags CefContextMenuParamsCToCpp::GetEditStateFlags(
|
|
|
|
) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_context_menu_params_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_edit_state_flags))
|
2012-04-19 22:31:46 +02:00
|
|
|
return CM_EDITFLAG_NONE;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_context_menu_edit_state_flags_t _retval = _struct->get_edit_state_flags(
|
|
|
|
_struct);
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2015-09-09 16:05:39 +02:00
|
|
|
bool CefContextMenuParamsCToCpp::IsCustomMenu() {
|
|
|
|
cef_context_menu_params_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_custom_menu))
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = _struct->is_custom_menu(_struct);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CefContextMenuParamsCToCpp::IsPepperMenu() {
|
|
|
|
cef_context_menu_params_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_pepper_menu))
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = _struct->is_pepper_menu(_struct);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
2012-04-19 22:31:46 +02:00
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
// CONSTRUCTOR - Do not edit by hand.
|
|
|
|
|
|
|
|
CefContextMenuParamsCToCpp::CefContextMenuParamsCToCpp() {
|
|
|
|
}
|
|
|
|
|
2017-02-09 23:07:43 +01:00
|
|
|
template<> cef_context_menu_params_t* CefCToCppRefCounted<CefContextMenuParamsCToCpp,
|
2015-04-26 20:40:01 +02:00
|
|
|
CefContextMenuParams, cef_context_menu_params_t>::UnwrapDerived(
|
|
|
|
CefWrapperType type, CefContextMenuParams* c) {
|
|
|
|
NOTREACHED() << "Unexpected class type: " << type;
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2016-09-01 13:24:30 +02:00
|
|
|
#if DCHECK_IS_ON()
|
2017-02-09 23:07:43 +01:00
|
|
|
template<> base::AtomicRefCount CefCToCppRefCounted<CefContextMenuParamsCToCpp,
|
2014-07-15 00:18:51 +02:00
|
|
|
CefContextMenuParams, cef_context_menu_params_t>::DebugObjCt = 0;
|
2012-04-19 22:31:46 +02:00
|
|
|
#endif
|
|
|
|
|
2017-02-09 23:07:43 +01:00
|
|
|
template<> CefWrapperType CefCToCppRefCounted<CefContextMenuParamsCToCpp,
|
2015-04-26 20:40:01 +02:00
|
|
|
CefContextMenuParams, cef_context_menu_params_t>::kWrapperType =
|
|
|
|
WT_CONTEXT_MENU_PARAMS;
|