2018-01-03 21:46:26 +01:00
|
|
|
// Copyright (c) 2018 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.
|
|
|
|
//
|
2018-01-03 21:46:26 +01:00
|
|
|
// $hash=3135a7e1229fdd3fe6fe93580c1af3e0ac1aab32$
|
2017-05-17 11:29:28 +02:00
|
|
|
//
|
2012-04-19 22:31:46 +02:00
|
|
|
|
|
|
|
#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
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2012-04-19 22:31:46 +02:00
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
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
|
2017-05-17 11:29:28 +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
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->get_dictionary_suggestions(_struct, suggestionsList);
|
2014-10-07 22:44:33 +02:00
|
|
|
|
|
|
|
// 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
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2014-10-07 22:44:33 +02:00
|
|
|
}
|
|
|
|
|
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
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2012-04-19 22:31:46 +02:00
|
|
|
}
|
|
|
|
|
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
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2014-10-07 22:44:33 +02:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +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
|
2017-05-17 11:29:28 +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
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2015-09-09 16:05:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2015-09-09 16:05:39 +02:00
|
|
|
}
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
// CONSTRUCTOR - Do not edit by hand.
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
CefContextMenuParamsCToCpp::CefContextMenuParamsCToCpp() {}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
cef_context_menu_params_t* CefCToCppRefCounted<
|
|
|
|
CefContextMenuParamsCToCpp,
|
|
|
|
CefContextMenuParams,
|
|
|
|
cef_context_menu_params_t>::UnwrapDerived(CefWrapperType type,
|
|
|
|
CefContextMenuParams* c) {
|
2015-04-26 20:40:01 +02:00
|
|
|
NOTREACHED() << "Unexpected class type: " << type;
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2016-09-01 13:24:30 +02:00
|
|
|
#if DCHECK_IS_ON()
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
2017-07-27 01:19:27 +02:00
|
|
|
base::AtomicRefCount CefCToCppRefCounted<CefContextMenuParamsCToCpp,
|
|
|
|
CefContextMenuParams,
|
|
|
|
cef_context_menu_params_t>::DebugObjCt
|
|
|
|
ATOMIC_DECLARATION;
|
2012-04-19 22:31:46 +02:00
|
|
|
#endif
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefWrapperType CefCToCppRefCounted<CefContextMenuParamsCToCpp,
|
|
|
|
CefContextMenuParams,
|
|
|
|
cef_context_menu_params_t>::kWrapperType =
|
2015-04-26 20:40:01 +02:00
|
|
|
WT_CONTEXT_MENU_PARAMS;
|