mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
- Add example to cefclient of launching DevTools in an external browser window and process using new CefGetPath and CefLaunchProcess functions (issue #639).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@713 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -14,6 +14,10 @@
|
||||
#include "include/capi/cef_app_capi.h"
|
||||
#include "include/cef_origin_whitelist.h"
|
||||
#include "include/capi/cef_origin_whitelist_capi.h"
|
||||
#include "include/cef_path_util.h"
|
||||
#include "include/capi/cef_path_util_capi.h"
|
||||
#include "include/cef_process_util.h"
|
||||
#include "include/capi/cef_process_util_capi.h"
|
||||
#include "include/cef_scheme.h"
|
||||
#include "include/capi/cef_scheme_capi.h"
|
||||
#include "include/cef_task.h"
|
||||
@@ -29,6 +33,7 @@
|
||||
#include "libcef_dll/cpptoc/browser_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/browser_host_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/callback_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/command_line_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/context_menu_params_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/cookie_manager_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/domdocument_cpptoc.h"
|
||||
@@ -286,6 +291,42 @@ CEF_EXPORT int cef_clear_cross_origin_whitelist() {
|
||||
return _retval;
|
||||
}
|
||||
|
||||
CEF_EXPORT int cef_get_path(enum cef_path_key_t key, cef_string_t* path) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: path; type: string_byref
|
||||
DCHECK(path);
|
||||
if (!path)
|
||||
return 0;
|
||||
|
||||
// Translate param: path; type: string_byref
|
||||
CefString pathStr(path);
|
||||
|
||||
// Execute
|
||||
bool _retval = CefGetPath(
|
||||
key,
|
||||
pathStr);
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
CEF_EXPORT int cef_launch_process(struct _cef_command_line_t* command_line) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: command_line; type: refptr_same
|
||||
DCHECK(command_line);
|
||||
if (!command_line)
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
bool _retval = CefLaunchProcess(
|
||||
CefCommandLineCppToC::Unwrap(command_line));
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
CEF_EXPORT int cef_register_scheme_handler_factory(
|
||||
const cef_string_t* scheme_name, const cef_string_t* domain_name,
|
||||
struct _cef_scheme_handler_factory_t* factory) {
|
||||
|
Reference in New Issue
Block a user