2013-01-17 19:39:09 +01:00
|
|
|
// Copyright (c) 2013 The Chromium Embedded Framework Authors. All rights
|
2010-10-03 23:04:50 +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.
|
|
|
|
//
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2011-12-23 18:36:30 +01:00
|
|
|
#include "include/cef_app.h"
|
|
|
|
#include "include/capi/cef_app_capi.h"
|
2012-10-19 21:52:07 +02:00
|
|
|
#include "include/cef_geolocation.h"
|
|
|
|
#include "include/capi/cef_geolocation_capi.h"
|
2011-12-23 18:36:30 +01:00
|
|
|
#include "include/cef_origin_whitelist.h"
|
|
|
|
#include "include/capi/cef_origin_whitelist_capi.h"
|
|
|
|
#include "include/cef_scheme.h"
|
|
|
|
#include "include/capi/cef_scheme_capi.h"
|
|
|
|
#include "include/cef_task.h"
|
|
|
|
#include "include/capi/cef_task_capi.h"
|
|
|
|
#include "include/cef_url.h"
|
|
|
|
#include "include/capi/cef_url_capi.h"
|
|
|
|
#include "include/cef_v8.h"
|
|
|
|
#include "include/capi/cef_v8_capi.h"
|
2012-04-20 22:40:53 +02:00
|
|
|
#include "include/cef_web_plugin.h"
|
|
|
|
#include "include/capi/cef_web_plugin_capi.h"
|
2011-11-18 18:30:55 +01:00
|
|
|
#include "include/cef_version.h"
|
2011-11-23 23:47:09 +01:00
|
|
|
#include "libcef_dll/cpptoc/app_cpptoc.h"
|
2011-05-24 01:39:07 +02:00
|
|
|
#include "libcef_dll/cpptoc/content_filter_cpptoc.h"
|
2011-04-09 03:05:30 +02:00
|
|
|
#include "libcef_dll/cpptoc/cookie_visitor_cpptoc.h"
|
2011-02-23 04:45:13 +01:00
|
|
|
#include "libcef_dll/cpptoc/domevent_listener_cpptoc.h"
|
|
|
|
#include "libcef_dll/cpptoc/domvisitor_cpptoc.h"
|
2011-12-08 02:38:30 +01:00
|
|
|
#include "libcef_dll/cpptoc/display_handler_cpptoc.h"
|
2010-10-18 17:37:33 +02:00
|
|
|
#include "libcef_dll/cpptoc/download_handler_cpptoc.h"
|
2011-12-08 02:38:30 +01:00
|
|
|
#include "libcef_dll/cpptoc/drag_handler_cpptoc.h"
|
|
|
|
#include "libcef_dll/cpptoc/find_handler_cpptoc.h"
|
|
|
|
#include "libcef_dll/cpptoc/focus_handler_cpptoc.h"
|
2012-09-14 21:04:45 +02:00
|
|
|
#include "libcef_dll/cpptoc/geolocation_handler_cpptoc.h"
|
2012-10-19 21:52:07 +02:00
|
|
|
#include "libcef_dll/cpptoc/get_geolocation_callback_cpptoc.h"
|
2011-12-08 02:38:30 +01:00
|
|
|
#include "libcef_dll/cpptoc/jsdialog_handler_cpptoc.h"
|
|
|
|
#include "libcef_dll/cpptoc/keyboard_handler_cpptoc.h"
|
|
|
|
#include "libcef_dll/cpptoc/life_span_handler_cpptoc.h"
|
|
|
|
#include "libcef_dll/cpptoc/load_handler_cpptoc.h"
|
|
|
|
#include "libcef_dll/cpptoc/menu_handler_cpptoc.h"
|
2012-01-05 20:34:20 +01:00
|
|
|
#include "libcef_dll/cpptoc/permission_handler_cpptoc.h"
|
2011-12-08 02:38:30 +01:00
|
|
|
#include "libcef_dll/cpptoc/print_handler_cpptoc.h"
|
|
|
|
#include "libcef_dll/cpptoc/proxy_handler_cpptoc.h"
|
2010-10-03 23:04:50 +02:00
|
|
|
#include "libcef_dll/cpptoc/read_handler_cpptoc.h"
|
2011-12-08 02:38:30 +01:00
|
|
|
#include "libcef_dll/cpptoc/render_handler_cpptoc.h"
|
|
|
|
#include "libcef_dll/cpptoc/request_handler_cpptoc.h"
|
2012-02-16 18:11:49 +01:00
|
|
|
#include "libcef_dll/cpptoc/resource_bundle_handler_cpptoc.h"
|
2010-10-03 23:04:50 +02:00
|
|
|
#include "libcef_dll/cpptoc/scheme_handler_cpptoc.h"
|
|
|
|
#include "libcef_dll/cpptoc/scheme_handler_factory_cpptoc.h"
|
|
|
|
#include "libcef_dll/cpptoc/task_cpptoc.h"
|
2011-04-07 03:58:49 +02:00
|
|
|
#include "libcef_dll/cpptoc/v8accessor_cpptoc.h"
|
2011-12-08 02:38:30 +01:00
|
|
|
#include "libcef_dll/cpptoc/v8context_handler_cpptoc.h"
|
2010-10-03 23:04:50 +02:00
|
|
|
#include "libcef_dll/cpptoc/v8handler_cpptoc.h"
|
2011-02-15 19:07:24 +01:00
|
|
|
#include "libcef_dll/cpptoc/web_urlrequest_client_cpptoc.h"
|
2010-10-03 23:04:50 +02:00
|
|
|
#include "libcef_dll/cpptoc/write_handler_cpptoc.h"
|
2012-10-01 22:35:35 +02:00
|
|
|
#include "libcef_dll/cpptoc/zoom_handler_cpptoc.h"
|
2010-10-03 23:04:50 +02:00
|
|
|
#include "libcef_dll/ctocpp/browser_ctocpp.h"
|
2012-03-22 23:08:05 +01:00
|
|
|
#include "libcef_dll/ctocpp/cookie_manager_ctocpp.h"
|
2011-02-23 04:45:13 +01:00
|
|
|
#include "libcef_dll/ctocpp/domdocument_ctocpp.h"
|
|
|
|
#include "libcef_dll/ctocpp/domevent_ctocpp.h"
|
|
|
|
#include "libcef_dll/ctocpp/domnode_ctocpp.h"
|
2011-12-08 02:38:30 +01:00
|
|
|
#include "libcef_dll/ctocpp/drag_data_ctocpp.h"
|
|
|
|
#include "libcef_dll/ctocpp/frame_ctocpp.h"
|
2012-09-14 21:04:45 +02:00
|
|
|
#include "libcef_dll/ctocpp/geolocation_callback_ctocpp.h"
|
2010-10-03 23:04:50 +02:00
|
|
|
#include "libcef_dll/ctocpp/post_data_ctocpp.h"
|
|
|
|
#include "libcef_dll/ctocpp/post_data_element_ctocpp.h"
|
|
|
|
#include "libcef_dll/ctocpp/request_ctocpp.h"
|
2011-12-08 02:38:30 +01:00
|
|
|
#include "libcef_dll/ctocpp/response_ctocpp.h"
|
|
|
|
#include "libcef_dll/ctocpp/scheme_handler_callback_ctocpp.h"
|
2010-10-03 23:04:50 +02:00
|
|
|
#include "libcef_dll/ctocpp/stream_reader_ctocpp.h"
|
|
|
|
#include "libcef_dll/ctocpp/stream_writer_ctocpp.h"
|
2011-02-21 23:44:06 +01:00
|
|
|
#include "libcef_dll/ctocpp/v8context_ctocpp.h"
|
2011-12-08 02:38:30 +01:00
|
|
|
#include "libcef_dll/ctocpp/v8exception_ctocpp.h"
|
2012-07-25 11:45:49 +02:00
|
|
|
#include "libcef_dll/ctocpp/v8stack_frame_ctocpp.h"
|
|
|
|
#include "libcef_dll/ctocpp/v8stack_trace_ctocpp.h"
|
2011-12-08 02:38:30 +01:00
|
|
|
#include "libcef_dll/ctocpp/v8value_ctocpp.h"
|
2012-04-20 22:40:53 +02:00
|
|
|
#include "libcef_dll/ctocpp/web_plugin_info_ctocpp.h"
|
2011-02-15 19:07:24 +01:00
|
|
|
#include "libcef_dll/ctocpp/web_urlrequest_ctocpp.h"
|
2010-10-20 17:12:46 +02:00
|
|
|
#include "libcef_dll/ctocpp/xml_reader_ctocpp.h"
|
2010-10-24 18:41:21 +02:00
|
|
|
#include "libcef_dll/ctocpp/zip_reader_ctocpp.h"
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// Define used to facilitate parsing.
|
|
|
|
#define CEF_GLOBAL
|
|
|
|
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// GLOBAL METHODS - Body may be edited by hand.
|
|
|
|
|
|
|
|
CEF_GLOBAL bool CefInitialize(const CefSettings& settings,
|
2012-01-10 00:46:23 +01:00
|
|
|
CefRefPtr<CefApp> application) {
|
2011-11-18 18:30:55 +01:00
|
|
|
int build_revision = cef_build_revision();
|
|
|
|
if (build_revision != CEF_REVISION) {
|
|
|
|
// The libcef build revision does not match the CEF API revision.
|
2011-11-18 23:10:53 +01:00
|
|
|
DCHECK(false);
|
2011-11-18 18:30:55 +01:00
|
|
|
return false;
|
|
|
|
}
|
2011-11-23 23:47:09 +01:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Unverified params: application
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = cef_initialize(
|
|
|
|
&settings,
|
|
|
|
CefAppCppToC::Wrap(application));
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CEF_GLOBAL void CefShutdown() {
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2010-10-03 23:04:50 +02:00
|
|
|
cef_shutdown();
|
|
|
|
|
2011-05-20 16:42:25 +02:00
|
|
|
#ifndef NDEBUG
|
2010-10-03 23:04:50 +02:00
|
|
|
// Check that all wrapper objects have been destroyed
|
2012-01-10 00:46:23 +01:00
|
|
|
DCHECK_EQ(CefBrowserCToCpp::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefContentFilterCppToC::DebugObjCt, 0);
|
2012-03-22 23:08:05 +01:00
|
|
|
DCHECK_EQ(CefCookieManagerCToCpp::DebugObjCt, 0);
|
2012-01-10 00:46:23 +01:00
|
|
|
DCHECK_EQ(CefCookieVisitorCppToC::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefDOMDocumentCToCpp::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefDOMEventCToCpp::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefDOMEventListenerCppToC::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefDOMNodeCToCpp::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefDOMVisitorCppToC::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefDisplayHandlerCppToC::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefDownloadHandlerCppToC::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefDragDataCToCpp::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefDragHandlerCppToC::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefFindHandlerCppToC::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefFocusHandlerCppToC::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefFrameCToCpp::DebugObjCt, 0);
|
2012-09-14 21:04:45 +02:00
|
|
|
DCHECK_EQ(CefGeolocationCallbackCToCpp::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefGeolocationHandlerCppToC::DebugObjCt, 0);
|
2012-10-19 21:52:07 +02:00
|
|
|
DCHECK_EQ(CefGetGeolocationCallbackCppToC::DebugObjCt, 0);
|
2012-01-10 00:46:23 +01:00
|
|
|
DCHECK_EQ(CefJSDialogHandlerCppToC::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefKeyboardHandlerCppToC::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefLifeSpanHandlerCppToC::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefLoadHandlerCppToC::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefMenuHandlerCppToC::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefPermissionHandlerCppToC::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefPostDataCToCpp::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefPostDataElementCToCpp::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefPrintHandlerCppToC::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefProxyHandlerCppToC::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefReadHandlerCppToC::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefRenderHandlerCppToC::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefRequestCToCpp::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefRequestHandlerCppToC::DebugObjCt, 0);
|
2012-02-16 18:11:49 +01:00
|
|
|
DCHECK_EQ(CefResourceBundleHandlerCppToC::DebugObjCt, 0);
|
2012-01-10 00:46:23 +01:00
|
|
|
DCHECK_EQ(CefResponseCToCpp::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefSchemeHandlerCallbackCToCpp::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefSchemeHandlerCppToC::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefSchemeHandlerFactoryCppToC::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefStreamReaderCToCpp::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefStreamWriterCToCpp::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefTaskCppToC::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefV8AccessorCppToC::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefV8ContextCToCpp::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefV8ContextHandlerCppToC::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefV8ExceptionCToCpp::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefV8HandlerCppToC::DebugObjCt, 0);
|
2012-07-25 11:45:49 +02:00
|
|
|
DCHECK_EQ(CefV8StackFrameCToCpp::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefV8StackTraceCToCpp::DebugObjCt, 0);
|
2012-01-10 00:46:23 +01:00
|
|
|
DCHECK_EQ(CefV8ValueCToCpp::DebugObjCt, 0);
|
2012-04-20 22:40:53 +02:00
|
|
|
DCHECK_EQ(CefWebPluginInfoCToCpp::DebugObjCt, 0);
|
2012-01-10 00:46:23 +01:00
|
|
|
DCHECK_EQ(CefWebURLRequestCToCpp::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefWebURLRequestClientCppToC::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefWriteHandlerCppToC::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefXmlReaderCToCpp::DebugObjCt, 0);
|
|
|
|
DCHECK_EQ(CefZipReaderCToCpp::DebugObjCt, 0);
|
2012-10-01 22:35:35 +02:00
|
|
|
DCHECK_EQ(CefZoomHandlerCppToC::DebugObjCt, 0);
|
2012-01-10 00:46:23 +01:00
|
|
|
#endif // !NDEBUG
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CEF_GLOBAL void CefDoMessageLoopWork() {
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2010-10-03 23:04:50 +02:00
|
|
|
cef_do_message_loop_work();
|
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CEF_GLOBAL void CefRunMessageLoop() {
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2011-03-24 21:36:47 +01:00
|
|
|
cef_run_message_loop();
|
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CEF_GLOBAL void CefQuitMessageLoop() {
|
2011-12-08 14:25:26 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_quit_message_loop();
|
|
|
|
}
|
|
|
|
|
2012-10-19 21:52:07 +02:00
|
|
|
CEF_GLOBAL bool CefGetGeolocation(
|
|
|
|
CefRefPtr<CefGetGeolocationCallback> callback) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: callback; type: refptr_diff
|
|
|
|
DCHECK(callback.get());
|
|
|
|
if (!callback.get())
|
|
|
|
return false;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = cef_get_geolocation(
|
|
|
|
CefGetGeolocationCallbackCppToC::Wrap(callback));
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
|
|
|
}
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
CEF_GLOBAL bool CefAddCrossOriginWhitelistEntry(const CefString& source_origin,
|
|
|
|
const CefString& target_protocol, const CefString& target_domain,
|
2012-01-10 00:46:23 +01:00
|
|
|
bool allow_target_subdomains) {
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: source_origin; type: string_byref_const
|
|
|
|
DCHECK(!source_origin.empty());
|
|
|
|
if (source_origin.empty())
|
|
|
|
return false;
|
|
|
|
// Verify param: target_protocol; type: string_byref_const
|
|
|
|
DCHECK(!target_protocol.empty());
|
|
|
|
if (target_protocol.empty())
|
|
|
|
return false;
|
2012-06-04 20:44:14 +02:00
|
|
|
// Unverified params: target_domain
|
2011-12-08 02:38:30 +01:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = cef_add_cross_origin_whitelist_entry(
|
|
|
|
source_origin.GetStruct(),
|
|
|
|
target_protocol.GetStruct(),
|
|
|
|
target_domain.GetStruct(),
|
|
|
|
allow_target_subdomains);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2011-05-27 18:20:32 +02:00
|
|
|
}
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
CEF_GLOBAL bool CefRemoveCrossOriginWhitelistEntry(
|
|
|
|
const CefString& source_origin, const CefString& target_protocol,
|
2012-01-10 00:46:23 +01:00
|
|
|
const CefString& target_domain, bool allow_target_subdomains) {
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: source_origin; type: string_byref_const
|
|
|
|
DCHECK(!source_origin.empty());
|
|
|
|
if (source_origin.empty())
|
|
|
|
return false;
|
|
|
|
// Verify param: target_protocol; type: string_byref_const
|
|
|
|
DCHECK(!target_protocol.empty());
|
|
|
|
if (target_protocol.empty())
|
|
|
|
return false;
|
2012-06-04 20:44:14 +02:00
|
|
|
// Unverified params: target_domain
|
2011-12-08 02:38:30 +01:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = cef_remove_cross_origin_whitelist_entry(
|
|
|
|
source_origin.GetStruct(),
|
|
|
|
target_protocol.GetStruct(),
|
|
|
|
target_domain.GetStruct(),
|
|
|
|
allow_target_subdomains);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2011-05-27 18:20:32 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CEF_GLOBAL bool CefClearCrossOriginWhitelist() {
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = cef_clear_cross_origin_whitelist();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2011-12-23 18:36:30 +01:00
|
|
|
CEF_GLOBAL bool CefRegisterCustomScheme(const CefString& scheme_name,
|
2012-01-10 00:46:23 +01:00
|
|
|
bool is_standard, bool is_local, bool is_display_isolated) {
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
2011-12-23 18:36:30 +01:00
|
|
|
// Verify param: scheme_name; type: string_byref_const
|
|
|
|
DCHECK(!scheme_name.empty());
|
|
|
|
if (scheme_name.empty())
|
2011-12-08 02:38:30 +01:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// Execute
|
2011-12-23 18:36:30 +01:00
|
|
|
int _retval = cef_register_custom_scheme(
|
|
|
|
scheme_name.GetStruct(),
|
|
|
|
is_standard,
|
|
|
|
is_local,
|
|
|
|
is_display_isolated);
|
2011-12-08 02:38:30 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2011-12-23 18:36:30 +01:00
|
|
|
CEF_GLOBAL bool CefRegisterSchemeHandlerFactory(const CefString& scheme_name,
|
2012-01-10 00:46:23 +01:00
|
|
|
const CefString& domain_name,
|
|
|
|
CefRefPtr<CefSchemeHandlerFactory> factory) {
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
2011-12-23 18:36:30 +01:00
|
|
|
// Verify param: scheme_name; type: string_byref_const
|
|
|
|
DCHECK(!scheme_name.empty());
|
|
|
|
if (scheme_name.empty())
|
2011-12-08 02:38:30 +01:00
|
|
|
return false;
|
2011-12-23 18:36:30 +01:00
|
|
|
// Unverified params: domain_name, factory
|
2011-12-08 02:38:30 +01:00
|
|
|
|
|
|
|
// Execute
|
2011-12-23 18:36:30 +01:00
|
|
|
int _retval = cef_register_scheme_handler_factory(
|
|
|
|
scheme_name.GetStruct(),
|
|
|
|
domain_name.GetStruct(),
|
|
|
|
CefSchemeHandlerFactoryCppToC::Wrap(factory));
|
2011-12-08 02:38:30 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
2011-01-31 21:47:04 +01:00
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CEF_GLOBAL bool CefClearSchemeHandlerFactories() {
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2011-12-23 18:36:30 +01:00
|
|
|
int _retval = cef_clear_scheme_handler_factories();
|
2011-12-08 02:38:30 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2011-01-31 21:47:04 +01:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CEF_GLOBAL bool CefCurrentlyOn(CefThreadId threadId) {
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2011-12-23 18:36:30 +01:00
|
|
|
int _retval = cef_currently_on(
|
|
|
|
threadId);
|
2011-12-08 02:38:30 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2011-04-09 03:05:30 +02:00
|
|
|
}
|
2011-10-06 15:34:47 +02:00
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CEF_GLOBAL bool CefPostTask(CefThreadId threadId, CefRefPtr<CefTask> task) {
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
2011-12-23 18:36:30 +01:00
|
|
|
// Verify param: task; type: refptr_diff
|
|
|
|
DCHECK(task.get());
|
|
|
|
if (!task.get())
|
|
|
|
return false;
|
2011-12-08 02:38:30 +01:00
|
|
|
|
|
|
|
// Execute
|
2011-12-23 18:36:30 +01:00
|
|
|
int _retval = cef_post_task(
|
|
|
|
threadId,
|
|
|
|
CefTaskCppToC::Wrap(task));
|
2011-12-08 02:38:30 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2011-11-02 20:50:00 +01:00
|
|
|
}
|
|
|
|
|
2011-12-23 18:36:30 +01:00
|
|
|
CEF_GLOBAL bool CefPostDelayedTask(CefThreadId threadId,
|
2012-01-10 00:46:23 +01:00
|
|
|
CefRefPtr<CefTask> task, int64 delay_ms) {
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
2011-12-23 18:36:30 +01:00
|
|
|
// Verify param: task; type: refptr_diff
|
|
|
|
DCHECK(task.get());
|
|
|
|
if (!task.get())
|
2011-12-08 02:38:30 +01:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// Execute
|
2011-12-23 18:36:30 +01:00
|
|
|
int _retval = cef_post_delayed_task(
|
|
|
|
threadId,
|
|
|
|
CefTaskCppToC::Wrap(task),
|
|
|
|
delay_ms);
|
2011-12-08 02:38:30 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2011-10-06 15:34:47 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CEF_GLOBAL bool CefParseURL(const CefString& url, CefURLParts& parts) {
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
2011-12-23 18:36:30 +01:00
|
|
|
// Verify param: url; type: string_byref_const
|
|
|
|
DCHECK(!url.empty());
|
|
|
|
if (url.empty())
|
2011-12-08 02:38:30 +01:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// Execute
|
2011-12-23 18:36:30 +01:00
|
|
|
int _retval = cef_parse_url(
|
|
|
|
url.GetStruct(),
|
|
|
|
&parts);
|
2011-12-08 02:38:30 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2011-10-06 15:34:47 +02:00
|
|
|
}
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
CEF_GLOBAL bool CefCreateURL(const CefURLParts& parts, CefString& url) {
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2011-12-23 18:36:30 +01:00
|
|
|
int _retval = cef_create_url(
|
|
|
|
&parts,
|
|
|
|
url.GetWritableStruct());
|
2011-12-08 02:38:30 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2011-10-06 15:34:47 +02:00
|
|
|
}
|
2011-11-02 20:50:00 +01:00
|
|
|
|
2011-12-23 18:36:30 +01:00
|
|
|
CEF_GLOBAL bool CefRegisterExtension(const CefString& extension_name,
|
2012-01-10 00:46:23 +01:00
|
|
|
const CefString& javascript_code, CefRefPtr<CefV8Handler> handler) {
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
2011-12-23 18:36:30 +01:00
|
|
|
// Verify param: extension_name; type: string_byref_const
|
|
|
|
DCHECK(!extension_name.empty());
|
|
|
|
if (extension_name.empty())
|
|
|
|
return false;
|
|
|
|
// Verify param: javascript_code; type: string_byref_const
|
|
|
|
DCHECK(!javascript_code.empty());
|
|
|
|
if (javascript_code.empty())
|
|
|
|
return false;
|
|
|
|
// Unverified params: handler
|
2011-12-08 02:38:30 +01:00
|
|
|
|
|
|
|
// Execute
|
2011-12-23 18:36:30 +01:00
|
|
|
int _retval = cef_register_extension(
|
|
|
|
extension_name.GetStruct(),
|
|
|
|
javascript_code.GetStruct(),
|
|
|
|
CefV8HandlerCppToC::Wrap(handler));
|
2011-12-08 02:38:30 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval?true:false;
|
2011-11-02 20:50:00 +01:00
|
|
|
}
|
2011-12-08 02:38:30 +01:00
|
|
|
|
2012-04-20 22:40:53 +02:00
|
|
|
CEF_GLOBAL size_t CefGetWebPluginCount() {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
size_t _retval = cef_get_web_plugin_count();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
CEF_GLOBAL CefRefPtr<CefWebPluginInfo> CefGetWebPluginInfo(int index) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_web_plugin_info_t* _retval = cef_get_web_plugin_info(
|
|
|
|
index);
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefWebPluginInfoCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
CEF_GLOBAL CefRefPtr<CefWebPluginInfo> CefGetWebPluginInfo(
|
|
|
|
const CefString& name) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: name; type: string_byref_const
|
|
|
|
DCHECK(!name.empty());
|
|
|
|
if (name.empty())
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_web_plugin_info_t* _retval = cef_get_web_plugin_info_byname(
|
|
|
|
name.GetStruct());
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefWebPluginInfoCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|