mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Make CEF compliant with Google/Chromium style (issue #473).
- Add a new check_style tool based on Google's cpplint that can be used to verify compliance of pending changes and specific files/directories. - Update existing CEF source code to be compliant with the style requirements. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@463 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -17,8 +17,7 @@
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
struct _cef_proxy_handler_t* CEF_CALLBACK app_get_proxy_handler(
|
||||
struct _cef_app_t* self)
|
||||
{
|
||||
struct _cef_app_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -37,8 +36,7 @@ struct _cef_proxy_handler_t* CEF_CALLBACK app_get_proxy_handler(
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefAppCppToC::CefAppCppToC(CefApp* cls)
|
||||
: CefCppToC<CefAppCppToC, CefApp, cef_app_t>(cls)
|
||||
{
|
||||
: CefCppToC<CefAppCppToC, CefApp, cef_app_t>(cls) {
|
||||
struct_.struct_.get_proxy_handler = app_get_proxy_handler;
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _APP_CPPTOC_H
|
||||
#define _APP_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_APP_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_APP_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef USING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
|
||||
#else // USING_CEF_SHARED
|
||||
#else // USING_CEF_SHARED
|
||||
|
||||
#include "include/cef_app.h"
|
||||
#include "include/capi/cef_app_capi.h"
|
||||
@ -24,13 +25,12 @@
|
||||
// Wrap a C++ class with a C structure.
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefAppCppToC
|
||||
: public CefCppToC<CefAppCppToC, CefApp, cef_app_t>
|
||||
{
|
||||
public:
|
||||
CefAppCppToC(CefApp* cls);
|
||||
: public CefCppToC<CefAppCppToC, CefApp, cef_app_t> {
|
||||
public:
|
||||
explicit CefAppCppToC(CefApp* cls);
|
||||
virtual ~CefAppCppToC() {}
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _APP_CPPTOC_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_APP_CPPTOC_H_
|
||||
|
||||
|
@ -2,8 +2,9 @@
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
|
||||
#ifndef _BASE_CPPTOC_H
|
||||
#define _BASE_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_BASE_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_BASE_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#include "include/cef_base.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
@ -11,15 +12,13 @@
|
||||
|
||||
|
||||
// CefCppToC implementation for CefBase.
|
||||
class CefBaseCppToC : public CefBase
|
||||
{
|
||||
public:
|
||||
class CefBaseCppToC : public CefBase {
|
||||
public:
|
||||
// Use this method to retrieve the underlying class instance from our
|
||||
// own structure when the structure is passed as the required first
|
||||
// parameter of a C API function call. No explicit reference counting
|
||||
// is done in this case.
|
||||
static CefRefPtr<CefBase> Get(cef_base_t* s)
|
||||
{
|
||||
static CefRefPtr<CefBase> Get(cef_base_t* s) {
|
||||
DCHECK(s);
|
||||
|
||||
// Cast our structure to the wrapper structure type.
|
||||
@ -28,11 +27,10 @@ public:
|
||||
// Return the underlying object instance.
|
||||
return wrapperStruct->class_->GetClass();
|
||||
}
|
||||
|
||||
|
||||
// Use this method to create a wrapper structure for passing our class
|
||||
// instance to the other side.
|
||||
static cef_base_t* Wrap(CefRefPtr<CefBase> c)
|
||||
{
|
||||
static cef_base_t* Wrap(CefRefPtr<CefBase> c) {
|
||||
if (!c.get())
|
||||
return NULL;
|
||||
|
||||
@ -47,8 +45,7 @@ public:
|
||||
|
||||
// Use this method to retrieve the underlying class instance when receiving
|
||||
// our wrapper structure back from the other side.
|
||||
static CefRefPtr<CefBase> Unwrap(cef_base_t* s)
|
||||
{
|
||||
static CefRefPtr<CefBase> Unwrap(cef_base_t* s) {
|
||||
if (!s)
|
||||
return NULL;
|
||||
|
||||
@ -65,19 +62,17 @@ public:
|
||||
}
|
||||
|
||||
// Structure representation with pointer to the C++ class.
|
||||
struct Struct
|
||||
{
|
||||
struct Struct {
|
||||
cef_base_t struct_;
|
||||
CefBaseCppToC* class_;
|
||||
};
|
||||
|
||||
CefBaseCppToC(CefBase* cls)
|
||||
: class_(cls)
|
||||
{
|
||||
explicit CefBaseCppToC(CefBase* cls)
|
||||
: class_(cls) {
|
||||
DCHECK(cls);
|
||||
|
||||
struct_.class_ = this;
|
||||
|
||||
|
||||
// zero the underlying structure and set base members
|
||||
memset(&struct_.struct_, 0, sizeof(cef_base_t));
|
||||
struct_.struct_.size = sizeof(cef_base_t);
|
||||
@ -96,13 +91,11 @@ public:
|
||||
|
||||
// CefBase methods increment/decrement reference counts on both this object
|
||||
// and the underlying wrapper class.
|
||||
int AddRef()
|
||||
{
|
||||
int AddRef() {
|
||||
UnderlyingAddRef();
|
||||
return refct_.AddRef();
|
||||
}
|
||||
int Release()
|
||||
{
|
||||
int Release() {
|
||||
UnderlyingRelease();
|
||||
int retval = refct_.Release();
|
||||
if (retval == 0)
|
||||
@ -116,41 +109,38 @@ public:
|
||||
int UnderlyingRelease() { return class_->Release(); }
|
||||
int UnderlyingGetRefCt() { return class_->GetRefCt(); }
|
||||
|
||||
private:
|
||||
static int CEF_CALLBACK struct_add_ref(struct _cef_base_t* base)
|
||||
{
|
||||
private:
|
||||
static int CEF_CALLBACK struct_add_ref(struct _cef_base_t* base) {
|
||||
DCHECK(base);
|
||||
if(!base)
|
||||
if (!base)
|
||||
return 0;
|
||||
|
||||
Struct* impl = reinterpret_cast<Struct*>(base);
|
||||
return impl->class_->AddRef();
|
||||
}
|
||||
|
||||
static int CEF_CALLBACK struct_release(struct _cef_base_t* base)
|
||||
{
|
||||
static int CEF_CALLBACK struct_release(struct _cef_base_t* base) {
|
||||
DCHECK(base);
|
||||
if(!base)
|
||||
if (!base)
|
||||
return 0;
|
||||
|
||||
Struct* impl = reinterpret_cast<Struct*>(base);
|
||||
return impl->class_->Release();
|
||||
}
|
||||
|
||||
static int CEF_CALLBACK struct_get_refct(struct _cef_base_t* base)
|
||||
{
|
||||
static int CEF_CALLBACK struct_get_refct(struct _cef_base_t* base) {
|
||||
DCHECK(base);
|
||||
if(!base)
|
||||
if (!base)
|
||||
return 0;
|
||||
|
||||
Struct* impl = reinterpret_cast<Struct*>(base);
|
||||
return impl->class_->GetRefCt();
|
||||
}
|
||||
|
||||
protected:
|
||||
protected:
|
||||
CefRefCount refct_;
|
||||
Struct struct_;
|
||||
CefBase* class_;
|
||||
};
|
||||
|
||||
#endif // _BASE_CPPTOC_H
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_BASE_CPPTOC_H_
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -20,8 +20,7 @@
|
||||
|
||||
CEF_EXPORT int cef_browser_create(cef_window_info_t* windowInfo,
|
||||
struct _cef_client_t* client, const cef_string_t* url,
|
||||
const struct _cef_browser_settings_t* settings)
|
||||
{
|
||||
const struct _cef_browser_settings_t* settings) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: windowInfo; type: struct_byref
|
||||
@ -64,8 +63,7 @@ CEF_EXPORT int cef_browser_create(cef_window_info_t* windowInfo,
|
||||
|
||||
CEF_EXPORT cef_browser_t* cef_browser_create_sync(cef_window_info_t* windowInfo,
|
||||
struct _cef_client_t* client, const cef_string_t* url,
|
||||
const struct _cef_browser_settings_t* settings)
|
||||
{
|
||||
const struct _cef_browser_settings_t* settings) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: windowInfo; type: struct_byref
|
||||
@ -109,8 +107,8 @@ CEF_EXPORT cef_browser_t* cef_browser_create_sync(cef_window_info_t* windowInfo,
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
void CEF_CALLBACK browser_parent_window_will_close(struct _cef_browser_t* self)
|
||||
{
|
||||
void CEF_CALLBACK browser_parent_window_will_close(
|
||||
struct _cef_browser_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -121,8 +119,7 @@ void CEF_CALLBACK browser_parent_window_will_close(struct _cef_browser_t* self)
|
||||
CefBrowserCppToC::Get(self)->ParentWindowWillClose();
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_close_browser(struct _cef_browser_t* self)
|
||||
{
|
||||
void CEF_CALLBACK browser_close_browser(struct _cef_browser_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -133,8 +130,7 @@ void CEF_CALLBACK browser_close_browser(struct _cef_browser_t* self)
|
||||
CefBrowserCppToC::Get(self)->CloseBrowser();
|
||||
}
|
||||
|
||||
int CEF_CALLBACK browser_can_go_back(struct _cef_browser_t* self)
|
||||
{
|
||||
int CEF_CALLBACK browser_can_go_back(struct _cef_browser_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -148,8 +144,7 @@ int CEF_CALLBACK browser_can_go_back(struct _cef_browser_t* self)
|
||||
return _retval;
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_go_back(struct _cef_browser_t* self)
|
||||
{
|
||||
void CEF_CALLBACK browser_go_back(struct _cef_browser_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -160,8 +155,7 @@ void CEF_CALLBACK browser_go_back(struct _cef_browser_t* self)
|
||||
CefBrowserCppToC::Get(self)->GoBack();
|
||||
}
|
||||
|
||||
int CEF_CALLBACK browser_can_go_forward(struct _cef_browser_t* self)
|
||||
{
|
||||
int CEF_CALLBACK browser_can_go_forward(struct _cef_browser_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -175,8 +169,7 @@ int CEF_CALLBACK browser_can_go_forward(struct _cef_browser_t* self)
|
||||
return _retval;
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_go_forward(struct _cef_browser_t* self)
|
||||
{
|
||||
void CEF_CALLBACK browser_go_forward(struct _cef_browser_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -187,8 +180,7 @@ void CEF_CALLBACK browser_go_forward(struct _cef_browser_t* self)
|
||||
CefBrowserCppToC::Get(self)->GoForward();
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_reload(struct _cef_browser_t* self)
|
||||
{
|
||||
void CEF_CALLBACK browser_reload(struct _cef_browser_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -199,8 +191,7 @@ void CEF_CALLBACK browser_reload(struct _cef_browser_t* self)
|
||||
CefBrowserCppToC::Get(self)->Reload();
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_reload_ignore_cache(struct _cef_browser_t* self)
|
||||
{
|
||||
void CEF_CALLBACK browser_reload_ignore_cache(struct _cef_browser_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -211,8 +202,7 @@ void CEF_CALLBACK browser_reload_ignore_cache(struct _cef_browser_t* self)
|
||||
CefBrowserCppToC::Get(self)->ReloadIgnoreCache();
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_stop_load(struct _cef_browser_t* self)
|
||||
{
|
||||
void CEF_CALLBACK browser_stop_load(struct _cef_browser_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -223,8 +213,7 @@ void CEF_CALLBACK browser_stop_load(struct _cef_browser_t* self)
|
||||
CefBrowserCppToC::Get(self)->StopLoad();
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_set_focus(struct _cef_browser_t* self, int enable)
|
||||
{
|
||||
void CEF_CALLBACK browser_set_focus(struct _cef_browser_t* self, int enable) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -237,8 +226,7 @@ void CEF_CALLBACK browser_set_focus(struct _cef_browser_t* self, int enable)
|
||||
}
|
||||
|
||||
cef_window_handle_t CEF_CALLBACK browser_get_window_handle(
|
||||
struct _cef_browser_t* self)
|
||||
{
|
||||
struct _cef_browser_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -253,8 +241,7 @@ cef_window_handle_t CEF_CALLBACK browser_get_window_handle(
|
||||
}
|
||||
|
||||
cef_window_handle_t CEF_CALLBACK browser_get_opener_window_handle(
|
||||
struct _cef_browser_t* self)
|
||||
{
|
||||
struct _cef_browser_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -269,8 +256,7 @@ cef_window_handle_t CEF_CALLBACK browser_get_opener_window_handle(
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK browser_is_popup(struct _cef_browser_t* self)
|
||||
{
|
||||
int CEF_CALLBACK browser_is_popup(struct _cef_browser_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -284,8 +270,7 @@ int CEF_CALLBACK browser_is_popup(struct _cef_browser_t* self)
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK browser_has_document(struct _cef_browser_t* self)
|
||||
{
|
||||
int CEF_CALLBACK browser_has_document(struct _cef_browser_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -300,8 +285,7 @@ int CEF_CALLBACK browser_has_document(struct _cef_browser_t* self)
|
||||
}
|
||||
|
||||
struct _cef_client_t* CEF_CALLBACK browser_get_client(
|
||||
struct _cef_browser_t* self)
|
||||
{
|
||||
struct _cef_browser_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -316,8 +300,7 @@ struct _cef_client_t* CEF_CALLBACK browser_get_client(
|
||||
}
|
||||
|
||||
struct _cef_frame_t* CEF_CALLBACK browser_get_main_frame(
|
||||
struct _cef_browser_t* self)
|
||||
{
|
||||
struct _cef_browser_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -332,8 +315,7 @@ struct _cef_frame_t* CEF_CALLBACK browser_get_main_frame(
|
||||
}
|
||||
|
||||
struct _cef_frame_t* CEF_CALLBACK browser_get_focused_frame(
|
||||
struct _cef_browser_t* self)
|
||||
{
|
||||
struct _cef_browser_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -348,8 +330,7 @@ struct _cef_frame_t* CEF_CALLBACK browser_get_focused_frame(
|
||||
}
|
||||
|
||||
struct _cef_frame_t* CEF_CALLBACK browser_get_frame(struct _cef_browser_t* self,
|
||||
const cef_string_t* name)
|
||||
{
|
||||
const cef_string_t* name) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -369,8 +350,7 @@ struct _cef_frame_t* CEF_CALLBACK browser_get_frame(struct _cef_browser_t* self,
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_get_frame_names(struct _cef_browser_t* self,
|
||||
cef_string_list_t names)
|
||||
{
|
||||
cef_string_list_t names) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -395,8 +375,8 @@ void CEF_CALLBACK browser_get_frame_names(struct _cef_browser_t* self,
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_find(struct _cef_browser_t* self, int identifier,
|
||||
const cef_string_t* searchText, int forward, int matchCase, int findNext)
|
||||
{
|
||||
const cef_string_t* searchText, int forward, int matchCase,
|
||||
int findNext) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -417,8 +397,7 @@ void CEF_CALLBACK browser_find(struct _cef_browser_t* self, int identifier,
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_stop_finding(struct _cef_browser_t* self,
|
||||
int clearSelection)
|
||||
{
|
||||
int clearSelection) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -430,8 +409,7 @@ void CEF_CALLBACK browser_stop_finding(struct _cef_browser_t* self,
|
||||
clearSelection?true:false);
|
||||
}
|
||||
|
||||
double CEF_CALLBACK browser_get_zoom_level(struct _cef_browser_t* self)
|
||||
{
|
||||
double CEF_CALLBACK browser_get_zoom_level(struct _cef_browser_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -446,8 +424,7 @@ double CEF_CALLBACK browser_get_zoom_level(struct _cef_browser_t* self)
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_set_zoom_level(struct _cef_browser_t* self,
|
||||
double zoomLevel)
|
||||
{
|
||||
double zoomLevel) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -459,8 +436,7 @@ void CEF_CALLBACK browser_set_zoom_level(struct _cef_browser_t* self,
|
||||
zoomLevel);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_clear_history(struct _cef_browser_t* self)
|
||||
{
|
||||
void CEF_CALLBACK browser_clear_history(struct _cef_browser_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -471,8 +447,7 @@ void CEF_CALLBACK browser_clear_history(struct _cef_browser_t* self)
|
||||
CefBrowserCppToC::Get(self)->ClearHistory();
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_show_dev_tools(struct _cef_browser_t* self)
|
||||
{
|
||||
void CEF_CALLBACK browser_show_dev_tools(struct _cef_browser_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -483,8 +458,7 @@ void CEF_CALLBACK browser_show_dev_tools(struct _cef_browser_t* self)
|
||||
CefBrowserCppToC::Get(self)->ShowDevTools();
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_close_dev_tools(struct _cef_browser_t* self)
|
||||
{
|
||||
void CEF_CALLBACK browser_close_dev_tools(struct _cef_browser_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -496,8 +470,7 @@ void CEF_CALLBACK browser_close_dev_tools(struct _cef_browser_t* self)
|
||||
}
|
||||
|
||||
int CEF_CALLBACK browser_is_window_rendering_disabled(
|
||||
struct _cef_browser_t* self)
|
||||
{
|
||||
struct _cef_browser_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -512,8 +485,7 @@ int CEF_CALLBACK browser_is_window_rendering_disabled(
|
||||
}
|
||||
|
||||
int CEF_CALLBACK browser_get_size(struct _cef_browser_t* self,
|
||||
enum cef_paint_element_type_t type, int* width, int* height)
|
||||
{
|
||||
enum cef_paint_element_type_t type, int* width, int* height) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -551,8 +523,7 @@ int CEF_CALLBACK browser_get_size(struct _cef_browser_t* self,
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_set_size(struct _cef_browser_t* self,
|
||||
enum cef_paint_element_type_t type, int width, int height)
|
||||
{
|
||||
enum cef_paint_element_type_t type, int width, int height) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -566,8 +537,7 @@ void CEF_CALLBACK browser_set_size(struct _cef_browser_t* self,
|
||||
height);
|
||||
}
|
||||
|
||||
int CEF_CALLBACK browser_is_popup_visible(struct _cef_browser_t* self)
|
||||
{
|
||||
int CEF_CALLBACK browser_is_popup_visible(struct _cef_browser_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -581,8 +551,7 @@ int CEF_CALLBACK browser_is_popup_visible(struct _cef_browser_t* self)
|
||||
return _retval;
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_hide_popup(struct _cef_browser_t* self)
|
||||
{
|
||||
void CEF_CALLBACK browser_hide_popup(struct _cef_browser_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -594,8 +563,7 @@ void CEF_CALLBACK browser_hide_popup(struct _cef_browser_t* self)
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_invalidate(struct _cef_browser_t* self,
|
||||
const cef_rect_t* dirtyRect)
|
||||
{
|
||||
const cef_rect_t* dirtyRect) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -615,8 +583,7 @@ void CEF_CALLBACK browser_invalidate(struct _cef_browser_t* self,
|
||||
}
|
||||
|
||||
int CEF_CALLBACK browser_get_image(struct _cef_browser_t* self,
|
||||
enum cef_paint_element_type_t type, int width, int height, void* buffer)
|
||||
{
|
||||
enum cef_paint_element_type_t type, int width, int height, void* buffer) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -640,8 +607,7 @@ int CEF_CALLBACK browser_get_image(struct _cef_browser_t* self,
|
||||
|
||||
void CEF_CALLBACK browser_send_key_event(struct _cef_browser_t* self,
|
||||
enum cef_key_type_t type, int key, int modifiers, int sysChar,
|
||||
int imeChar)
|
||||
{
|
||||
int imeChar) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -659,8 +625,7 @@ void CEF_CALLBACK browser_send_key_event(struct _cef_browser_t* self,
|
||||
|
||||
void CEF_CALLBACK browser_send_mouse_click_event(struct _cef_browser_t* self,
|
||||
int x, int y, enum cef_mouse_button_type_t type, int mouseUp,
|
||||
int clickCount)
|
||||
{
|
||||
int clickCount) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -677,8 +642,7 @@ void CEF_CALLBACK browser_send_mouse_click_event(struct _cef_browser_t* self,
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_send_mouse_move_event(struct _cef_browser_t* self,
|
||||
int x, int y, int mouseLeave)
|
||||
{
|
||||
int x, int y, int mouseLeave) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -693,8 +657,7 @@ void CEF_CALLBACK browser_send_mouse_move_event(struct _cef_browser_t* self,
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_send_mouse_wheel_event(struct _cef_browser_t* self,
|
||||
int x, int y, int delta)
|
||||
{
|
||||
int x, int y, int delta) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -709,8 +672,7 @@ void CEF_CALLBACK browser_send_mouse_wheel_event(struct _cef_browser_t* self,
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_send_focus_event(struct _cef_browser_t* self,
|
||||
int setFocus)
|
||||
{
|
||||
int setFocus) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -722,8 +684,7 @@ void CEF_CALLBACK browser_send_focus_event(struct _cef_browser_t* self,
|
||||
setFocus?true:false);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_send_capture_lost_event(struct _cef_browser_t* self)
|
||||
{
|
||||
void CEF_CALLBACK browser_send_capture_lost_event(struct _cef_browser_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -738,8 +699,7 @@ void CEF_CALLBACK browser_send_capture_lost_event(struct _cef_browser_t* self)
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefBrowserCppToC::CefBrowserCppToC(CefBrowser* cls)
|
||||
: CefCppToC<CefBrowserCppToC, CefBrowser, cef_browser_t>(cls)
|
||||
{
|
||||
: CefCppToC<CefBrowserCppToC, CefBrowser, cef_browser_t>(cls) {
|
||||
struct_.struct_.parent_window_will_close = browser_parent_window_will_close;
|
||||
struct_.struct_.close_browser = browser_close_browser;
|
||||
struct_.struct_.can_go_back = browser_can_go_back;
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _BROWSER_CPPTOC_H
|
||||
#define _BROWSER_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_BROWSER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_BROWSER_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef BUILDING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed DLL-side only")
|
||||
#else // BUILDING_CEF_SHARED
|
||||
#else // BUILDING_CEF_SHARED
|
||||
|
||||
#include "include/cef_browser.h"
|
||||
#include "include/capi/cef_browser_capi.h"
|
||||
@ -28,13 +29,12 @@
|
||||
// Wrap a C++ class with a C structure.
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefBrowserCppToC
|
||||
: public CefCppToC<CefBrowserCppToC, CefBrowser, cef_browser_t>
|
||||
{
|
||||
public:
|
||||
CefBrowserCppToC(CefBrowser* cls);
|
||||
: public CefCppToC<CefBrowserCppToC, CefBrowser, cef_browser_t> {
|
||||
public:
|
||||
explicit CefBrowserCppToC(CefBrowser* cls);
|
||||
virtual ~CefBrowserCppToC() {}
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _BROWSER_CPPTOC_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_BROWSER_CPPTOC_H_
|
||||
|
||||
|
@ -30,8 +30,7 @@
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
struct _cef_life_span_handler_t* CEF_CALLBACK client_get_life_span_handler(
|
||||
struct _cef_client_t* self)
|
||||
{
|
||||
struct _cef_client_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -47,8 +46,7 @@ struct _cef_life_span_handler_t* CEF_CALLBACK client_get_life_span_handler(
|
||||
}
|
||||
|
||||
struct _cef_load_handler_t* CEF_CALLBACK client_get_load_handler(
|
||||
struct _cef_client_t* self)
|
||||
{
|
||||
struct _cef_client_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -64,8 +62,7 @@ struct _cef_load_handler_t* CEF_CALLBACK client_get_load_handler(
|
||||
}
|
||||
|
||||
struct _cef_request_handler_t* CEF_CALLBACK client_get_request_handler(
|
||||
struct _cef_client_t* self)
|
||||
{
|
||||
struct _cef_client_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -81,8 +78,7 @@ struct _cef_request_handler_t* CEF_CALLBACK client_get_request_handler(
|
||||
}
|
||||
|
||||
struct _cef_display_handler_t* CEF_CALLBACK client_get_display_handler(
|
||||
struct _cef_client_t* self)
|
||||
{
|
||||
struct _cef_client_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -98,8 +94,7 @@ struct _cef_display_handler_t* CEF_CALLBACK client_get_display_handler(
|
||||
}
|
||||
|
||||
struct _cef_focus_handler_t* CEF_CALLBACK client_get_focus_handler(
|
||||
struct _cef_client_t* self)
|
||||
{
|
||||
struct _cef_client_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -115,8 +110,7 @@ struct _cef_focus_handler_t* CEF_CALLBACK client_get_focus_handler(
|
||||
}
|
||||
|
||||
struct _cef_keyboard_handler_t* CEF_CALLBACK client_get_keyboard_handler(
|
||||
struct _cef_client_t* self)
|
||||
{
|
||||
struct _cef_client_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -132,8 +126,7 @@ struct _cef_keyboard_handler_t* CEF_CALLBACK client_get_keyboard_handler(
|
||||
}
|
||||
|
||||
struct _cef_menu_handler_t* CEF_CALLBACK client_get_menu_handler(
|
||||
struct _cef_client_t* self)
|
||||
{
|
||||
struct _cef_client_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -149,8 +142,7 @@ struct _cef_menu_handler_t* CEF_CALLBACK client_get_menu_handler(
|
||||
}
|
||||
|
||||
struct _cef_permission_handler_t* CEF_CALLBACK client_get_permission_handler(
|
||||
struct _cef_client_t* self)
|
||||
{
|
||||
struct _cef_client_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -166,8 +158,7 @@ struct _cef_permission_handler_t* CEF_CALLBACK client_get_permission_handler(
|
||||
}
|
||||
|
||||
struct _cef_print_handler_t* CEF_CALLBACK client_get_print_handler(
|
||||
struct _cef_client_t* self)
|
||||
{
|
||||
struct _cef_client_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -183,8 +174,7 @@ struct _cef_print_handler_t* CEF_CALLBACK client_get_print_handler(
|
||||
}
|
||||
|
||||
struct _cef_find_handler_t* CEF_CALLBACK client_get_find_handler(
|
||||
struct _cef_client_t* self)
|
||||
{
|
||||
struct _cef_client_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -200,8 +190,7 @@ struct _cef_find_handler_t* CEF_CALLBACK client_get_find_handler(
|
||||
}
|
||||
|
||||
struct _cef_jsdialog_handler_t* CEF_CALLBACK client_get_jsdialog_handler(
|
||||
struct _cef_client_t* self)
|
||||
{
|
||||
struct _cef_client_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -217,8 +206,7 @@ struct _cef_jsdialog_handler_t* CEF_CALLBACK client_get_jsdialog_handler(
|
||||
}
|
||||
|
||||
struct _cef_v8context_handler_t* CEF_CALLBACK client_get_v8context_handler(
|
||||
struct _cef_client_t* self)
|
||||
{
|
||||
struct _cef_client_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -234,8 +222,7 @@ struct _cef_v8context_handler_t* CEF_CALLBACK client_get_v8context_handler(
|
||||
}
|
||||
|
||||
struct _cef_render_handler_t* CEF_CALLBACK client_get_render_handler(
|
||||
struct _cef_client_t* self)
|
||||
{
|
||||
struct _cef_client_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -251,8 +238,7 @@ struct _cef_render_handler_t* CEF_CALLBACK client_get_render_handler(
|
||||
}
|
||||
|
||||
struct _cef_drag_handler_t* CEF_CALLBACK client_get_drag_handler(
|
||||
struct _cef_client_t* self)
|
||||
{
|
||||
struct _cef_client_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -271,8 +257,7 @@ struct _cef_drag_handler_t* CEF_CALLBACK client_get_drag_handler(
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefClientCppToC::CefClientCppToC(CefClient* cls)
|
||||
: CefCppToC<CefClientCppToC, CefClient, cef_client_t>(cls)
|
||||
{
|
||||
: CefCppToC<CefClientCppToC, CefClient, cef_client_t>(cls) {
|
||||
struct_.struct_.get_life_span_handler = client_get_life_span_handler;
|
||||
struct_.struct_.get_load_handler = client_get_load_handler;
|
||||
struct_.struct_.get_request_handler = client_get_request_handler;
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _CLIENT_CPPTOC_H
|
||||
#define _CLIENT_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_CLIENT_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_CLIENT_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef USING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
|
||||
#else // USING_CEF_SHARED
|
||||
#else // USING_CEF_SHARED
|
||||
|
||||
#include "include/cef_client.h"
|
||||
#include "include/capi/cef_client_capi.h"
|
||||
@ -24,13 +25,12 @@
|
||||
// Wrap a C++ class with a C structure.
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefClientCppToC
|
||||
: public CefCppToC<CefClientCppToC, CefClient, cef_client_t>
|
||||
{
|
||||
public:
|
||||
CefClientCppToC(CefClient* cls);
|
||||
: public CefCppToC<CefClientCppToC, CefClient, cef_client_t> {
|
||||
public:
|
||||
explicit CefClientCppToC(CefClient* cls);
|
||||
virtual ~CefClientCppToC() {}
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _CLIENT_CPPTOC_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_CLIENT_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -16,8 +16,7 @@
|
||||
|
||||
// GLOBAL FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
CEF_EXPORT cef_command_line_t* cef_command_line_create()
|
||||
{
|
||||
CEF_EXPORT cef_command_line_t* cef_command_line_create() {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
@ -31,8 +30,7 @@ CEF_EXPORT cef_command_line_t* cef_command_line_create()
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
void CEF_CALLBACK command_line_init_from_argv(struct _cef_command_line_t* self,
|
||||
int argc, const char* const* argv)
|
||||
{
|
||||
int argc, const char* const* argv) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -50,8 +48,7 @@ void CEF_CALLBACK command_line_init_from_argv(struct _cef_command_line_t* self,
|
||||
}
|
||||
|
||||
void CEF_CALLBACK command_line_init_from_string(
|
||||
struct _cef_command_line_t* self, const cef_string_t* command_line)
|
||||
{
|
||||
struct _cef_command_line_t* self, const cef_string_t* command_line) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -68,8 +65,7 @@ void CEF_CALLBACK command_line_init_from_string(
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK command_line_get_command_line_string(
|
||||
struct _cef_command_line_t* self)
|
||||
{
|
||||
struct _cef_command_line_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -84,8 +80,7 @@ cef_string_userfree_t CEF_CALLBACK command_line_get_command_line_string(
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK command_line_get_program(
|
||||
struct _cef_command_line_t* self)
|
||||
{
|
||||
struct _cef_command_line_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -100,8 +95,7 @@ cef_string_userfree_t CEF_CALLBACK command_line_get_program(
|
||||
}
|
||||
|
||||
void CEF_CALLBACK command_line_set_program(struct _cef_command_line_t* self,
|
||||
const cef_string_t* program)
|
||||
{
|
||||
const cef_string_t* program) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -117,8 +111,7 @@ void CEF_CALLBACK command_line_set_program(struct _cef_command_line_t* self,
|
||||
CefString(program));
|
||||
}
|
||||
|
||||
int CEF_CALLBACK command_line_has_switches(struct _cef_command_line_t* self)
|
||||
{
|
||||
int CEF_CALLBACK command_line_has_switches(struct _cef_command_line_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -133,8 +126,7 @@ int CEF_CALLBACK command_line_has_switches(struct _cef_command_line_t* self)
|
||||
}
|
||||
|
||||
int CEF_CALLBACK command_line_has_switch(struct _cef_command_line_t* self,
|
||||
const cef_string_t* name)
|
||||
{
|
||||
const cef_string_t* name) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -154,8 +146,7 @@ int CEF_CALLBACK command_line_has_switch(struct _cef_command_line_t* self,
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK command_line_get_switch_value(
|
||||
struct _cef_command_line_t* self, const cef_string_t* name)
|
||||
{
|
||||
struct _cef_command_line_t* self, const cef_string_t* name) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -175,8 +166,7 @@ cef_string_userfree_t CEF_CALLBACK command_line_get_switch_value(
|
||||
}
|
||||
|
||||
void CEF_CALLBACK command_line_get_switches(struct _cef_command_line_t* self,
|
||||
cef_string_map_t switches)
|
||||
{
|
||||
cef_string_map_t switches) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -188,7 +178,7 @@ void CEF_CALLBACK command_line_get_switches(struct _cef_command_line_t* self,
|
||||
return;
|
||||
|
||||
// Translate param: switches; type: string_map_single_byref
|
||||
std::map<CefString,CefString> switchesMap;
|
||||
std::map<CefString, CefString> switchesMap;
|
||||
transfer_string_map_contents(switches, switchesMap);
|
||||
|
||||
// Execute
|
||||
@ -201,8 +191,7 @@ void CEF_CALLBACK command_line_get_switches(struct _cef_command_line_t* self,
|
||||
}
|
||||
|
||||
void CEF_CALLBACK command_line_append_switch(struct _cef_command_line_t* self,
|
||||
const cef_string_t* name)
|
||||
{
|
||||
const cef_string_t* name) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -220,8 +209,7 @@ void CEF_CALLBACK command_line_append_switch(struct _cef_command_line_t* self,
|
||||
|
||||
void CEF_CALLBACK command_line_append_switch_with_value(
|
||||
struct _cef_command_line_t* self, const cef_string_t* name,
|
||||
const cef_string_t* value)
|
||||
{
|
||||
const cef_string_t* value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -242,8 +230,7 @@ void CEF_CALLBACK command_line_append_switch_with_value(
|
||||
CefString(value));
|
||||
}
|
||||
|
||||
int CEF_CALLBACK command_line_has_arguments(struct _cef_command_line_t* self)
|
||||
{
|
||||
int CEF_CALLBACK command_line_has_arguments(struct _cef_command_line_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -258,8 +245,7 @@ int CEF_CALLBACK command_line_has_arguments(struct _cef_command_line_t* self)
|
||||
}
|
||||
|
||||
void CEF_CALLBACK command_line_get_arguments(struct _cef_command_line_t* self,
|
||||
cef_string_list_t arguments)
|
||||
{
|
||||
cef_string_list_t arguments) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -284,8 +270,7 @@ void CEF_CALLBACK command_line_get_arguments(struct _cef_command_line_t* self,
|
||||
}
|
||||
|
||||
void CEF_CALLBACK command_line_append_argument(struct _cef_command_line_t* self,
|
||||
const cef_string_t* argument)
|
||||
{
|
||||
const cef_string_t* argument) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -305,8 +290,7 @@ void CEF_CALLBACK command_line_append_argument(struct _cef_command_line_t* self,
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefCommandLineCppToC::CefCommandLineCppToC(CefCommandLine* cls)
|
||||
: CefCppToC<CefCommandLineCppToC, CefCommandLine, cef_command_line_t>(cls)
|
||||
{
|
||||
: CefCppToC<CefCommandLineCppToC, CefCommandLine, cef_command_line_t>(cls) {
|
||||
struct_.struct_.init_from_argv = command_line_init_from_argv;
|
||||
struct_.struct_.init_from_string = command_line_init_from_string;
|
||||
struct_.struct_.get_command_line_string =
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _COMMANDLINE_CPPTOC_H
|
||||
#define _COMMANDLINE_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_COMMAND_LINE_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_COMMAND_LINE_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef BUILDING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed DLL-side only")
|
||||
#else // BUILDING_CEF_SHARED
|
||||
#else // BUILDING_CEF_SHARED
|
||||
|
||||
#include "include/cef_command_line.h"
|
||||
#include "include/capi/cef_command_line_capi.h"
|
||||
@ -24,13 +25,13 @@
|
||||
// Wrap a C++ class with a C structure.
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefCommandLineCppToC
|
||||
: public CefCppToC<CefCommandLineCppToC, CefCommandLine, cef_command_line_t>
|
||||
{
|
||||
public:
|
||||
CefCommandLineCppToC(CefCommandLine* cls);
|
||||
: public CefCppToC<CefCommandLineCppToC, CefCommandLine,
|
||||
cef_command_line_t> {
|
||||
public:
|
||||
explicit CefCommandLineCppToC(CefCommandLine* cls);
|
||||
virtual ~CefCommandLineCppToC() {}
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _COMMANDLINE_CPPTOC_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_COMMAND_LINE_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -18,8 +18,7 @@
|
||||
|
||||
void CEF_CALLBACK content_filter_process_data(
|
||||
struct _cef_content_filter_t* self, const void* data, int data_size,
|
||||
struct _cef_stream_reader_t** substitute_data)
|
||||
{
|
||||
struct _cef_stream_reader_t** substitute_data) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -59,8 +58,7 @@ void CEF_CALLBACK content_filter_process_data(
|
||||
}
|
||||
|
||||
void CEF_CALLBACK content_filter_drain(struct _cef_content_filter_t* self,
|
||||
struct _cef_stream_reader_t** remainder)
|
||||
{
|
||||
struct _cef_stream_reader_t** remainder) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -98,8 +96,7 @@ void CEF_CALLBACK content_filter_drain(struct _cef_content_filter_t* self,
|
||||
|
||||
CefContentFilterCppToC::CefContentFilterCppToC(CefContentFilter* cls)
|
||||
: CefCppToC<CefContentFilterCppToC, CefContentFilter, cef_content_filter_t>(
|
||||
cls)
|
||||
{
|
||||
cls) {
|
||||
struct_.struct_.process_data = content_filter_process_data;
|
||||
struct_.struct_.drain = content_filter_drain;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _CONTENTFILTER_CPPTOC_H
|
||||
#define _CONTENTFILTER_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_CONTENT_FILTER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_CONTENT_FILTER_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef USING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
|
||||
#else // USING_CEF_SHARED
|
||||
#else // USING_CEF_SHARED
|
||||
|
||||
#include "include/cef_content_filter.h"
|
||||
#include "include/capi/cef_content_filter_capi.h"
|
||||
@ -27,13 +28,12 @@
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefContentFilterCppToC
|
||||
: public CefCppToC<CefContentFilterCppToC, CefContentFilter,
|
||||
cef_content_filter_t>
|
||||
{
|
||||
public:
|
||||
CefContentFilterCppToC(CefContentFilter* cls);
|
||||
cef_content_filter_t> {
|
||||
public:
|
||||
explicit CefContentFilterCppToC(CefContentFilter* cls);
|
||||
virtual ~CefContentFilterCppToC() {}
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _CONTENTFILTER_CPPTOC_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_CONTENT_FILTER_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -17,8 +17,7 @@
|
||||
|
||||
int CEF_CALLBACK cookie_visitor_visit(struct _cef_cookie_visitor_t* self,
|
||||
const struct _cef_cookie_t* cookie, int count, int total,
|
||||
int* deleteCookie)
|
||||
{
|
||||
int* deleteCookie) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -60,8 +59,7 @@ int CEF_CALLBACK cookie_visitor_visit(struct _cef_cookie_visitor_t* self,
|
||||
|
||||
CefCookieVisitorCppToC::CefCookieVisitorCppToC(CefCookieVisitor* cls)
|
||||
: CefCppToC<CefCookieVisitorCppToC, CefCookieVisitor, cef_cookie_visitor_t>(
|
||||
cls)
|
||||
{
|
||||
cls) {
|
||||
struct_.struct_.visit = cookie_visitor_visit;
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _COOKIEVISITOR_CPPTOC_H
|
||||
#define _COOKIEVISITOR_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_COOKIE_VISITOR_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_COOKIE_VISITOR_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef USING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
|
||||
#else // USING_CEF_SHARED
|
||||
#else // USING_CEF_SHARED
|
||||
|
||||
#include "include/cef_cookie.h"
|
||||
#include "include/capi/cef_cookie_capi.h"
|
||||
@ -25,13 +26,12 @@
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefCookieVisitorCppToC
|
||||
: public CefCppToC<CefCookieVisitorCppToC, CefCookieVisitor,
|
||||
cef_cookie_visitor_t>
|
||||
{
|
||||
public:
|
||||
CefCookieVisitorCppToC(CefCookieVisitor* cls);
|
||||
cef_cookie_visitor_t> {
|
||||
public:
|
||||
explicit CefCookieVisitorCppToC(CefCookieVisitor* cls);
|
||||
virtual ~CefCookieVisitorCppToC() {}
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _COOKIEVISITOR_CPPTOC_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_COOKIE_VISITOR_CPPTOC_H_
|
||||
|
||||
|
@ -2,8 +2,9 @@
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
|
||||
#ifndef _CPPTOC_H
|
||||
#define _CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#include "include/cef_base.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
@ -14,22 +15,19 @@
|
||||
// implementation exists on this side of the DLL boundary but will have methods
|
||||
// called from the other side of the DLL boundary.
|
||||
template <class ClassName, class BaseName, class StructName>
|
||||
class CefCppToC : public CefBase
|
||||
{
|
||||
public:
|
||||
class CefCppToC : public CefBase {
|
||||
public:
|
||||
// Structure representation with pointer to the C++ class.
|
||||
struct Struct
|
||||
{
|
||||
struct Struct {
|
||||
StructName struct_;
|
||||
CefCppToC<ClassName,BaseName,StructName>* class_;
|
||||
CefCppToC<ClassName, BaseName, StructName>* class_;
|
||||
};
|
||||
|
||||
|
||||
// Use this method to retrieve the underlying class instance from our
|
||||
// own structure when the structure is passed as the required first
|
||||
// parameter of a C API function call. No explicit reference counting
|
||||
// is done in this case.
|
||||
static CefRefPtr<BaseName> Get(StructName* s)
|
||||
{
|
||||
static CefRefPtr<BaseName> Get(StructName* s) {
|
||||
DCHECK(s);
|
||||
|
||||
// Cast our structure to the wrapper structure type.
|
||||
@ -37,11 +35,10 @@ public:
|
||||
// Return the underlying object instance.
|
||||
return wrapperStruct->class_->GetClass();
|
||||
}
|
||||
|
||||
|
||||
// Use this method to create a wrapper structure for passing our class
|
||||
// instance to the other side.
|
||||
static StructName* Wrap(CefRefPtr<BaseName> c)
|
||||
{
|
||||
static StructName* Wrap(CefRefPtr<BaseName> c) {
|
||||
if (!c.get())
|
||||
return NULL;
|
||||
|
||||
@ -56,8 +53,7 @@ public:
|
||||
|
||||
// Use this method to retrieve the underlying class instance when receiving
|
||||
// our wrapper structure back from the other side.
|
||||
static CefRefPtr<BaseName> Unwrap(StructName* s)
|
||||
{
|
||||
static CefRefPtr<BaseName> Unwrap(StructName* s) {
|
||||
if (!s)
|
||||
return NULL;
|
||||
|
||||
@ -72,13 +68,12 @@ public:
|
||||
return objectPtr;
|
||||
}
|
||||
|
||||
CefCppToC(BaseName* cls)
|
||||
: class_(cls)
|
||||
{
|
||||
explicit CefCppToC(BaseName* cls)
|
||||
: class_(cls) {
|
||||
DCHECK(cls);
|
||||
|
||||
struct_.class_ = this;
|
||||
|
||||
|
||||
// zero the underlying structure and set base members
|
||||
memset(&struct_.struct_, 0, sizeof(StructName));
|
||||
struct_.struct_.base.size = sizeof(StructName);
|
||||
@ -90,8 +85,7 @@ public:
|
||||
CefAtomicIncrement(&DebugObjCt);
|
||||
#endif
|
||||
}
|
||||
virtual ~CefCppToC()
|
||||
{
|
||||
virtual ~CefCppToC() {
|
||||
#ifndef NDEBUG
|
||||
CefAtomicDecrement(&DebugObjCt);
|
||||
#endif
|
||||
@ -106,13 +100,11 @@ public:
|
||||
|
||||
// CefBase methods increment/decrement reference counts on both this object
|
||||
// and the underlying wrapper class.
|
||||
int AddRef()
|
||||
{
|
||||
int AddRef() {
|
||||
UnderlyingAddRef();
|
||||
return refct_.AddRef();
|
||||
}
|
||||
int Release()
|
||||
{
|
||||
int Release() {
|
||||
UnderlyingRelease();
|
||||
int retval = refct_.Release();
|
||||
if (retval == 0)
|
||||
@ -128,44 +120,41 @@ public:
|
||||
|
||||
#ifndef NDEBUG
|
||||
// Simple tracking of allocated objects.
|
||||
static long DebugObjCt;
|
||||
static long DebugObjCt; // NOLINT(runtime/int)
|
||||
#endif
|
||||
|
||||
private:
|
||||
static int CEF_CALLBACK struct_add_ref(struct _cef_base_t* base)
|
||||
{
|
||||
private:
|
||||
static int CEF_CALLBACK struct_add_ref(struct _cef_base_t* base) {
|
||||
DCHECK(base);
|
||||
if(!base)
|
||||
if (!base)
|
||||
return 0;
|
||||
|
||||
Struct* impl = reinterpret_cast<Struct*>(base);
|
||||
return impl->class_->AddRef();
|
||||
}
|
||||
|
||||
static int CEF_CALLBACK struct_release(struct _cef_base_t* base)
|
||||
{
|
||||
static int CEF_CALLBACK struct_release(struct _cef_base_t* base) {
|
||||
DCHECK(base);
|
||||
if(!base)
|
||||
if (!base)
|
||||
return 0;
|
||||
|
||||
Struct* impl = reinterpret_cast<Struct*>(base);
|
||||
return impl->class_->Release();
|
||||
}
|
||||
|
||||
static int CEF_CALLBACK struct_get_refct(struct _cef_base_t* base)
|
||||
{
|
||||
static int CEF_CALLBACK struct_get_refct(struct _cef_base_t* base) {
|
||||
DCHECK(base);
|
||||
if(!base)
|
||||
if (!base)
|
||||
return 0;
|
||||
|
||||
Struct* impl = reinterpret_cast<Struct*>(base);
|
||||
return impl->class_->GetRefCt();
|
||||
}
|
||||
|
||||
protected:
|
||||
protected:
|
||||
CefRefCount refct_;
|
||||
Struct struct_;
|
||||
BaseName* class_;
|
||||
};
|
||||
|
||||
#endif // _CPPTOC_H
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_CPPTOC_H_
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -19,8 +19,7 @@
|
||||
|
||||
void CEF_CALLBACK display_handler_on_nav_state_change(
|
||||
struct _cef_display_handler_t* self, cef_browser_t* browser, int canGoBack,
|
||||
int canGoForward)
|
||||
{
|
||||
int canGoForward) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -40,8 +39,7 @@ void CEF_CALLBACK display_handler_on_nav_state_change(
|
||||
|
||||
void CEF_CALLBACK display_handler_on_address_change(
|
||||
struct _cef_display_handler_t* self, cef_browser_t* browser,
|
||||
struct _cef_frame_t* frame, const cef_string_t* url)
|
||||
{
|
||||
struct _cef_frame_t* frame, const cef_string_t* url) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -69,8 +67,7 @@ void CEF_CALLBACK display_handler_on_address_change(
|
||||
|
||||
void CEF_CALLBACK display_handler_on_contents_size_change(
|
||||
struct _cef_display_handler_t* self, cef_browser_t* browser,
|
||||
struct _cef_frame_t* frame, int width, int height)
|
||||
{
|
||||
struct _cef_frame_t* frame, int width, int height) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -95,8 +92,7 @@ void CEF_CALLBACK display_handler_on_contents_size_change(
|
||||
|
||||
void CEF_CALLBACK display_handler_on_title_change(
|
||||
struct _cef_display_handler_t* self, cef_browser_t* browser,
|
||||
const cef_string_t* title)
|
||||
{
|
||||
const cef_string_t* title) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -115,8 +111,7 @@ void CEF_CALLBACK display_handler_on_title_change(
|
||||
}
|
||||
|
||||
int CEF_CALLBACK display_handler_on_tooltip(struct _cef_display_handler_t* self,
|
||||
cef_browser_t* browser, cef_string_t* text)
|
||||
{
|
||||
cef_browser_t* browser, cef_string_t* text) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -142,8 +137,7 @@ int CEF_CALLBACK display_handler_on_tooltip(struct _cef_display_handler_t* self,
|
||||
|
||||
void CEF_CALLBACK display_handler_on_status_message(
|
||||
struct _cef_display_handler_t* self, cef_browser_t* browser,
|
||||
const cef_string_t* value, enum cef_handler_statustype_t type)
|
||||
{
|
||||
const cef_string_t* value, enum cef_handler_statustype_t type) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -164,8 +158,7 @@ void CEF_CALLBACK display_handler_on_status_message(
|
||||
|
||||
int CEF_CALLBACK display_handler_on_console_message(
|
||||
struct _cef_display_handler_t* self, cef_browser_t* browser,
|
||||
const cef_string_t* message, const cef_string_t* source, int line)
|
||||
{
|
||||
const cef_string_t* message, const cef_string_t* source, int line) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -193,8 +186,7 @@ int CEF_CALLBACK display_handler_on_console_message(
|
||||
|
||||
CefDisplayHandlerCppToC::CefDisplayHandlerCppToC(CefDisplayHandler* cls)
|
||||
: CefCppToC<CefDisplayHandlerCppToC, CefDisplayHandler,
|
||||
cef_display_handler_t>(cls)
|
||||
{
|
||||
cef_display_handler_t>(cls) {
|
||||
struct_.struct_.on_nav_state_change = display_handler_on_nav_state_change;
|
||||
struct_.struct_.on_address_change = display_handler_on_address_change;
|
||||
struct_.struct_.on_contents_size_change =
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _DISPLAYHANDLER_CPPTOC_H
|
||||
#define _DISPLAYHANDLER_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_DISPLAY_HANDLER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_DISPLAY_HANDLER_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef USING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
|
||||
#else // USING_CEF_SHARED
|
||||
#else // USING_CEF_SHARED
|
||||
|
||||
#include "include/cef_display_handler.h"
|
||||
#include "include/capi/cef_display_handler_capi.h"
|
||||
@ -29,13 +30,12 @@
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefDisplayHandlerCppToC
|
||||
: public CefCppToC<CefDisplayHandlerCppToC, CefDisplayHandler,
|
||||
cef_display_handler_t>
|
||||
{
|
||||
public:
|
||||
CefDisplayHandlerCppToC(CefDisplayHandler* cls);
|
||||
cef_display_handler_t> {
|
||||
public:
|
||||
explicit CefDisplayHandlerCppToC(CefDisplayHandler* cls);
|
||||
virtual ~CefDisplayHandlerCppToC() {}
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _DISPLAYHANDLER_CPPTOC_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_DISPLAY_HANDLER_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -17,8 +17,7 @@
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
enum cef_dom_document_type_t CEF_CALLBACK domdocument_get_type(
|
||||
struct _cef_domdocument_t* self)
|
||||
{
|
||||
struct _cef_domdocument_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -33,8 +32,7 @@ enum cef_dom_document_type_t CEF_CALLBACK domdocument_get_type(
|
||||
}
|
||||
|
||||
struct _cef_domnode_t* CEF_CALLBACK domdocument_get_document(
|
||||
struct _cef_domdocument_t* self)
|
||||
{
|
||||
struct _cef_domdocument_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -50,8 +48,7 @@ struct _cef_domnode_t* CEF_CALLBACK domdocument_get_document(
|
||||
}
|
||||
|
||||
struct _cef_domnode_t* CEF_CALLBACK domdocument_get_body(
|
||||
struct _cef_domdocument_t* self)
|
||||
{
|
||||
struct _cef_domdocument_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -66,8 +63,7 @@ struct _cef_domnode_t* CEF_CALLBACK domdocument_get_body(
|
||||
}
|
||||
|
||||
struct _cef_domnode_t* CEF_CALLBACK domdocument_get_head(
|
||||
struct _cef_domdocument_t* self)
|
||||
{
|
||||
struct _cef_domdocument_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -82,8 +78,7 @@ struct _cef_domnode_t* CEF_CALLBACK domdocument_get_head(
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK domdocument_get_title(
|
||||
struct _cef_domdocument_t* self)
|
||||
{
|
||||
struct _cef_domdocument_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -98,8 +93,7 @@ cef_string_userfree_t CEF_CALLBACK domdocument_get_title(
|
||||
}
|
||||
|
||||
struct _cef_domnode_t* CEF_CALLBACK domdocument_get_element_by_id(
|
||||
struct _cef_domdocument_t* self, const cef_string_t* id)
|
||||
{
|
||||
struct _cef_domdocument_t* self, const cef_string_t* id) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -120,8 +114,7 @@ struct _cef_domnode_t* CEF_CALLBACK domdocument_get_element_by_id(
|
||||
}
|
||||
|
||||
struct _cef_domnode_t* CEF_CALLBACK domdocument_get_focused_node(
|
||||
struct _cef_domdocument_t* self)
|
||||
{
|
||||
struct _cef_domdocument_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -136,8 +129,7 @@ struct _cef_domnode_t* CEF_CALLBACK domdocument_get_focused_node(
|
||||
return CefDOMNodeCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
int CEF_CALLBACK domdocument_has_selection(struct _cef_domdocument_t* self)
|
||||
{
|
||||
int CEF_CALLBACK domdocument_has_selection(struct _cef_domdocument_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -152,8 +144,7 @@ int CEF_CALLBACK domdocument_has_selection(struct _cef_domdocument_t* self)
|
||||
}
|
||||
|
||||
struct _cef_domnode_t* CEF_CALLBACK domdocument_get_selection_start_node(
|
||||
struct _cef_domdocument_t* self)
|
||||
{
|
||||
struct _cef_domdocument_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -169,8 +160,7 @@ struct _cef_domnode_t* CEF_CALLBACK domdocument_get_selection_start_node(
|
||||
}
|
||||
|
||||
int CEF_CALLBACK domdocument_get_selection_start_offset(
|
||||
struct _cef_domdocument_t* self)
|
||||
{
|
||||
struct _cef_domdocument_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -185,8 +175,7 @@ int CEF_CALLBACK domdocument_get_selection_start_offset(
|
||||
}
|
||||
|
||||
struct _cef_domnode_t* CEF_CALLBACK domdocument_get_selection_end_node(
|
||||
struct _cef_domdocument_t* self)
|
||||
{
|
||||
struct _cef_domdocument_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -202,8 +191,7 @@ struct _cef_domnode_t* CEF_CALLBACK domdocument_get_selection_end_node(
|
||||
}
|
||||
|
||||
int CEF_CALLBACK domdocument_get_selection_end_offset(
|
||||
struct _cef_domdocument_t* self)
|
||||
{
|
||||
struct _cef_domdocument_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -218,8 +206,7 @@ int CEF_CALLBACK domdocument_get_selection_end_offset(
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK domdocument_get_selection_as_markup(
|
||||
struct _cef_domdocument_t* self)
|
||||
{
|
||||
struct _cef_domdocument_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -234,8 +221,7 @@ cef_string_userfree_t CEF_CALLBACK domdocument_get_selection_as_markup(
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK domdocument_get_selection_as_text(
|
||||
struct _cef_domdocument_t* self)
|
||||
{
|
||||
struct _cef_domdocument_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -250,8 +236,7 @@ cef_string_userfree_t CEF_CALLBACK domdocument_get_selection_as_text(
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK domdocument_get_base_url(
|
||||
struct _cef_domdocument_t* self)
|
||||
{
|
||||
struct _cef_domdocument_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -266,8 +251,7 @@ cef_string_userfree_t CEF_CALLBACK domdocument_get_base_url(
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK domdocument_get_complete_url(
|
||||
struct _cef_domdocument_t* self, const cef_string_t* partialURL)
|
||||
{
|
||||
struct _cef_domdocument_t* self, const cef_string_t* partialURL) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -290,8 +274,7 @@ cef_string_userfree_t CEF_CALLBACK domdocument_get_complete_url(
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefDOMDocumentCppToC::CefDOMDocumentCppToC(CefDOMDocument* cls)
|
||||
: CefCppToC<CefDOMDocumentCppToC, CefDOMDocument, cef_domdocument_t>(cls)
|
||||
{
|
||||
: CefCppToC<CefDOMDocumentCppToC, CefDOMDocument, cef_domdocument_t>(cls) {
|
||||
struct_.struct_.get_type = domdocument_get_type;
|
||||
struct_.struct_.get_document = domdocument_get_document;
|
||||
struct_.struct_.get_body = domdocument_get_body;
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _DOMDOCUMENT_CPPTOC_H
|
||||
#define _DOMDOCUMENT_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_DOMDOCUMENT_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_DOMDOCUMENT_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef BUILDING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed DLL-side only")
|
||||
#else // BUILDING_CEF_SHARED
|
||||
#else // BUILDING_CEF_SHARED
|
||||
|
||||
#include "include/cef_dom.h"
|
||||
#include "include/capi/cef_dom_capi.h"
|
||||
@ -24,13 +25,13 @@
|
||||
// Wrap a C++ class with a C structure.
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefDOMDocumentCppToC
|
||||
: public CefCppToC<CefDOMDocumentCppToC, CefDOMDocument, cef_domdocument_t>
|
||||
{
|
||||
public:
|
||||
CefDOMDocumentCppToC(CefDOMDocument* cls);
|
||||
: public CefCppToC<CefDOMDocumentCppToC, CefDOMDocument,
|
||||
cef_domdocument_t> {
|
||||
public:
|
||||
explicit CefDOMDocumentCppToC(CefDOMDocument* cls);
|
||||
virtual ~CefDOMDocumentCppToC() {}
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _DOMDOCUMENT_CPPTOC_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_DOMDOCUMENT_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -18,8 +18,7 @@
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK domevent_get_type(
|
||||
struct _cef_domevent_t* self)
|
||||
{
|
||||
struct _cef_domevent_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -34,8 +33,7 @@ cef_string_userfree_t CEF_CALLBACK domevent_get_type(
|
||||
}
|
||||
|
||||
enum cef_dom_event_category_t CEF_CALLBACK domevent_get_category(
|
||||
struct _cef_domevent_t* self)
|
||||
{
|
||||
struct _cef_domevent_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -51,8 +49,7 @@ enum cef_dom_event_category_t CEF_CALLBACK domevent_get_category(
|
||||
}
|
||||
|
||||
enum cef_dom_event_phase_t CEF_CALLBACK domevent_get_phase(
|
||||
struct _cef_domevent_t* self)
|
||||
{
|
||||
struct _cef_domevent_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -66,8 +63,7 @@ enum cef_dom_event_phase_t CEF_CALLBACK domevent_get_phase(
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK domevent_can_bubble(struct _cef_domevent_t* self)
|
||||
{
|
||||
int CEF_CALLBACK domevent_can_bubble(struct _cef_domevent_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -81,8 +77,7 @@ int CEF_CALLBACK domevent_can_bubble(struct _cef_domevent_t* self)
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK domevent_can_cancel(struct _cef_domevent_t* self)
|
||||
{
|
||||
int CEF_CALLBACK domevent_can_cancel(struct _cef_domevent_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -97,8 +92,7 @@ int CEF_CALLBACK domevent_can_cancel(struct _cef_domevent_t* self)
|
||||
}
|
||||
|
||||
cef_domdocument_t* CEF_CALLBACK domevent_get_document(
|
||||
struct _cef_domevent_t* self)
|
||||
{
|
||||
struct _cef_domevent_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -113,8 +107,7 @@ cef_domdocument_t* CEF_CALLBACK domevent_get_document(
|
||||
return CefDOMDocumentCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
cef_domnode_t* CEF_CALLBACK domevent_get_target(struct _cef_domevent_t* self)
|
||||
{
|
||||
cef_domnode_t* CEF_CALLBACK domevent_get_target(struct _cef_domevent_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -129,8 +122,7 @@ cef_domnode_t* CEF_CALLBACK domevent_get_target(struct _cef_domevent_t* self)
|
||||
}
|
||||
|
||||
cef_domnode_t* CEF_CALLBACK domevent_get_current_target(
|
||||
struct _cef_domevent_t* self)
|
||||
{
|
||||
struct _cef_domevent_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -149,8 +141,7 @@ cef_domnode_t* CEF_CALLBACK domevent_get_current_target(
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefDOMEventCppToC::CefDOMEventCppToC(CefDOMEvent* cls)
|
||||
: CefCppToC<CefDOMEventCppToC, CefDOMEvent, cef_domevent_t>(cls)
|
||||
{
|
||||
: CefCppToC<CefDOMEventCppToC, CefDOMEvent, cef_domevent_t>(cls) {
|
||||
struct_.struct_.get_type = domevent_get_type;
|
||||
struct_.struct_.get_category = domevent_get_category;
|
||||
struct_.struct_.get_phase = domevent_get_phase;
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _DOMEVENT_CPPTOC_H
|
||||
#define _DOMEVENT_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_DOMEVENT_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_DOMEVENT_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef BUILDING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed DLL-side only")
|
||||
#else // BUILDING_CEF_SHARED
|
||||
#else // BUILDING_CEF_SHARED
|
||||
|
||||
#include "include/cef_dom.h"
|
||||
#include "include/capi/cef_dom_capi.h"
|
||||
@ -24,13 +25,12 @@
|
||||
// Wrap a C++ class with a C structure.
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefDOMEventCppToC
|
||||
: public CefCppToC<CefDOMEventCppToC, CefDOMEvent, cef_domevent_t>
|
||||
{
|
||||
public:
|
||||
CefDOMEventCppToC(CefDOMEvent* cls);
|
||||
: public CefCppToC<CefDOMEventCppToC, CefDOMEvent, cef_domevent_t> {
|
||||
public:
|
||||
explicit CefDOMEventCppToC(CefDOMEvent* cls);
|
||||
virtual ~CefDOMEventCppToC() {}
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _DOMEVENT_CPPTOC_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_DOMEVENT_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -17,8 +17,7 @@
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
void CEF_CALLBACK domevent_listener_handle_event(
|
||||
struct _cef_domevent_listener_t* self, cef_domevent_t* event)
|
||||
{
|
||||
struct _cef_domevent_listener_t* self, cef_domevent_t* event) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -39,8 +38,7 @@ void CEF_CALLBACK domevent_listener_handle_event(
|
||||
|
||||
CefDOMEventListenerCppToC::CefDOMEventListenerCppToC(CefDOMEventListener* cls)
|
||||
: CefCppToC<CefDOMEventListenerCppToC, CefDOMEventListener,
|
||||
cef_domevent_listener_t>(cls)
|
||||
{
|
||||
cef_domevent_listener_t>(cls) {
|
||||
struct_.struct_.handle_event = domevent_listener_handle_event;
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _DOMEVENTLISTENER_CPPTOC_H
|
||||
#define _DOMEVENTLISTENER_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_DOMEVENT_LISTENER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_DOMEVENT_LISTENER_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef USING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
|
||||
#else // USING_CEF_SHARED
|
||||
#else // USING_CEF_SHARED
|
||||
|
||||
#include "include/cef_dom.h"
|
||||
#include "include/capi/cef_dom_capi.h"
|
||||
@ -25,13 +26,12 @@
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefDOMEventListenerCppToC
|
||||
: public CefCppToC<CefDOMEventListenerCppToC, CefDOMEventListener,
|
||||
cef_domevent_listener_t>
|
||||
{
|
||||
public:
|
||||
CefDOMEventListenerCppToC(CefDOMEventListener* cls);
|
||||
cef_domevent_listener_t> {
|
||||
public:
|
||||
explicit CefDOMEventListenerCppToC(CefDOMEventListener* cls);
|
||||
virtual ~CefDOMEventListenerCppToC() {}
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _DOMEVENTLISTENER_CPPTOC_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_DOMEVENT_LISTENER_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -19,8 +19,7 @@
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
enum cef_dom_node_type_t CEF_CALLBACK domnode_get_type(
|
||||
struct _cef_domnode_t* self)
|
||||
{
|
||||
struct _cef_domnode_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -34,8 +33,7 @@ enum cef_dom_node_type_t CEF_CALLBACK domnode_get_type(
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK domnode_is_text(struct _cef_domnode_t* self)
|
||||
{
|
||||
int CEF_CALLBACK domnode_is_text(struct _cef_domnode_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -49,8 +47,7 @@ int CEF_CALLBACK domnode_is_text(struct _cef_domnode_t* self)
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK domnode_is_element(struct _cef_domnode_t* self)
|
||||
{
|
||||
int CEF_CALLBACK domnode_is_element(struct _cef_domnode_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -64,8 +61,7 @@ int CEF_CALLBACK domnode_is_element(struct _cef_domnode_t* self)
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK domnode_is_form_control_element(struct _cef_domnode_t* self)
|
||||
{
|
||||
int CEF_CALLBACK domnode_is_form_control_element(struct _cef_domnode_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -80,8 +76,7 @@ int CEF_CALLBACK domnode_is_form_control_element(struct _cef_domnode_t* self)
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK domnode_get_form_control_element_type(
|
||||
struct _cef_domnode_t* self)
|
||||
{
|
||||
struct _cef_domnode_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -96,8 +91,7 @@ cef_string_userfree_t CEF_CALLBACK domnode_get_form_control_element_type(
|
||||
}
|
||||
|
||||
int CEF_CALLBACK domnode_is_same(struct _cef_domnode_t* self,
|
||||
struct _cef_domnode_t* that)
|
||||
{
|
||||
struct _cef_domnode_t* that) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -116,8 +110,8 @@ int CEF_CALLBACK domnode_is_same(struct _cef_domnode_t* self,
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK domnode_get_name(struct _cef_domnode_t* self)
|
||||
{
|
||||
cef_string_userfree_t CEF_CALLBACK domnode_get_name(
|
||||
struct _cef_domnode_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -132,8 +126,7 @@ cef_string_userfree_t CEF_CALLBACK domnode_get_name(struct _cef_domnode_t* self)
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK domnode_get_value(
|
||||
struct _cef_domnode_t* self)
|
||||
{
|
||||
struct _cef_domnode_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -148,8 +141,7 @@ cef_string_userfree_t CEF_CALLBACK domnode_get_value(
|
||||
}
|
||||
|
||||
int CEF_CALLBACK domnode_set_value(struct _cef_domnode_t* self,
|
||||
const cef_string_t* value)
|
||||
{
|
||||
const cef_string_t* value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -169,8 +161,7 @@ int CEF_CALLBACK domnode_set_value(struct _cef_domnode_t* self,
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK domnode_get_as_markup(
|
||||
struct _cef_domnode_t* self)
|
||||
{
|
||||
struct _cef_domnode_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -185,8 +176,7 @@ cef_string_userfree_t CEF_CALLBACK domnode_get_as_markup(
|
||||
}
|
||||
|
||||
cef_domdocument_t* CEF_CALLBACK domnode_get_document(
|
||||
struct _cef_domnode_t* self)
|
||||
{
|
||||
struct _cef_domnode_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -202,8 +192,7 @@ cef_domdocument_t* CEF_CALLBACK domnode_get_document(
|
||||
}
|
||||
|
||||
struct _cef_domnode_t* CEF_CALLBACK domnode_get_parent(
|
||||
struct _cef_domnode_t* self)
|
||||
{
|
||||
struct _cef_domnode_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -218,8 +207,7 @@ struct _cef_domnode_t* CEF_CALLBACK domnode_get_parent(
|
||||
}
|
||||
|
||||
struct _cef_domnode_t* CEF_CALLBACK domnode_get_previous_sibling(
|
||||
struct _cef_domnode_t* self)
|
||||
{
|
||||
struct _cef_domnode_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -235,8 +223,7 @@ struct _cef_domnode_t* CEF_CALLBACK domnode_get_previous_sibling(
|
||||
}
|
||||
|
||||
struct _cef_domnode_t* CEF_CALLBACK domnode_get_next_sibling(
|
||||
struct _cef_domnode_t* self)
|
||||
{
|
||||
struct _cef_domnode_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -250,8 +237,7 @@ struct _cef_domnode_t* CEF_CALLBACK domnode_get_next_sibling(
|
||||
return CefDOMNodeCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
int CEF_CALLBACK domnode_has_children(struct _cef_domnode_t* self)
|
||||
{
|
||||
int CEF_CALLBACK domnode_has_children(struct _cef_domnode_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -266,8 +252,7 @@ int CEF_CALLBACK domnode_has_children(struct _cef_domnode_t* self)
|
||||
}
|
||||
|
||||
struct _cef_domnode_t* CEF_CALLBACK domnode_get_first_child(
|
||||
struct _cef_domnode_t* self)
|
||||
{
|
||||
struct _cef_domnode_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -282,8 +267,7 @@ struct _cef_domnode_t* CEF_CALLBACK domnode_get_first_child(
|
||||
}
|
||||
|
||||
struct _cef_domnode_t* CEF_CALLBACK domnode_get_last_child(
|
||||
struct _cef_domnode_t* self)
|
||||
{
|
||||
struct _cef_domnode_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -299,8 +283,7 @@ struct _cef_domnode_t* CEF_CALLBACK domnode_get_last_child(
|
||||
|
||||
void CEF_CALLBACK domnode_add_event_listener(struct _cef_domnode_t* self,
|
||||
const cef_string_t* eventType, struct _cef_domevent_listener_t* listener,
|
||||
int useCapture)
|
||||
{
|
||||
int useCapture) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -323,8 +306,7 @@ void CEF_CALLBACK domnode_add_event_listener(struct _cef_domnode_t* self,
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK domnode_get_element_tag_name(
|
||||
struct _cef_domnode_t* self)
|
||||
{
|
||||
struct _cef_domnode_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -338,8 +320,7 @@ cef_string_userfree_t CEF_CALLBACK domnode_get_element_tag_name(
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
int CEF_CALLBACK domnode_has_element_attributes(struct _cef_domnode_t* self)
|
||||
{
|
||||
int CEF_CALLBACK domnode_has_element_attributes(struct _cef_domnode_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -354,8 +335,7 @@ int CEF_CALLBACK domnode_has_element_attributes(struct _cef_domnode_t* self)
|
||||
}
|
||||
|
||||
int CEF_CALLBACK domnode_has_element_attribute(struct _cef_domnode_t* self,
|
||||
const cef_string_t* attrName)
|
||||
{
|
||||
const cef_string_t* attrName) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -375,8 +355,7 @@ int CEF_CALLBACK domnode_has_element_attribute(struct _cef_domnode_t* self,
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK domnode_get_element_attribute(
|
||||
struct _cef_domnode_t* self, const cef_string_t* attrName)
|
||||
{
|
||||
struct _cef_domnode_t* self, const cef_string_t* attrName) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -396,8 +375,7 @@ cef_string_userfree_t CEF_CALLBACK domnode_get_element_attribute(
|
||||
}
|
||||
|
||||
void CEF_CALLBACK domnode_get_element_attributes(struct _cef_domnode_t* self,
|
||||
cef_string_map_t attrMap)
|
||||
{
|
||||
cef_string_map_t attrMap) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -409,7 +387,7 @@ void CEF_CALLBACK domnode_get_element_attributes(struct _cef_domnode_t* self,
|
||||
return;
|
||||
|
||||
// Translate param: attrMap; type: string_map_single_byref
|
||||
std::map<CefString,CefString> attrMapMap;
|
||||
std::map<CefString, CefString> attrMapMap;
|
||||
transfer_string_map_contents(attrMap, attrMapMap);
|
||||
|
||||
// Execute
|
||||
@ -422,8 +400,7 @@ void CEF_CALLBACK domnode_get_element_attributes(struct _cef_domnode_t* self,
|
||||
}
|
||||
|
||||
int CEF_CALLBACK domnode_set_element_attribute(struct _cef_domnode_t* self,
|
||||
const cef_string_t* attrName, const cef_string_t* value)
|
||||
{
|
||||
const cef_string_t* attrName, const cef_string_t* value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -448,8 +425,7 @@ int CEF_CALLBACK domnode_set_element_attribute(struct _cef_domnode_t* self,
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK domnode_get_element_inner_text(
|
||||
struct _cef_domnode_t* self)
|
||||
{
|
||||
struct _cef_domnode_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -467,8 +443,7 @@ cef_string_userfree_t CEF_CALLBACK domnode_get_element_inner_text(
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefDOMNodeCppToC::CefDOMNodeCppToC(CefDOMNode* cls)
|
||||
: CefCppToC<CefDOMNodeCppToC, CefDOMNode, cef_domnode_t>(cls)
|
||||
{
|
||||
: CefCppToC<CefDOMNodeCppToC, CefDOMNode, cef_domnode_t>(cls) {
|
||||
struct_.struct_.get_type = domnode_get_type;
|
||||
struct_.struct_.is_text = domnode_is_text;
|
||||
struct_.struct_.is_element = domnode_is_element;
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _DOMNODE_CPPTOC_H
|
||||
#define _DOMNODE_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_DOMNODE_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_DOMNODE_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef BUILDING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed DLL-side only")
|
||||
#else // BUILDING_CEF_SHARED
|
||||
#else // BUILDING_CEF_SHARED
|
||||
|
||||
#include "include/cef_dom.h"
|
||||
#include "include/capi/cef_dom_capi.h"
|
||||
@ -24,13 +25,12 @@
|
||||
// Wrap a C++ class with a C structure.
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefDOMNodeCppToC
|
||||
: public CefCppToC<CefDOMNodeCppToC, CefDOMNode, cef_domnode_t>
|
||||
{
|
||||
public:
|
||||
CefDOMNodeCppToC(CefDOMNode* cls);
|
||||
: public CefCppToC<CefDOMNodeCppToC, CefDOMNode, cef_domnode_t> {
|
||||
public:
|
||||
explicit CefDOMNodeCppToC(CefDOMNode* cls);
|
||||
virtual ~CefDOMNodeCppToC() {}
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _DOMNODE_CPPTOC_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_DOMNODE_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -17,8 +17,7 @@
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
void CEF_CALLBACK domvisitor_visit(struct _cef_domvisitor_t* self,
|
||||
struct _cef_domdocument_t* document)
|
||||
{
|
||||
struct _cef_domdocument_t* document) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -38,8 +37,7 @@ void CEF_CALLBACK domvisitor_visit(struct _cef_domvisitor_t* self,
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefDOMVisitorCppToC::CefDOMVisitorCppToC(CefDOMVisitor* cls)
|
||||
: CefCppToC<CefDOMVisitorCppToC, CefDOMVisitor, cef_domvisitor_t>(cls)
|
||||
{
|
||||
: CefCppToC<CefDOMVisitorCppToC, CefDOMVisitor, cef_domvisitor_t>(cls) {
|
||||
struct_.struct_.visit = domvisitor_visit;
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _DOMVISITOR_CPPTOC_H
|
||||
#define _DOMVISITOR_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_DOMVISITOR_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_DOMVISITOR_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef USING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
|
||||
#else // USING_CEF_SHARED
|
||||
#else // USING_CEF_SHARED
|
||||
|
||||
#include "include/cef_dom.h"
|
||||
#include "include/capi/cef_dom_capi.h"
|
||||
@ -24,13 +25,12 @@
|
||||
// Wrap a C++ class with a C structure.
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefDOMVisitorCppToC
|
||||
: public CefCppToC<CefDOMVisitorCppToC, CefDOMVisitor, cef_domvisitor_t>
|
||||
{
|
||||
public:
|
||||
CefDOMVisitorCppToC(CefDOMVisitor* cls);
|
||||
: public CefCppToC<CefDOMVisitorCppToC, CefDOMVisitor, cef_domvisitor_t> {
|
||||
public:
|
||||
explicit CefDOMVisitorCppToC(CefDOMVisitor* cls);
|
||||
virtual ~CefDOMVisitorCppToC() {}
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _DOMVISITOR_CPPTOC_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_DOMVISITOR_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -16,8 +16,7 @@
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
int CEF_CALLBACK download_handler_received_data(
|
||||
struct _cef_download_handler_t* self, void* data, int data_size)
|
||||
{
|
||||
struct _cef_download_handler_t* self, void* data, int data_size) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -38,8 +37,7 @@ int CEF_CALLBACK download_handler_received_data(
|
||||
}
|
||||
|
||||
void CEF_CALLBACK download_handler_complete(
|
||||
struct _cef_download_handler_t* self)
|
||||
{
|
||||
struct _cef_download_handler_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -55,8 +53,7 @@ void CEF_CALLBACK download_handler_complete(
|
||||
|
||||
CefDownloadHandlerCppToC::CefDownloadHandlerCppToC(CefDownloadHandler* cls)
|
||||
: CefCppToC<CefDownloadHandlerCppToC, CefDownloadHandler,
|
||||
cef_download_handler_t>(cls)
|
||||
{
|
||||
cef_download_handler_t>(cls) {
|
||||
struct_.struct_.received_data = download_handler_received_data;
|
||||
struct_.struct_.complete = download_handler_complete;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _DOWNLOADHANDLER_CPPTOC_H
|
||||
#define _DOWNLOADHANDLER_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_DOWNLOAD_HANDLER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_DOWNLOAD_HANDLER_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef USING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
|
||||
#else // USING_CEF_SHARED
|
||||
#else // USING_CEF_SHARED
|
||||
|
||||
#include "include/cef_download_handler.h"
|
||||
#include "include/capi/cef_download_handler_capi.h"
|
||||
@ -25,13 +26,12 @@
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefDownloadHandlerCppToC
|
||||
: public CefCppToC<CefDownloadHandlerCppToC, CefDownloadHandler,
|
||||
cef_download_handler_t>
|
||||
{
|
||||
public:
|
||||
CefDownloadHandlerCppToC(CefDownloadHandler* cls);
|
||||
cef_download_handler_t> {
|
||||
public:
|
||||
explicit CefDownloadHandlerCppToC(CefDownloadHandler* cls);
|
||||
virtual ~CefDownloadHandlerCppToC() {}
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _DOWNLOADHANDLER_CPPTOC_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_DOWNLOAD_HANDLER_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -16,8 +16,7 @@
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
int CEF_CALLBACK drag_data_is_link(struct _cef_drag_data_t* self)
|
||||
{
|
||||
int CEF_CALLBACK drag_data_is_link(struct _cef_drag_data_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -31,8 +30,7 @@ int CEF_CALLBACK drag_data_is_link(struct _cef_drag_data_t* self)
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK drag_data_is_fragment(struct _cef_drag_data_t* self)
|
||||
{
|
||||
int CEF_CALLBACK drag_data_is_fragment(struct _cef_drag_data_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -46,8 +44,7 @@ int CEF_CALLBACK drag_data_is_fragment(struct _cef_drag_data_t* self)
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK drag_data_is_file(struct _cef_drag_data_t* self)
|
||||
{
|
||||
int CEF_CALLBACK drag_data_is_file(struct _cef_drag_data_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -62,8 +59,7 @@ int CEF_CALLBACK drag_data_is_file(struct _cef_drag_data_t* self)
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK drag_data_get_link_url(
|
||||
struct _cef_drag_data_t* self)
|
||||
{
|
||||
struct _cef_drag_data_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -78,8 +74,7 @@ cef_string_userfree_t CEF_CALLBACK drag_data_get_link_url(
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK drag_data_get_link_title(
|
||||
struct _cef_drag_data_t* self)
|
||||
{
|
||||
struct _cef_drag_data_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -94,8 +89,7 @@ cef_string_userfree_t CEF_CALLBACK drag_data_get_link_title(
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK drag_data_get_link_metadata(
|
||||
struct _cef_drag_data_t* self)
|
||||
{
|
||||
struct _cef_drag_data_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -110,8 +104,7 @@ cef_string_userfree_t CEF_CALLBACK drag_data_get_link_metadata(
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK drag_data_get_fragment_text(
|
||||
struct _cef_drag_data_t* self)
|
||||
{
|
||||
struct _cef_drag_data_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -126,8 +119,7 @@ cef_string_userfree_t CEF_CALLBACK drag_data_get_fragment_text(
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK drag_data_get_fragment_html(
|
||||
struct _cef_drag_data_t* self)
|
||||
{
|
||||
struct _cef_drag_data_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -142,8 +134,7 @@ cef_string_userfree_t CEF_CALLBACK drag_data_get_fragment_html(
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK drag_data_get_fragment_base_url(
|
||||
struct _cef_drag_data_t* self)
|
||||
{
|
||||
struct _cef_drag_data_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -158,8 +149,7 @@ cef_string_userfree_t CEF_CALLBACK drag_data_get_fragment_base_url(
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK drag_data_get_file_extension(
|
||||
struct _cef_drag_data_t* self)
|
||||
{
|
||||
struct _cef_drag_data_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -174,8 +164,7 @@ cef_string_userfree_t CEF_CALLBACK drag_data_get_file_extension(
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK drag_data_get_file_name(
|
||||
struct _cef_drag_data_t* self)
|
||||
{
|
||||
struct _cef_drag_data_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -190,8 +179,7 @@ cef_string_userfree_t CEF_CALLBACK drag_data_get_file_name(
|
||||
}
|
||||
|
||||
int CEF_CALLBACK drag_data_get_file_names(struct _cef_drag_data_t* self,
|
||||
cef_string_list_t names)
|
||||
{
|
||||
cef_string_list_t names) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -222,8 +210,7 @@ int CEF_CALLBACK drag_data_get_file_names(struct _cef_drag_data_t* self,
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefDragDataCppToC::CefDragDataCppToC(CefDragData* cls)
|
||||
: CefCppToC<CefDragDataCppToC, CefDragData, cef_drag_data_t>(cls)
|
||||
{
|
||||
: CefCppToC<CefDragDataCppToC, CefDragData, cef_drag_data_t>(cls) {
|
||||
struct_.struct_.is_link = drag_data_is_link;
|
||||
struct_.struct_.is_fragment = drag_data_is_fragment;
|
||||
struct_.struct_.is_file = drag_data_is_file;
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _DRAGDATA_CPPTOC_H
|
||||
#define _DRAGDATA_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_DRAG_DATA_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_DRAG_DATA_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef BUILDING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed DLL-side only")
|
||||
#else // BUILDING_CEF_SHARED
|
||||
#else // BUILDING_CEF_SHARED
|
||||
|
||||
#include "include/cef_drag_data.h"
|
||||
#include "include/capi/cef_drag_data_capi.h"
|
||||
@ -24,13 +25,12 @@
|
||||
// Wrap a C++ class with a C structure.
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefDragDataCppToC
|
||||
: public CefCppToC<CefDragDataCppToC, CefDragData, cef_drag_data_t>
|
||||
{
|
||||
public:
|
||||
CefDragDataCppToC(CefDragData* cls);
|
||||
: public CefCppToC<CefDragDataCppToC, CefDragData, cef_drag_data_t> {
|
||||
public:
|
||||
explicit CefDragDataCppToC(CefDragData* cls);
|
||||
virtual ~CefDragDataCppToC() {}
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _DRAGDATA_CPPTOC_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_DRAG_DATA_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -19,8 +19,7 @@
|
||||
|
||||
int CEF_CALLBACK drag_handler_on_drag_start(struct _cef_drag_handler_t* self,
|
||||
cef_browser_t* browser, cef_drag_data_t* dragData,
|
||||
enum cef_drag_operations_mask_t mask)
|
||||
{
|
||||
enum cef_drag_operations_mask_t mask) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -47,8 +46,7 @@ int CEF_CALLBACK drag_handler_on_drag_start(struct _cef_drag_handler_t* self,
|
||||
|
||||
int CEF_CALLBACK drag_handler_on_drag_enter(struct _cef_drag_handler_t* self,
|
||||
cef_browser_t* browser, cef_drag_data_t* dragData,
|
||||
enum cef_drag_operations_mask_t mask)
|
||||
{
|
||||
enum cef_drag_operations_mask_t mask) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -77,8 +75,7 @@ int CEF_CALLBACK drag_handler_on_drag_enter(struct _cef_drag_handler_t* self,
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefDragHandlerCppToC::CefDragHandlerCppToC(CefDragHandler* cls)
|
||||
: CefCppToC<CefDragHandlerCppToC, CefDragHandler, cef_drag_handler_t>(cls)
|
||||
{
|
||||
: CefCppToC<CefDragHandlerCppToC, CefDragHandler, cef_drag_handler_t>(cls) {
|
||||
struct_.struct_.on_drag_start = drag_handler_on_drag_start;
|
||||
struct_.struct_.on_drag_enter = drag_handler_on_drag_enter;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _DRAGHANDLER_CPPTOC_H
|
||||
#define _DRAGHANDLER_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_DRAG_HANDLER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_DRAG_HANDLER_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef USING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
|
||||
#else // USING_CEF_SHARED
|
||||
#else // USING_CEF_SHARED
|
||||
|
||||
#include "include/cef_drag_handler.h"
|
||||
#include "include/capi/cef_drag_handler_capi.h"
|
||||
@ -26,13 +27,13 @@
|
||||
// Wrap a C++ class with a C structure.
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefDragHandlerCppToC
|
||||
: public CefCppToC<CefDragHandlerCppToC, CefDragHandler, cef_drag_handler_t>
|
||||
{
|
||||
public:
|
||||
CefDragHandlerCppToC(CefDragHandler* cls);
|
||||
: public CefCppToC<CefDragHandlerCppToC, CefDragHandler,
|
||||
cef_drag_handler_t> {
|
||||
public:
|
||||
explicit CefDragHandlerCppToC(CefDragHandler* cls);
|
||||
virtual ~CefDragHandlerCppToC() {}
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _DRAGHANDLER_CPPTOC_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_DRAG_HANDLER_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -18,8 +18,8 @@
|
||||
|
||||
void CEF_CALLBACK find_handler_on_find_result(struct _cef_find_handler_t* self,
|
||||
cef_browser_t* browser, int identifier, int count,
|
||||
const cef_rect_t* selectionRect, int activeMatchOrdinal, int finalUpdate)
|
||||
{
|
||||
const cef_rect_t* selectionRect, int activeMatchOrdinal,
|
||||
int finalUpdate) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -51,8 +51,7 @@ void CEF_CALLBACK find_handler_on_find_result(struct _cef_find_handler_t* self,
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefFindHandlerCppToC::CefFindHandlerCppToC(CefFindHandler* cls)
|
||||
: CefCppToC<CefFindHandlerCppToC, CefFindHandler, cef_find_handler_t>(cls)
|
||||
{
|
||||
: CefCppToC<CefFindHandlerCppToC, CefFindHandler, cef_find_handler_t>(cls) {
|
||||
struct_.struct_.on_find_result = find_handler_on_find_result;
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _FINDHANDLER_CPPTOC_H
|
||||
#define _FINDHANDLER_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_FIND_HANDLER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_FIND_HANDLER_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef USING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
|
||||
#else // USING_CEF_SHARED
|
||||
#else // USING_CEF_SHARED
|
||||
|
||||
#include "include/cef_find_handler.h"
|
||||
#include "include/capi/cef_find_handler_capi.h"
|
||||
@ -26,13 +27,13 @@
|
||||
// Wrap a C++ class with a C structure.
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefFindHandlerCppToC
|
||||
: public CefCppToC<CefFindHandlerCppToC, CefFindHandler, cef_find_handler_t>
|
||||
{
|
||||
public:
|
||||
CefFindHandlerCppToC(CefFindHandler* cls);
|
||||
: public CefCppToC<CefFindHandlerCppToC, CefFindHandler,
|
||||
cef_find_handler_t> {
|
||||
public:
|
||||
explicit CefFindHandlerCppToC(CefFindHandler* cls);
|
||||
virtual ~CefFindHandlerCppToC() {}
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _FINDHANDLER_CPPTOC_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_FIND_HANDLER_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -19,8 +19,7 @@
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
void CEF_CALLBACK focus_handler_on_take_focus(struct _cef_focus_handler_t* self,
|
||||
cef_browser_t* browser, int next)
|
||||
{
|
||||
cef_browser_t* browser, int next) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -38,8 +37,7 @@ void CEF_CALLBACK focus_handler_on_take_focus(struct _cef_focus_handler_t* self,
|
||||
}
|
||||
|
||||
int CEF_CALLBACK focus_handler_on_set_focus(struct _cef_focus_handler_t* self,
|
||||
cef_browser_t* browser, enum cef_handler_focus_source_t source)
|
||||
{
|
||||
cef_browser_t* browser, enum cef_handler_focus_source_t source) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -61,8 +59,7 @@ int CEF_CALLBACK focus_handler_on_set_focus(struct _cef_focus_handler_t* self,
|
||||
|
||||
void CEF_CALLBACK focus_handler_on_focused_node_changed(
|
||||
struct _cef_focus_handler_t* self, cef_browser_t* browser,
|
||||
struct _cef_frame_t* frame, cef_domnode_t* node)
|
||||
{
|
||||
struct _cef_frame_t* frame, cef_domnode_t* node) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -86,8 +83,7 @@ void CEF_CALLBACK focus_handler_on_focused_node_changed(
|
||||
|
||||
CefFocusHandlerCppToC::CefFocusHandlerCppToC(CefFocusHandler* cls)
|
||||
: CefCppToC<CefFocusHandlerCppToC, CefFocusHandler, cef_focus_handler_t>(
|
||||
cls)
|
||||
{
|
||||
cls) {
|
||||
struct_.struct_.on_take_focus = focus_handler_on_take_focus;
|
||||
struct_.struct_.on_set_focus = focus_handler_on_set_focus;
|
||||
struct_.struct_.on_focused_node_changed =
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _FOCUSHANDLER_CPPTOC_H
|
||||
#define _FOCUSHANDLER_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_FOCUS_HANDLER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_FOCUS_HANDLER_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef USING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
|
||||
#else // USING_CEF_SHARED
|
||||
#else // USING_CEF_SHARED
|
||||
|
||||
#include "include/cef_focus_handler.h"
|
||||
#include "include/capi/cef_focus_handler_capi.h"
|
||||
@ -29,13 +30,12 @@
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefFocusHandlerCppToC
|
||||
: public CefCppToC<CefFocusHandlerCppToC, CefFocusHandler,
|
||||
cef_focus_handler_t>
|
||||
{
|
||||
public:
|
||||
CefFocusHandlerCppToC(CefFocusHandler* cls);
|
||||
cef_focus_handler_t> {
|
||||
public:
|
||||
explicit CefFocusHandlerCppToC(CefFocusHandler* cls);
|
||||
virtual ~CefFocusHandlerCppToC() {}
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _FOCUSHANDLER_CPPTOC_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_FOCUS_HANDLER_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -20,8 +20,7 @@
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
void CEF_CALLBACK frame_undo(struct _cef_frame_t* self)
|
||||
{
|
||||
void CEF_CALLBACK frame_undo(struct _cef_frame_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -32,8 +31,7 @@ void CEF_CALLBACK frame_undo(struct _cef_frame_t* self)
|
||||
CefFrameCppToC::Get(self)->Undo();
|
||||
}
|
||||
|
||||
void CEF_CALLBACK frame_redo(struct _cef_frame_t* self)
|
||||
{
|
||||
void CEF_CALLBACK frame_redo(struct _cef_frame_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -44,8 +42,7 @@ void CEF_CALLBACK frame_redo(struct _cef_frame_t* self)
|
||||
CefFrameCppToC::Get(self)->Redo();
|
||||
}
|
||||
|
||||
void CEF_CALLBACK frame_cut(struct _cef_frame_t* self)
|
||||
{
|
||||
void CEF_CALLBACK frame_cut(struct _cef_frame_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -56,8 +53,7 @@ void CEF_CALLBACK frame_cut(struct _cef_frame_t* self)
|
||||
CefFrameCppToC::Get(self)->Cut();
|
||||
}
|
||||
|
||||
void CEF_CALLBACK frame_copy(struct _cef_frame_t* self)
|
||||
{
|
||||
void CEF_CALLBACK frame_copy(struct _cef_frame_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -68,8 +64,7 @@ void CEF_CALLBACK frame_copy(struct _cef_frame_t* self)
|
||||
CefFrameCppToC::Get(self)->Copy();
|
||||
}
|
||||
|
||||
void CEF_CALLBACK frame_paste(struct _cef_frame_t* self)
|
||||
{
|
||||
void CEF_CALLBACK frame_paste(struct _cef_frame_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -80,8 +75,7 @@ void CEF_CALLBACK frame_paste(struct _cef_frame_t* self)
|
||||
CefFrameCppToC::Get(self)->Paste();
|
||||
}
|
||||
|
||||
void CEF_CALLBACK frame_del(struct _cef_frame_t* self)
|
||||
{
|
||||
void CEF_CALLBACK frame_del(struct _cef_frame_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -92,8 +86,7 @@ void CEF_CALLBACK frame_del(struct _cef_frame_t* self)
|
||||
CefFrameCppToC::Get(self)->Delete();
|
||||
}
|
||||
|
||||
void CEF_CALLBACK frame_select_all(struct _cef_frame_t* self)
|
||||
{
|
||||
void CEF_CALLBACK frame_select_all(struct _cef_frame_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -104,8 +97,7 @@ void CEF_CALLBACK frame_select_all(struct _cef_frame_t* self)
|
||||
CefFrameCppToC::Get(self)->SelectAll();
|
||||
}
|
||||
|
||||
void CEF_CALLBACK frame_print(struct _cef_frame_t* self)
|
||||
{
|
||||
void CEF_CALLBACK frame_print(struct _cef_frame_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -116,8 +108,7 @@ void CEF_CALLBACK frame_print(struct _cef_frame_t* self)
|
||||
CefFrameCppToC::Get(self)->Print();
|
||||
}
|
||||
|
||||
void CEF_CALLBACK frame_view_source(struct _cef_frame_t* self)
|
||||
{
|
||||
void CEF_CALLBACK frame_view_source(struct _cef_frame_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -128,8 +119,7 @@ void CEF_CALLBACK frame_view_source(struct _cef_frame_t* self)
|
||||
CefFrameCppToC::Get(self)->ViewSource();
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK frame_get_source(struct _cef_frame_t* self)
|
||||
{
|
||||
cef_string_userfree_t CEF_CALLBACK frame_get_source(struct _cef_frame_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -143,8 +133,7 @@ cef_string_userfree_t CEF_CALLBACK frame_get_source(struct _cef_frame_t* self)
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK frame_get_text(struct _cef_frame_t* self)
|
||||
{
|
||||
cef_string_userfree_t CEF_CALLBACK frame_get_text(struct _cef_frame_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -159,8 +148,7 @@ cef_string_userfree_t CEF_CALLBACK frame_get_text(struct _cef_frame_t* self)
|
||||
}
|
||||
|
||||
void CEF_CALLBACK frame_load_request(struct _cef_frame_t* self,
|
||||
struct _cef_request_t* request)
|
||||
{
|
||||
struct _cef_request_t* request) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -177,8 +165,7 @@ void CEF_CALLBACK frame_load_request(struct _cef_frame_t* self,
|
||||
}
|
||||
|
||||
void CEF_CALLBACK frame_load_url(struct _cef_frame_t* self,
|
||||
const cef_string_t* url)
|
||||
{
|
||||
const cef_string_t* url) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -195,16 +182,15 @@ void CEF_CALLBACK frame_load_url(struct _cef_frame_t* self,
|
||||
}
|
||||
|
||||
void CEF_CALLBACK frame_load_string(struct _cef_frame_t* self,
|
||||
const cef_string_t* string, const cef_string_t* url)
|
||||
{
|
||||
const cef_string_t* string_val, const cef_string_t* url) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self)
|
||||
return;
|
||||
// Verify param: string; type: string_byref_const
|
||||
DCHECK(string);
|
||||
if (!string)
|
||||
// Verify param: string_val; type: string_byref_const
|
||||
DCHECK(string_val);
|
||||
if (!string_val)
|
||||
return;
|
||||
// Verify param: url; type: string_byref_const
|
||||
DCHECK(url);
|
||||
@ -213,13 +199,12 @@ void CEF_CALLBACK frame_load_string(struct _cef_frame_t* self,
|
||||
|
||||
// Execute
|
||||
CefFrameCppToC::Get(self)->LoadString(
|
||||
CefString(string),
|
||||
CefString(string_val),
|
||||
CefString(url));
|
||||
}
|
||||
|
||||
void CEF_CALLBACK frame_load_stream(struct _cef_frame_t* self,
|
||||
struct _cef_stream_reader_t* stream, const cef_string_t* url)
|
||||
{
|
||||
struct _cef_stream_reader_t* stream, const cef_string_t* url) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -241,8 +226,8 @@ void CEF_CALLBACK frame_load_stream(struct _cef_frame_t* self,
|
||||
}
|
||||
|
||||
void CEF_CALLBACK frame_execute_java_script(struct _cef_frame_t* self,
|
||||
const cef_string_t* jsCode, const cef_string_t* scriptUrl, int startLine)
|
||||
{
|
||||
const cef_string_t* jsCode, const cef_string_t* scriptUrl,
|
||||
int startLine) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -261,8 +246,7 @@ void CEF_CALLBACK frame_execute_java_script(struct _cef_frame_t* self,
|
||||
startLine);
|
||||
}
|
||||
|
||||
int CEF_CALLBACK frame_is_main(struct _cef_frame_t* self)
|
||||
{
|
||||
int CEF_CALLBACK frame_is_main(struct _cef_frame_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -276,8 +260,7 @@ int CEF_CALLBACK frame_is_main(struct _cef_frame_t* self)
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK frame_is_focused(struct _cef_frame_t* self)
|
||||
{
|
||||
int CEF_CALLBACK frame_is_focused(struct _cef_frame_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -291,8 +274,7 @@ int CEF_CALLBACK frame_is_focused(struct _cef_frame_t* self)
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK frame_get_name(struct _cef_frame_t* self)
|
||||
{
|
||||
cef_string_userfree_t CEF_CALLBACK frame_get_name(struct _cef_frame_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -306,8 +288,7 @@ cef_string_userfree_t CEF_CALLBACK frame_get_name(struct _cef_frame_t* self)
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
long long CEF_CALLBACK frame_get_identifier(struct _cef_frame_t* self)
|
||||
{
|
||||
int64 CEF_CALLBACK frame_get_identifier(struct _cef_frame_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -315,14 +296,13 @@ long long CEF_CALLBACK frame_get_identifier(struct _cef_frame_t* self)
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
long long _retval = CefFrameCppToC::Get(self)->GetIdentifier();
|
||||
int64 _retval = CefFrameCppToC::Get(self)->GetIdentifier();
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
struct _cef_frame_t* CEF_CALLBACK frame_get_parent(struct _cef_frame_t* self)
|
||||
{
|
||||
struct _cef_frame_t* CEF_CALLBACK frame_get_parent(struct _cef_frame_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -336,8 +316,7 @@ struct _cef_frame_t* CEF_CALLBACK frame_get_parent(struct _cef_frame_t* self)
|
||||
return CefFrameCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK frame_get_url(struct _cef_frame_t* self)
|
||||
{
|
||||
cef_string_userfree_t CEF_CALLBACK frame_get_url(struct _cef_frame_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -351,8 +330,7 @@ cef_string_userfree_t CEF_CALLBACK frame_get_url(struct _cef_frame_t* self)
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
cef_browser_t* CEF_CALLBACK frame_get_browser(struct _cef_frame_t* self)
|
||||
{
|
||||
cef_browser_t* CEF_CALLBACK frame_get_browser(struct _cef_frame_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -367,8 +345,7 @@ cef_browser_t* CEF_CALLBACK frame_get_browser(struct _cef_frame_t* self)
|
||||
}
|
||||
|
||||
void CEF_CALLBACK frame_visit_dom(struct _cef_frame_t* self,
|
||||
cef_domvisitor_t* visitor)
|
||||
{
|
||||
cef_domvisitor_t* visitor) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -385,8 +362,7 @@ void CEF_CALLBACK frame_visit_dom(struct _cef_frame_t* self,
|
||||
}
|
||||
|
||||
struct _cef_v8context_t* CEF_CALLBACK frame_get_v8context(
|
||||
struct _cef_frame_t* self)
|
||||
{
|
||||
struct _cef_frame_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -404,8 +380,7 @@ struct _cef_v8context_t* CEF_CALLBACK frame_get_v8context(
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefFrameCppToC::CefFrameCppToC(CefFrame* cls)
|
||||
: CefCppToC<CefFrameCppToC, CefFrame, cef_frame_t>(cls)
|
||||
{
|
||||
: CefCppToC<CefFrameCppToC, CefFrame, cef_frame_t>(cls) {
|
||||
struct_.struct_.undo = frame_undo;
|
||||
struct_.struct_.redo = frame_redo;
|
||||
struct_.struct_.cut = frame_cut;
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _FRAME_CPPTOC_H
|
||||
#define _FRAME_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_FRAME_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_FRAME_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef BUILDING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed DLL-side only")
|
||||
#else // BUILDING_CEF_SHARED
|
||||
#else // BUILDING_CEF_SHARED
|
||||
|
||||
#include "include/cef_frame.h"
|
||||
#include "include/capi/cef_frame_capi.h"
|
||||
@ -34,13 +35,12 @@
|
||||
// Wrap a C++ class with a C structure.
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefFrameCppToC
|
||||
: public CefCppToC<CefFrameCppToC, CefFrame, cef_frame_t>
|
||||
{
|
||||
public:
|
||||
CefFrameCppToC(CefFrame* cls);
|
||||
: public CefCppToC<CefFrameCppToC, CefFrame, cef_frame_t> {
|
||||
public:
|
||||
explicit CefFrameCppToC(CefFrame* cls);
|
||||
virtual ~CefFrameCppToC() {}
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _FRAME_CPPTOC_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_FRAME_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -19,8 +19,7 @@
|
||||
|
||||
int CEF_CALLBACK jsdialog_handler_on_jsalert(
|
||||
struct _cef_jsdialog_handler_t* self, cef_browser_t* browser,
|
||||
cef_frame_t* frame, const cef_string_t* message)
|
||||
{
|
||||
cef_frame_t* frame, const cef_string_t* message) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -51,8 +50,7 @@ int CEF_CALLBACK jsdialog_handler_on_jsalert(
|
||||
|
||||
int CEF_CALLBACK jsdialog_handler_on_jsconfirm(
|
||||
struct _cef_jsdialog_handler_t* self, cef_browser_t* browser,
|
||||
cef_frame_t* frame, const cef_string_t* message, int* retval)
|
||||
{
|
||||
cef_frame_t* frame, const cef_string_t* message, int* retval) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -96,8 +94,7 @@ int CEF_CALLBACK jsdialog_handler_on_jsconfirm(
|
||||
int CEF_CALLBACK jsdialog_handler_on_jsprompt(
|
||||
struct _cef_jsdialog_handler_t* self, cef_browser_t* browser,
|
||||
cef_frame_t* frame, const cef_string_t* message,
|
||||
const cef_string_t* defaultValue, int* retval, cef_string_t* result)
|
||||
{
|
||||
const cef_string_t* defaultValue, int* retval, cef_string_t* result) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -155,8 +152,7 @@ int CEF_CALLBACK jsdialog_handler_on_jsprompt(
|
||||
|
||||
CefJSDialogHandlerCppToC::CefJSDialogHandlerCppToC(CefJSDialogHandler* cls)
|
||||
: CefCppToC<CefJSDialogHandlerCppToC, CefJSDialogHandler,
|
||||
cef_jsdialog_handler_t>(cls)
|
||||
{
|
||||
cef_jsdialog_handler_t>(cls) {
|
||||
struct_.struct_.on_jsalert = jsdialog_handler_on_jsalert;
|
||||
struct_.struct_.on_jsconfirm = jsdialog_handler_on_jsconfirm;
|
||||
struct_.struct_.on_jsprompt = jsdialog_handler_on_jsprompt;
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _JSDIALOGHANDLER_CPPTOC_H
|
||||
#define _JSDIALOGHANDLER_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_JSDIALOG_HANDLER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_JSDIALOG_HANDLER_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef USING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
|
||||
#else // USING_CEF_SHARED
|
||||
#else // USING_CEF_SHARED
|
||||
|
||||
#include "include/cef_jsdialog_handler.h"
|
||||
#include "include/capi/cef_jsdialog_handler_capi.h"
|
||||
@ -29,13 +30,12 @@
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefJSDialogHandlerCppToC
|
||||
: public CefCppToC<CefJSDialogHandlerCppToC, CefJSDialogHandler,
|
||||
cef_jsdialog_handler_t>
|
||||
{
|
||||
public:
|
||||
CefJSDialogHandlerCppToC(CefJSDialogHandler* cls);
|
||||
cef_jsdialog_handler_t> {
|
||||
public:
|
||||
explicit CefJSDialogHandlerCppToC(CefJSDialogHandler* cls);
|
||||
virtual ~CefJSDialogHandlerCppToC() {}
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _JSDIALOGHANDLER_CPPTOC_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_JSDIALOG_HANDLER_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -19,8 +19,7 @@
|
||||
int CEF_CALLBACK keyboard_handler_on_key_event(
|
||||
struct _cef_keyboard_handler_t* self, cef_browser_t* browser,
|
||||
enum cef_handler_keyevent_type_t type, int code, int modifiers,
|
||||
int isSystemKey, int isAfterJavaScript)
|
||||
{
|
||||
int isSystemKey, int isAfterJavaScript) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -49,8 +48,7 @@ int CEF_CALLBACK keyboard_handler_on_key_event(
|
||||
|
||||
CefKeyboardHandlerCppToC::CefKeyboardHandlerCppToC(CefKeyboardHandler* cls)
|
||||
: CefCppToC<CefKeyboardHandlerCppToC, CefKeyboardHandler,
|
||||
cef_keyboard_handler_t>(cls)
|
||||
{
|
||||
cef_keyboard_handler_t>(cls) {
|
||||
struct_.struct_.on_key_event = keyboard_handler_on_key_event;
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _KEYBOARDHANDLER_CPPTOC_H
|
||||
#define _KEYBOARDHANDLER_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_KEYBOARD_HANDLER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_KEYBOARD_HANDLER_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef USING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
|
||||
#else // USING_CEF_SHARED
|
||||
#else // USING_CEF_SHARED
|
||||
|
||||
#include "include/cef_keyboard_handler.h"
|
||||
#include "include/capi/cef_keyboard_handler_capi.h"
|
||||
@ -27,13 +28,12 @@
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefKeyboardHandlerCppToC
|
||||
: public CefCppToC<CefKeyboardHandlerCppToC, CefKeyboardHandler,
|
||||
cef_keyboard_handler_t>
|
||||
{
|
||||
public:
|
||||
CefKeyboardHandlerCppToC(CefKeyboardHandler* cls);
|
||||
cef_keyboard_handler_t> {
|
||||
public:
|
||||
explicit CefKeyboardHandlerCppToC(CefKeyboardHandler* cls);
|
||||
virtual ~CefKeyboardHandlerCppToC() {}
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _KEYBOARDHANDLER_CPPTOC_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_KEYBOARD_HANDLER_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -21,8 +21,7 @@ int CEF_CALLBACK life_span_handler_on_before_popup(
|
||||
struct _cef_life_span_handler_t* self, cef_browser_t* parentBrowser,
|
||||
const struct _cef_popup_features_t* popupFeatures,
|
||||
cef_window_info_t* windowInfo, const cef_string_t* url,
|
||||
cef_client_t** client, struct _cef_browser_settings_t* settings)
|
||||
{
|
||||
cef_client_t** client, struct _cef_browser_settings_t* settings) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -99,8 +98,7 @@ int CEF_CALLBACK life_span_handler_on_before_popup(
|
||||
}
|
||||
|
||||
void CEF_CALLBACK life_span_handler_on_after_created(
|
||||
struct _cef_life_span_handler_t* self, cef_browser_t* browser)
|
||||
{
|
||||
struct _cef_life_span_handler_t* self, cef_browser_t* browser) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -117,8 +115,7 @@ void CEF_CALLBACK life_span_handler_on_after_created(
|
||||
}
|
||||
|
||||
int CEF_CALLBACK life_span_handler_run_modal(
|
||||
struct _cef_life_span_handler_t* self, cef_browser_t* browser)
|
||||
{
|
||||
struct _cef_life_span_handler_t* self, cef_browser_t* browser) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -138,8 +135,7 @@ int CEF_CALLBACK life_span_handler_run_modal(
|
||||
}
|
||||
|
||||
int CEF_CALLBACK life_span_handler_do_close(
|
||||
struct _cef_life_span_handler_t* self, cef_browser_t* browser)
|
||||
{
|
||||
struct _cef_life_span_handler_t* self, cef_browser_t* browser) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -159,8 +155,7 @@ int CEF_CALLBACK life_span_handler_do_close(
|
||||
}
|
||||
|
||||
void CEF_CALLBACK life_span_handler_on_before_close(
|
||||
struct _cef_life_span_handler_t* self, cef_browser_t* browser)
|
||||
{
|
||||
struct _cef_life_span_handler_t* self, cef_browser_t* browser) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -181,8 +176,7 @@ void CEF_CALLBACK life_span_handler_on_before_close(
|
||||
|
||||
CefLifeSpanHandlerCppToC::CefLifeSpanHandlerCppToC(CefLifeSpanHandler* cls)
|
||||
: CefCppToC<CefLifeSpanHandlerCppToC, CefLifeSpanHandler,
|
||||
cef_life_span_handler_t>(cls)
|
||||
{
|
||||
cef_life_span_handler_t>(cls) {
|
||||
struct_.struct_.on_before_popup = life_span_handler_on_before_popup;
|
||||
struct_.struct_.on_after_created = life_span_handler_on_after_created;
|
||||
struct_.struct_.run_modal = life_span_handler_run_modal;
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _LIFESPANHANDLER_CPPTOC_H
|
||||
#define _LIFESPANHANDLER_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_LIFE_SPAN_HANDLER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_LIFE_SPAN_HANDLER_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef USING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
|
||||
#else // USING_CEF_SHARED
|
||||
#else // USING_CEF_SHARED
|
||||
|
||||
#include "include/cef_life_span_handler.h"
|
||||
#include "include/capi/cef_life_span_handler_capi.h"
|
||||
@ -29,13 +30,12 @@
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefLifeSpanHandlerCppToC
|
||||
: public CefCppToC<CefLifeSpanHandlerCppToC, CefLifeSpanHandler,
|
||||
cef_life_span_handler_t>
|
||||
{
|
||||
public:
|
||||
CefLifeSpanHandlerCppToC(CefLifeSpanHandler* cls);
|
||||
cef_life_span_handler_t> {
|
||||
public:
|
||||
explicit CefLifeSpanHandlerCppToC(CefLifeSpanHandler* cls);
|
||||
virtual ~CefLifeSpanHandlerCppToC() {}
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _LIFESPANHANDLER_CPPTOC_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_LIFE_SPAN_HANDLER_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -18,8 +18,7 @@
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
void CEF_CALLBACK load_handler_on_load_start(struct _cef_load_handler_t* self,
|
||||
cef_browser_t* browser, cef_frame_t* frame)
|
||||
{
|
||||
cef_browser_t* browser, cef_frame_t* frame) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -41,8 +40,7 @@ void CEF_CALLBACK load_handler_on_load_start(struct _cef_load_handler_t* self,
|
||||
}
|
||||
|
||||
void CEF_CALLBACK load_handler_on_load_end(struct _cef_load_handler_t* self,
|
||||
cef_browser_t* browser, cef_frame_t* frame, int httpStatusCode)
|
||||
{
|
||||
cef_browser_t* browser, cef_frame_t* frame, int httpStatusCode) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -67,8 +65,7 @@ void CEF_CALLBACK load_handler_on_load_end(struct _cef_load_handler_t* self,
|
||||
int CEF_CALLBACK load_handler_on_load_error(struct _cef_load_handler_t* self,
|
||||
cef_browser_t* browser, cef_frame_t* frame,
|
||||
enum cef_handler_errorcode_t errorCode, const cef_string_t* failedUrl,
|
||||
cef_string_t* errorText)
|
||||
{
|
||||
cef_string_t* errorText) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -110,8 +107,7 @@ int CEF_CALLBACK load_handler_on_load_error(struct _cef_load_handler_t* self,
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefLoadHandlerCppToC::CefLoadHandlerCppToC(CefLoadHandler* cls)
|
||||
: CefCppToC<CefLoadHandlerCppToC, CefLoadHandler, cef_load_handler_t>(cls)
|
||||
{
|
||||
: CefCppToC<CefLoadHandlerCppToC, CefLoadHandler, cef_load_handler_t>(cls) {
|
||||
struct_.struct_.on_load_start = load_handler_on_load_start;
|
||||
struct_.struct_.on_load_end = load_handler_on_load_end;
|
||||
struct_.struct_.on_load_error = load_handler_on_load_error;
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _LOADHANDLER_CPPTOC_H
|
||||
#define _LOADHANDLER_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_LOAD_HANDLER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_LOAD_HANDLER_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef USING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
|
||||
#else // USING_CEF_SHARED
|
||||
#else // USING_CEF_SHARED
|
||||
|
||||
#include "include/cef_load_handler.h"
|
||||
#include "include/capi/cef_load_handler_capi.h"
|
||||
@ -28,13 +29,13 @@
|
||||
// Wrap a C++ class with a C structure.
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefLoadHandlerCppToC
|
||||
: public CefCppToC<CefLoadHandlerCppToC, CefLoadHandler, cef_load_handler_t>
|
||||
{
|
||||
public:
|
||||
CefLoadHandlerCppToC(CefLoadHandler* cls);
|
||||
: public CefCppToC<CefLoadHandlerCppToC, CefLoadHandler,
|
||||
cef_load_handler_t> {
|
||||
public:
|
||||
explicit CefLoadHandlerCppToC(CefLoadHandler* cls);
|
||||
virtual ~CefLoadHandlerCppToC() {}
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _LOADHANDLER_CPPTOC_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_LOAD_HANDLER_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -17,8 +17,7 @@
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
int CEF_CALLBACK menu_handler_on_before_menu(struct _cef_menu_handler_t* self,
|
||||
cef_browser_t* browser, const struct _cef_menu_info_t* menuInfo)
|
||||
{
|
||||
cef_browser_t* browser, const struct _cef_menu_info_t* menuInfo) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -48,8 +47,7 @@ int CEF_CALLBACK menu_handler_on_before_menu(struct _cef_menu_handler_t* self,
|
||||
}
|
||||
|
||||
void CEF_CALLBACK menu_handler_get_menu_label(struct _cef_menu_handler_t* self,
|
||||
cef_browser_t* browser, enum cef_menu_id_t menuId, cef_string_t* label)
|
||||
{
|
||||
cef_browser_t* browser, enum cef_menu_id_t menuId, cef_string_t* label) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -75,8 +73,7 @@ void CEF_CALLBACK menu_handler_get_menu_label(struct _cef_menu_handler_t* self,
|
||||
}
|
||||
|
||||
int CEF_CALLBACK menu_handler_on_menu_action(struct _cef_menu_handler_t* self,
|
||||
cef_browser_t* browser, enum cef_menu_id_t menuId)
|
||||
{
|
||||
cef_browser_t* browser, enum cef_menu_id_t menuId) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -100,8 +97,7 @@ int CEF_CALLBACK menu_handler_on_menu_action(struct _cef_menu_handler_t* self,
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefMenuHandlerCppToC::CefMenuHandlerCppToC(CefMenuHandler* cls)
|
||||
: CefCppToC<CefMenuHandlerCppToC, CefMenuHandler, cef_menu_handler_t>(cls)
|
||||
{
|
||||
: CefCppToC<CefMenuHandlerCppToC, CefMenuHandler, cef_menu_handler_t>(cls) {
|
||||
struct_.struct_.on_before_menu = menu_handler_on_before_menu;
|
||||
struct_.struct_.get_menu_label = menu_handler_get_menu_label;
|
||||
struct_.struct_.on_menu_action = menu_handler_on_menu_action;
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _MENUHANDLER_CPPTOC_H
|
||||
#define _MENUHANDLER_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_MENU_HANDLER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_MENU_HANDLER_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef USING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
|
||||
#else // USING_CEF_SHARED
|
||||
#else // USING_CEF_SHARED
|
||||
|
||||
#include "include/cef_menu_handler.h"
|
||||
#include "include/capi/cef_menu_handler_capi.h"
|
||||
@ -26,13 +27,13 @@
|
||||
// Wrap a C++ class with a C structure.
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefMenuHandlerCppToC
|
||||
: public CefCppToC<CefMenuHandlerCppToC, CefMenuHandler, cef_menu_handler_t>
|
||||
{
|
||||
public:
|
||||
CefMenuHandlerCppToC(CefMenuHandler* cls);
|
||||
: public CefCppToC<CefMenuHandlerCppToC, CefMenuHandler,
|
||||
cef_menu_handler_t> {
|
||||
public:
|
||||
explicit CefMenuHandlerCppToC(CefMenuHandler* cls);
|
||||
virtual ~CefMenuHandlerCppToC() {}
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _MENUHANDLER_CPPTOC_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_MENU_HANDLER_CPPTOC_H_
|
||||
|
||||
|
@ -19,8 +19,7 @@
|
||||
|
||||
int CEF_CALLBACK permission_handler_on_before_script_extension_load(
|
||||
struct _cef_permission_handler_t* self, cef_browser_t* browser,
|
||||
cef_frame_t* frame, const cef_string_t* extensionName)
|
||||
{
|
||||
cef_frame_t* frame, const cef_string_t* extensionName) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -56,8 +55,7 @@ int CEF_CALLBACK permission_handler_on_before_script_extension_load(
|
||||
CefPermissionHandlerCppToC::CefPermissionHandlerCppToC(
|
||||
CefPermissionHandler* cls)
|
||||
: CefCppToC<CefPermissionHandlerCppToC, CefPermissionHandler,
|
||||
cef_permission_handler_t>(cls)
|
||||
{
|
||||
cef_permission_handler_t>(cls) {
|
||||
struct_.struct_.on_before_script_extension_load =
|
||||
permission_handler_on_before_script_extension_load;
|
||||
}
|
||||
|
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _PERMISSIONHANDLER_CPPTOC_H
|
||||
#define _PERMISSIONHANDLER_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_PERMISSION_HANDLER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_PERMISSION_HANDLER_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef USING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
|
||||
#else // USING_CEF_SHARED
|
||||
#else // USING_CEF_SHARED
|
||||
|
||||
#include "include/cef_permission_handler.h"
|
||||
#include "include/capi/cef_permission_handler_capi.h"
|
||||
@ -29,13 +30,12 @@
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefPermissionHandlerCppToC
|
||||
: public CefCppToC<CefPermissionHandlerCppToC, CefPermissionHandler,
|
||||
cef_permission_handler_t>
|
||||
{
|
||||
public:
|
||||
CefPermissionHandlerCppToC(CefPermissionHandler* cls);
|
||||
cef_permission_handler_t> {
|
||||
public:
|
||||
explicit CefPermissionHandlerCppToC(CefPermissionHandler* cls);
|
||||
virtual ~CefPermissionHandlerCppToC() {}
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _PERMISSIONHANDLER_CPPTOC_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_PERMISSION_HANDLER_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -16,8 +16,7 @@
|
||||
|
||||
// GLOBAL FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
CEF_EXPORT cef_post_data_t* cef_post_data_create()
|
||||
{
|
||||
CEF_EXPORT cef_post_data_t* cef_post_data_create() {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
@ -30,8 +29,7 @@ CEF_EXPORT cef_post_data_t* cef_post_data_create()
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
size_t CEF_CALLBACK post_data_get_element_count(struct _cef_post_data_t* self)
|
||||
{
|
||||
size_t CEF_CALLBACK post_data_get_element_count(struct _cef_post_data_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -46,8 +44,7 @@ size_t CEF_CALLBACK post_data_get_element_count(struct _cef_post_data_t* self)
|
||||
}
|
||||
|
||||
void CEF_CALLBACK post_data_get_elements(struct _cef_post_data_t* self,
|
||||
size_t* elementsCount, struct _cef_post_data_element_t** elements)
|
||||
{
|
||||
size_t* elementsCount, struct _cef_post_data_element_t** elements) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -82,8 +79,7 @@ void CEF_CALLBACK post_data_get_elements(struct _cef_post_data_t* self,
|
||||
}
|
||||
|
||||
int CEF_CALLBACK post_data_remove_element(struct _cef_post_data_t* self,
|
||||
struct _cef_post_data_element_t* element)
|
||||
{
|
||||
struct _cef_post_data_element_t* element) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -103,8 +99,7 @@ int CEF_CALLBACK post_data_remove_element(struct _cef_post_data_t* self,
|
||||
}
|
||||
|
||||
int CEF_CALLBACK post_data_add_element(struct _cef_post_data_t* self,
|
||||
struct _cef_post_data_element_t* element)
|
||||
{
|
||||
struct _cef_post_data_element_t* element) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -123,8 +118,7 @@ int CEF_CALLBACK post_data_add_element(struct _cef_post_data_t* self,
|
||||
return _retval;
|
||||
}
|
||||
|
||||
void CEF_CALLBACK post_data_remove_elements(struct _cef_post_data_t* self)
|
||||
{
|
||||
void CEF_CALLBACK post_data_remove_elements(struct _cef_post_data_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -139,8 +133,7 @@ void CEF_CALLBACK post_data_remove_elements(struct _cef_post_data_t* self)
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefPostDataCppToC::CefPostDataCppToC(CefPostData* cls)
|
||||
: CefCppToC<CefPostDataCppToC, CefPostData, cef_post_data_t>(cls)
|
||||
{
|
||||
: CefCppToC<CefPostDataCppToC, CefPostData, cef_post_data_t>(cls) {
|
||||
struct_.struct_.get_element_count = post_data_get_element_count;
|
||||
struct_.struct_.get_elements = post_data_get_elements;
|
||||
struct_.struct_.remove_element = post_data_remove_element;
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _POSTDATA_CPPTOC_H
|
||||
#define _POSTDATA_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_POST_DATA_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_POST_DATA_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef BUILDING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed DLL-side only")
|
||||
#else // BUILDING_CEF_SHARED
|
||||
#else // BUILDING_CEF_SHARED
|
||||
|
||||
#include "include/cef_request.h"
|
||||
#include "include/capi/cef_request_capi.h"
|
||||
@ -24,13 +25,12 @@
|
||||
// Wrap a C++ class with a C structure.
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefPostDataCppToC
|
||||
: public CefCppToC<CefPostDataCppToC, CefPostData, cef_post_data_t>
|
||||
{
|
||||
public:
|
||||
CefPostDataCppToC(CefPostData* cls);
|
||||
: public CefCppToC<CefPostDataCppToC, CefPostData, cef_post_data_t> {
|
||||
public:
|
||||
explicit CefPostDataCppToC(CefPostData* cls);
|
||||
virtual ~CefPostDataCppToC() {}
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _POSTDATA_CPPTOC_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_POST_DATA_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -15,8 +15,7 @@
|
||||
|
||||
// GLOBAL FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
CEF_EXPORT cef_post_data_element_t* cef_post_data_element_create()
|
||||
{
|
||||
CEF_EXPORT cef_post_data_element_t* cef_post_data_element_create() {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
@ -31,8 +30,7 @@ CEF_EXPORT cef_post_data_element_t* cef_post_data_element_create()
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
void CEF_CALLBACK post_data_element_set_to_empty(
|
||||
struct _cef_post_data_element_t* self)
|
||||
{
|
||||
struct _cef_post_data_element_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -44,8 +42,7 @@ void CEF_CALLBACK post_data_element_set_to_empty(
|
||||
}
|
||||
|
||||
void CEF_CALLBACK post_data_element_set_to_file(
|
||||
struct _cef_post_data_element_t* self, const cef_string_t* fileName)
|
||||
{
|
||||
struct _cef_post_data_element_t* self, const cef_string_t* fileName) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -62,8 +59,7 @@ void CEF_CALLBACK post_data_element_set_to_file(
|
||||
}
|
||||
|
||||
void CEF_CALLBACK post_data_element_set_to_bytes(
|
||||
struct _cef_post_data_element_t* self, size_t size, const void* bytes)
|
||||
{
|
||||
struct _cef_post_data_element_t* self, size_t size, const void* bytes) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -81,8 +77,7 @@ void CEF_CALLBACK post_data_element_set_to_bytes(
|
||||
}
|
||||
|
||||
enum cef_postdataelement_type_t CEF_CALLBACK post_data_element_get_type(
|
||||
struct _cef_post_data_element_t* self)
|
||||
{
|
||||
struct _cef_post_data_element_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -98,8 +93,7 @@ enum cef_postdataelement_type_t CEF_CALLBACK post_data_element_get_type(
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK post_data_element_get_file(
|
||||
struct _cef_post_data_element_t* self)
|
||||
{
|
||||
struct _cef_post_data_element_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -114,8 +108,7 @@ cef_string_userfree_t CEF_CALLBACK post_data_element_get_file(
|
||||
}
|
||||
|
||||
size_t CEF_CALLBACK post_data_element_get_bytes_count(
|
||||
struct _cef_post_data_element_t* self)
|
||||
{
|
||||
struct _cef_post_data_element_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -130,8 +123,7 @@ size_t CEF_CALLBACK post_data_element_get_bytes_count(
|
||||
}
|
||||
|
||||
size_t CEF_CALLBACK post_data_element_get_bytes(
|
||||
struct _cef_post_data_element_t* self, size_t size, void* bytes)
|
||||
{
|
||||
struct _cef_post_data_element_t* self, size_t size, void* bytes) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -156,8 +148,7 @@ size_t CEF_CALLBACK post_data_element_get_bytes(
|
||||
|
||||
CefPostDataElementCppToC::CefPostDataElementCppToC(CefPostDataElement* cls)
|
||||
: CefCppToC<CefPostDataElementCppToC, CefPostDataElement,
|
||||
cef_post_data_element_t>(cls)
|
||||
{
|
||||
cef_post_data_element_t>(cls) {
|
||||
struct_.struct_.set_to_empty = post_data_element_set_to_empty;
|
||||
struct_.struct_.set_to_file = post_data_element_set_to_file;
|
||||
struct_.struct_.set_to_bytes = post_data_element_set_to_bytes;
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _POSTDATAELEMENT_CPPTOC_H
|
||||
#define _POSTDATAELEMENT_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_POST_DATA_ELEMENT_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_POST_DATA_ELEMENT_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef BUILDING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed DLL-side only")
|
||||
#else // BUILDING_CEF_SHARED
|
||||
#else // BUILDING_CEF_SHARED
|
||||
|
||||
#include "include/cef_request.h"
|
||||
#include "include/capi/cef_request_capi.h"
|
||||
@ -25,13 +26,12 @@
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefPostDataElementCppToC
|
||||
: public CefCppToC<CefPostDataElementCppToC, CefPostDataElement,
|
||||
cef_post_data_element_t>
|
||||
{
|
||||
public:
|
||||
CefPostDataElementCppToC(CefPostDataElement* cls);
|
||||
cef_post_data_element_t> {
|
||||
public:
|
||||
explicit CefPostDataElementCppToC(CefPostDataElement* cls);
|
||||
virtual ~CefPostDataElementCppToC() {}
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _POSTDATAELEMENT_CPPTOC_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_POST_DATA_ELEMENT_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -19,8 +19,7 @@
|
||||
|
||||
int CEF_CALLBACK print_handler_get_print_options(
|
||||
struct _cef_print_handler_t* self, cef_browser_t* browser,
|
||||
struct _cef_print_options_t* printOptions)
|
||||
{
|
||||
struct _cef_print_options_t* printOptions) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -59,8 +58,7 @@ int CEF_CALLBACK print_handler_get_print_header_footer(
|
||||
const cef_string_t* url, const cef_string_t* title, int currentPage,
|
||||
int maxPages, cef_string_t* topLeft, cef_string_t* topCenter,
|
||||
cef_string_t* topRight, cef_string_t* bottomLeft,
|
||||
cef_string_t* bottomCenter, cef_string_t* bottomRight)
|
||||
{
|
||||
cef_string_t* bottomCenter, cef_string_t* bottomRight) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -153,8 +151,7 @@ int CEF_CALLBACK print_handler_get_print_header_footer(
|
||||
|
||||
CefPrintHandlerCppToC::CefPrintHandlerCppToC(CefPrintHandler* cls)
|
||||
: CefCppToC<CefPrintHandlerCppToC, CefPrintHandler, cef_print_handler_t>(
|
||||
cls)
|
||||
{
|
||||
cls) {
|
||||
struct_.struct_.get_print_options = print_handler_get_print_options;
|
||||
struct_.struct_.get_print_header_footer =
|
||||
print_handler_get_print_header_footer;
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _PRINTHANDLER_CPPTOC_H
|
||||
#define _PRINTHANDLER_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_PRINT_HANDLER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_PRINT_HANDLER_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef USING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
|
||||
#else // USING_CEF_SHARED
|
||||
#else // USING_CEF_SHARED
|
||||
|
||||
#include "include/cef_print_handler.h"
|
||||
#include "include/capi/cef_print_handler_capi.h"
|
||||
@ -29,13 +30,12 @@
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefPrintHandlerCppToC
|
||||
: public CefCppToC<CefPrintHandlerCppToC, CefPrintHandler,
|
||||
cef_print_handler_t>
|
||||
{
|
||||
public:
|
||||
CefPrintHandlerCppToC(CefPrintHandler* cls);
|
||||
cef_print_handler_t> {
|
||||
public:
|
||||
explicit CefPrintHandlerCppToC(CefPrintHandler* cls);
|
||||
virtual ~CefPrintHandlerCppToC() {}
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _PRINTHANDLER_CPPTOC_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_PRINT_HANDLER_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -17,8 +17,7 @@
|
||||
|
||||
void CEF_CALLBACK proxy_handler_get_proxy_for_url(
|
||||
struct _cef_proxy_handler_t* self, const cef_string_t* url,
|
||||
struct _cef_proxy_info_t* proxy_info)
|
||||
{
|
||||
struct _cef_proxy_info_t* proxy_info) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -53,8 +52,7 @@ void CEF_CALLBACK proxy_handler_get_proxy_for_url(
|
||||
|
||||
CefProxyHandlerCppToC::CefProxyHandlerCppToC(CefProxyHandler* cls)
|
||||
: CefCppToC<CefProxyHandlerCppToC, CefProxyHandler, cef_proxy_handler_t>(
|
||||
cls)
|
||||
{
|
||||
cls) {
|
||||
struct_.struct_.get_proxy_for_url = proxy_handler_get_proxy_for_url;
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _PROXYHANDLER_CPPTOC_H
|
||||
#define _PROXYHANDLER_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_PROXY_HANDLER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_PROXY_HANDLER_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef USING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
|
||||
#else // USING_CEF_SHARED
|
||||
#else // USING_CEF_SHARED
|
||||
|
||||
#include "include/cef_proxy_handler.h"
|
||||
#include "include/capi/cef_proxy_handler_capi.h"
|
||||
@ -25,13 +26,12 @@
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefProxyHandlerCppToC
|
||||
: public CefCppToC<CefProxyHandlerCppToC, CefProxyHandler,
|
||||
cef_proxy_handler_t>
|
||||
{
|
||||
public:
|
||||
CefProxyHandlerCppToC(CefProxyHandler* cls);
|
||||
cef_proxy_handler_t> {
|
||||
public:
|
||||
explicit CefProxyHandlerCppToC(CefProxyHandler* cls);
|
||||
virtual ~CefProxyHandlerCppToC() {}
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _PROXYHANDLER_CPPTOC_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_PROXY_HANDLER_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -16,8 +16,7 @@
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
size_t CEF_CALLBACK read_handler_read(struct _cef_read_handler_t* self,
|
||||
void* ptr, size_t size, size_t n)
|
||||
{
|
||||
void* ptr, size_t size, size_t n) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -39,8 +38,7 @@ size_t CEF_CALLBACK read_handler_read(struct _cef_read_handler_t* self,
|
||||
}
|
||||
|
||||
int CEF_CALLBACK read_handler_seek(struct _cef_read_handler_t* self,
|
||||
long offset, int whence)
|
||||
{
|
||||
int64 offset, int whence) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -56,8 +54,7 @@ int CEF_CALLBACK read_handler_seek(struct _cef_read_handler_t* self,
|
||||
return _retval;
|
||||
}
|
||||
|
||||
long CEF_CALLBACK read_handler_tell(struct _cef_read_handler_t* self)
|
||||
{
|
||||
int64 CEF_CALLBACK read_handler_tell(struct _cef_read_handler_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -65,14 +62,13 @@ long CEF_CALLBACK read_handler_tell(struct _cef_read_handler_t* self)
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
long _retval = CefReadHandlerCppToC::Get(self)->Tell();
|
||||
int64 _retval = CefReadHandlerCppToC::Get(self)->Tell();
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK read_handler_eof(struct _cef_read_handler_t* self)
|
||||
{
|
||||
int CEF_CALLBACK read_handler_eof(struct _cef_read_handler_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -90,8 +86,7 @@ int CEF_CALLBACK read_handler_eof(struct _cef_read_handler_t* self)
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefReadHandlerCppToC::CefReadHandlerCppToC(CefReadHandler* cls)
|
||||
: CefCppToC<CefReadHandlerCppToC, CefReadHandler, cef_read_handler_t>(cls)
|
||||
{
|
||||
: CefCppToC<CefReadHandlerCppToC, CefReadHandler, cef_read_handler_t>(cls) {
|
||||
struct_.struct_.read = read_handler_read;
|
||||
struct_.struct_.seek = read_handler_seek;
|
||||
struct_.struct_.tell = read_handler_tell;
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _READHANDLER_CPPTOC_H
|
||||
#define _READHANDLER_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_READ_HANDLER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_READ_HANDLER_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef USING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
|
||||
#else // USING_CEF_SHARED
|
||||
#else // USING_CEF_SHARED
|
||||
|
||||
#include "include/cef_stream.h"
|
||||
#include "include/capi/cef_stream_capi.h"
|
||||
@ -24,13 +25,13 @@
|
||||
// Wrap a C++ class with a C structure.
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefReadHandlerCppToC
|
||||
: public CefCppToC<CefReadHandlerCppToC, CefReadHandler, cef_read_handler_t>
|
||||
{
|
||||
public:
|
||||
CefReadHandlerCppToC(CefReadHandler* cls);
|
||||
: public CefCppToC<CefReadHandlerCppToC, CefReadHandler,
|
||||
cef_read_handler_t> {
|
||||
public:
|
||||
explicit CefReadHandlerCppToC(CefReadHandler* cls);
|
||||
virtual ~CefReadHandlerCppToC() {}
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _READHANDLER_CPPTOC_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_READ_HANDLER_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -18,8 +18,7 @@
|
||||
|
||||
int CEF_CALLBACK render_handler_get_view_rect(
|
||||
struct _cef_render_handler_t* self, cef_browser_t* browser,
|
||||
cef_rect_t* rect)
|
||||
{
|
||||
cef_rect_t* rect) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -52,8 +51,7 @@ int CEF_CALLBACK render_handler_get_view_rect(
|
||||
|
||||
int CEF_CALLBACK render_handler_get_screen_rect(
|
||||
struct _cef_render_handler_t* self, cef_browser_t* browser,
|
||||
cef_rect_t* rect)
|
||||
{
|
||||
cef_rect_t* rect) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -86,8 +84,7 @@ int CEF_CALLBACK render_handler_get_screen_rect(
|
||||
|
||||
int CEF_CALLBACK render_handler_get_screen_point(
|
||||
struct _cef_render_handler_t* self, cef_browser_t* browser, int viewX,
|
||||
int viewY, int* screenX, int* screenY)
|
||||
{
|
||||
int viewY, int* screenX, int* screenY) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -131,8 +128,7 @@ int CEF_CALLBACK render_handler_get_screen_point(
|
||||
}
|
||||
|
||||
void CEF_CALLBACK render_handler_on_popup_show(
|
||||
struct _cef_render_handler_t* self, cef_browser_t* browser, int show)
|
||||
{
|
||||
struct _cef_render_handler_t* self, cef_browser_t* browser, int show) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -151,8 +147,7 @@ void CEF_CALLBACK render_handler_on_popup_show(
|
||||
|
||||
void CEF_CALLBACK render_handler_on_popup_size(
|
||||
struct _cef_render_handler_t* self, cef_browser_t* browser,
|
||||
const cef_rect_t* rect)
|
||||
{
|
||||
const cef_rect_t* rect) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -178,8 +173,8 @@ void CEF_CALLBACK render_handler_on_popup_size(
|
||||
|
||||
void CEF_CALLBACK render_handler_on_paint(struct _cef_render_handler_t* self,
|
||||
cef_browser_t* browser, enum cef_paint_element_type_t type,
|
||||
size_t dirtyRectsCount, cef_rect_t const* dirtyRects, const void* buffer)
|
||||
{
|
||||
size_t dirtyRectsCount, cef_rect_t const* dirtyRects,
|
||||
const void* buffer) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -216,8 +211,7 @@ void CEF_CALLBACK render_handler_on_paint(struct _cef_render_handler_t* self,
|
||||
|
||||
void CEF_CALLBACK render_handler_on_cursor_change(
|
||||
struct _cef_render_handler_t* self, cef_browser_t* browser,
|
||||
cef_cursor_handle_t cursor)
|
||||
{
|
||||
cef_cursor_handle_t cursor) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -239,8 +233,7 @@ void CEF_CALLBACK render_handler_on_cursor_change(
|
||||
|
||||
CefRenderHandlerCppToC::CefRenderHandlerCppToC(CefRenderHandler* cls)
|
||||
: CefCppToC<CefRenderHandlerCppToC, CefRenderHandler, cef_render_handler_t>(
|
||||
cls)
|
||||
{
|
||||
cls) {
|
||||
struct_.struct_.get_view_rect = render_handler_get_view_rect;
|
||||
struct_.struct_.get_screen_rect = render_handler_get_screen_rect;
|
||||
struct_.struct_.get_screen_point = render_handler_get_screen_point;
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _RENDERHANDLER_CPPTOC_H
|
||||
#define _RENDERHANDLER_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_RENDER_HANDLER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_RENDER_HANDLER_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef USING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
|
||||
#else // USING_CEF_SHARED
|
||||
#else // USING_CEF_SHARED
|
||||
|
||||
#include "include/cef_render_handler.h"
|
||||
#include "include/capi/cef_render_handler_capi.h"
|
||||
@ -27,13 +28,12 @@
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefRenderHandlerCppToC
|
||||
: public CefCppToC<CefRenderHandlerCppToC, CefRenderHandler,
|
||||
cef_render_handler_t>
|
||||
{
|
||||
public:
|
||||
CefRenderHandlerCppToC(CefRenderHandler* cls);
|
||||
cef_render_handler_t> {
|
||||
public:
|
||||
explicit CefRenderHandlerCppToC(CefRenderHandler* cls);
|
||||
virtual ~CefRenderHandlerCppToC() {}
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _RENDERHANDLER_CPPTOC_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_RENDER_HANDLER_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -17,8 +17,7 @@
|
||||
|
||||
// GLOBAL FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
CEF_EXPORT cef_request_t* cef_request_create()
|
||||
{
|
||||
CEF_EXPORT cef_request_t* cef_request_create() {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
@ -31,8 +30,8 @@ CEF_EXPORT cef_request_t* cef_request_create()
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK request_get_url(struct _cef_request_t* self)
|
||||
{
|
||||
cef_string_userfree_t CEF_CALLBACK request_get_url(
|
||||
struct _cef_request_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -47,8 +46,7 @@ cef_string_userfree_t CEF_CALLBACK request_get_url(struct _cef_request_t* self)
|
||||
}
|
||||
|
||||
void CEF_CALLBACK request_set_url(struct _cef_request_t* self,
|
||||
const cef_string_t* url)
|
||||
{
|
||||
const cef_string_t* url) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -65,8 +63,7 @@ void CEF_CALLBACK request_set_url(struct _cef_request_t* self,
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK request_get_method(
|
||||
struct _cef_request_t* self)
|
||||
{
|
||||
struct _cef_request_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -81,8 +78,7 @@ cef_string_userfree_t CEF_CALLBACK request_get_method(
|
||||
}
|
||||
|
||||
void CEF_CALLBACK request_set_method(struct _cef_request_t* self,
|
||||
const cef_string_t* method)
|
||||
{
|
||||
const cef_string_t* method) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -99,8 +95,7 @@ void CEF_CALLBACK request_set_method(struct _cef_request_t* self,
|
||||
}
|
||||
|
||||
struct _cef_post_data_t* CEF_CALLBACK request_get_post_data(
|
||||
struct _cef_request_t* self)
|
||||
{
|
||||
struct _cef_request_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -115,8 +110,7 @@ struct _cef_post_data_t* CEF_CALLBACK request_get_post_data(
|
||||
}
|
||||
|
||||
void CEF_CALLBACK request_set_post_data(struct _cef_request_t* self,
|
||||
struct _cef_post_data_t* postData)
|
||||
{
|
||||
struct _cef_post_data_t* postData) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -133,8 +127,7 @@ void CEF_CALLBACK request_set_post_data(struct _cef_request_t* self,
|
||||
}
|
||||
|
||||
void CEF_CALLBACK request_get_header_map(struct _cef_request_t* self,
|
||||
cef_string_multimap_t headerMap)
|
||||
{
|
||||
cef_string_multimap_t headerMap) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -146,7 +139,7 @@ void CEF_CALLBACK request_get_header_map(struct _cef_request_t* self,
|
||||
return;
|
||||
|
||||
// Translate param: headerMap; type: string_map_multi_byref
|
||||
std::multimap<CefString,CefString> headerMapMultimap;
|
||||
std::multimap<CefString, CefString> headerMapMultimap;
|
||||
transfer_string_multimap_contents(headerMap, headerMapMultimap);
|
||||
|
||||
// Execute
|
||||
@ -159,8 +152,7 @@ void CEF_CALLBACK request_get_header_map(struct _cef_request_t* self,
|
||||
}
|
||||
|
||||
void CEF_CALLBACK request_set_header_map(struct _cef_request_t* self,
|
||||
cef_string_multimap_t headerMap)
|
||||
{
|
||||
cef_string_multimap_t headerMap) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -172,7 +164,7 @@ void CEF_CALLBACK request_set_header_map(struct _cef_request_t* self,
|
||||
return;
|
||||
|
||||
// Translate param: headerMap; type: string_map_multi_byref_const
|
||||
std::multimap<CefString,CefString> headerMapMultimap;
|
||||
std::multimap<CefString, CefString> headerMapMultimap;
|
||||
transfer_string_multimap_contents(headerMap, headerMapMultimap);
|
||||
|
||||
// Execute
|
||||
@ -182,8 +174,7 @@ void CEF_CALLBACK request_set_header_map(struct _cef_request_t* self,
|
||||
|
||||
void CEF_CALLBACK request_set(struct _cef_request_t* self,
|
||||
const cef_string_t* url, const cef_string_t* method,
|
||||
struct _cef_post_data_t* postData, cef_string_multimap_t headerMap)
|
||||
{
|
||||
struct _cef_post_data_t* postData, cef_string_multimap_t headerMap) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -204,7 +195,7 @@ void CEF_CALLBACK request_set(struct _cef_request_t* self,
|
||||
// Unverified params: postData
|
||||
|
||||
// Translate param: headerMap; type: string_map_multi_byref_const
|
||||
std::multimap<CefString,CefString> headerMapMultimap;
|
||||
std::multimap<CefString, CefString> headerMapMultimap;
|
||||
transfer_string_multimap_contents(headerMap, headerMapMultimap);
|
||||
|
||||
// Execute
|
||||
@ -216,8 +207,7 @@ void CEF_CALLBACK request_set(struct _cef_request_t* self,
|
||||
}
|
||||
|
||||
enum cef_weburlrequest_flags_t CEF_CALLBACK request_get_flags(
|
||||
struct _cef_request_t* self)
|
||||
{
|
||||
struct _cef_request_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -232,8 +222,7 @@ enum cef_weburlrequest_flags_t CEF_CALLBACK request_get_flags(
|
||||
}
|
||||
|
||||
void CEF_CALLBACK request_set_flags(struct _cef_request_t* self,
|
||||
enum cef_weburlrequest_flags_t flags)
|
||||
{
|
||||
enum cef_weburlrequest_flags_t flags) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -246,8 +235,7 @@ void CEF_CALLBACK request_set_flags(struct _cef_request_t* self,
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK request_get_first_party_for_cookies(
|
||||
struct _cef_request_t* self)
|
||||
{
|
||||
struct _cef_request_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -262,8 +250,7 @@ cef_string_userfree_t CEF_CALLBACK request_get_first_party_for_cookies(
|
||||
}
|
||||
|
||||
void CEF_CALLBACK request_set_first_party_for_cookies(
|
||||
struct _cef_request_t* self, const cef_string_t* url)
|
||||
{
|
||||
struct _cef_request_t* self, const cef_string_t* url) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -283,8 +270,7 @@ void CEF_CALLBACK request_set_first_party_for_cookies(
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefRequestCppToC::CefRequestCppToC(CefRequest* cls)
|
||||
: CefCppToC<CefRequestCppToC, CefRequest, cef_request_t>(cls)
|
||||
{
|
||||
: CefCppToC<CefRequestCppToC, CefRequest, cef_request_t>(cls) {
|
||||
struct_.struct_.get_url = request_get_url;
|
||||
struct_.struct_.set_url = request_set_url;
|
||||
struct_.struct_.get_method = request_get_method;
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _REQUEST_CPPTOC_H
|
||||
#define _REQUEST_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_REQUEST_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_REQUEST_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef BUILDING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed DLL-side only")
|
||||
#else // BUILDING_CEF_SHARED
|
||||
#else // BUILDING_CEF_SHARED
|
||||
|
||||
#include "include/cef_request.h"
|
||||
#include "include/capi/cef_request_capi.h"
|
||||
@ -24,13 +25,12 @@
|
||||
// Wrap a C++ class with a C structure.
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefRequestCppToC
|
||||
: public CefCppToC<CefRequestCppToC, CefRequest, cef_request_t>
|
||||
{
|
||||
public:
|
||||
CefRequestCppToC(CefRequest* cls);
|
||||
: public CefCppToC<CefRequestCppToC, CefRequest, cef_request_t> {
|
||||
public:
|
||||
explicit CefRequestCppToC(CefRequest* cls);
|
||||
virtual ~CefRequestCppToC() {}
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _REQUEST_CPPTOC_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_REQUEST_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -25,8 +25,7 @@
|
||||
int CEF_CALLBACK request_handler_on_before_browse(
|
||||
struct _cef_request_handler_t* self, cef_browser_t* browser,
|
||||
cef_frame_t* frame, cef_request_t* request,
|
||||
enum cef_handler_navtype_t navType, int isRedirect)
|
||||
{
|
||||
enum cef_handler_navtype_t navType, int isRedirect) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -61,8 +60,7 @@ int CEF_CALLBACK request_handler_on_before_resource_load(
|
||||
struct _cef_request_handler_t* self, cef_browser_t* browser,
|
||||
cef_request_t* request, cef_string_t* redirectUrl,
|
||||
struct _cef_stream_reader_t** resourceStream,
|
||||
struct _cef_response_t* response, int loadFlags)
|
||||
{
|
||||
struct _cef_response_t* response, int loadFlags) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -123,8 +121,7 @@ int CEF_CALLBACK request_handler_on_before_resource_load(
|
||||
|
||||
void CEF_CALLBACK request_handler_on_resource_redirect(
|
||||
struct _cef_request_handler_t* self, cef_browser_t* browser,
|
||||
const cef_string_t* old_url, cef_string_t* new_url)
|
||||
{
|
||||
const cef_string_t* old_url, cef_string_t* new_url) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -156,8 +153,7 @@ void CEF_CALLBACK request_handler_on_resource_redirect(
|
||||
void CEF_CALLBACK request_handler_on_resource_response(
|
||||
struct _cef_request_handler_t* self, cef_browser_t* browser,
|
||||
const cef_string_t* url, struct _cef_response_t* response,
|
||||
cef_content_filter_t** filter)
|
||||
{
|
||||
cef_content_filter_t** filter) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -207,8 +203,7 @@ void CEF_CALLBACK request_handler_on_resource_response(
|
||||
|
||||
int CEF_CALLBACK request_handler_on_protocol_execution(
|
||||
struct _cef_request_handler_t* self, cef_browser_t* browser,
|
||||
const cef_string_t* url, int* allowOSExecution)
|
||||
{
|
||||
const cef_string_t* url, int* allowOSExecution) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -248,8 +243,7 @@ int CEF_CALLBACK request_handler_on_protocol_execution(
|
||||
int CEF_CALLBACK request_handler_get_download_handler(
|
||||
struct _cef_request_handler_t* self, cef_browser_t* browser,
|
||||
const cef_string_t* mimeType, const cef_string_t* fileName,
|
||||
int64 contentLength, cef_download_handler_t** handler)
|
||||
{
|
||||
int64 contentLength, cef_download_handler_t** handler) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -305,8 +299,7 @@ int CEF_CALLBACK request_handler_get_auth_credentials(
|
||||
struct _cef_request_handler_t* self, cef_browser_t* browser, int isProxy,
|
||||
const cef_string_t* host, int port, const cef_string_t* realm,
|
||||
const cef_string_t* scheme, cef_string_t* username,
|
||||
cef_string_t* password)
|
||||
{
|
||||
cef_string_t* password) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -359,8 +352,7 @@ int CEF_CALLBACK request_handler_get_auth_credentials(
|
||||
|
||||
CefRequestHandlerCppToC::CefRequestHandlerCppToC(CefRequestHandler* cls)
|
||||
: CefCppToC<CefRequestHandlerCppToC, CefRequestHandler,
|
||||
cef_request_handler_t>(cls)
|
||||
{
|
||||
cef_request_handler_t>(cls) {
|
||||
struct_.struct_.on_before_browse = request_handler_on_before_browse;
|
||||
struct_.struct_.on_before_resource_load =
|
||||
request_handler_on_before_resource_load;
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _REQUESTHANDLER_CPPTOC_H
|
||||
#define _REQUESTHANDLER_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_REQUEST_HANDLER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_REQUEST_HANDLER_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef USING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
|
||||
#else // USING_CEF_SHARED
|
||||
#else // USING_CEF_SHARED
|
||||
|
||||
#include "include/cef_request_handler.h"
|
||||
#include "include/capi/cef_request_handler_capi.h"
|
||||
@ -29,13 +30,12 @@
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefRequestHandlerCppToC
|
||||
: public CefCppToC<CefRequestHandlerCppToC, CefRequestHandler,
|
||||
cef_request_handler_t>
|
||||
{
|
||||
public:
|
||||
CefRequestHandlerCppToC(CefRequestHandler* cls);
|
||||
cef_request_handler_t> {
|
||||
public:
|
||||
explicit CefRequestHandlerCppToC(CefRequestHandler* cls);
|
||||
virtual ~CefRequestHandlerCppToC() {}
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _REQUESTHANDLER_CPPTOC_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_REQUEST_HANDLER_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -16,8 +16,7 @@
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
int CEF_CALLBACK response_get_status(struct _cef_response_t* self)
|
||||
{
|
||||
int CEF_CALLBACK response_get_status(struct _cef_response_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -31,8 +30,8 @@ int CEF_CALLBACK response_get_status(struct _cef_response_t* self)
|
||||
return _retval;
|
||||
}
|
||||
|
||||
void CEF_CALLBACK response_set_status(struct _cef_response_t* self, int status)
|
||||
{
|
||||
void CEF_CALLBACK response_set_status(struct _cef_response_t* self,
|
||||
int status) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -45,8 +44,7 @@ void CEF_CALLBACK response_set_status(struct _cef_response_t* self, int status)
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK response_get_status_text(
|
||||
struct _cef_response_t* self)
|
||||
{
|
||||
struct _cef_response_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -61,8 +59,7 @@ cef_string_userfree_t CEF_CALLBACK response_get_status_text(
|
||||
}
|
||||
|
||||
void CEF_CALLBACK response_set_status_text(struct _cef_response_t* self,
|
||||
const cef_string_t* statusText)
|
||||
{
|
||||
const cef_string_t* statusText) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -79,8 +76,7 @@ void CEF_CALLBACK response_set_status_text(struct _cef_response_t* self,
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK response_get_mime_type(
|
||||
struct _cef_response_t* self)
|
||||
{
|
||||
struct _cef_response_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -95,8 +91,7 @@ cef_string_userfree_t CEF_CALLBACK response_get_mime_type(
|
||||
}
|
||||
|
||||
void CEF_CALLBACK response_set_mime_type(struct _cef_response_t* self,
|
||||
const cef_string_t* mimeType)
|
||||
{
|
||||
const cef_string_t* mimeType) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -113,8 +108,7 @@ void CEF_CALLBACK response_set_mime_type(struct _cef_response_t* self,
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK response_get_header(
|
||||
struct _cef_response_t* self, const cef_string_t* name)
|
||||
{
|
||||
struct _cef_response_t* self, const cef_string_t* name) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -134,8 +128,7 @@ cef_string_userfree_t CEF_CALLBACK response_get_header(
|
||||
}
|
||||
|
||||
void CEF_CALLBACK response_get_header_map(struct _cef_response_t* self,
|
||||
cef_string_multimap_t headerMap)
|
||||
{
|
||||
cef_string_multimap_t headerMap) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -147,7 +140,7 @@ void CEF_CALLBACK response_get_header_map(struct _cef_response_t* self,
|
||||
return;
|
||||
|
||||
// Translate param: headerMap; type: string_map_multi_byref
|
||||
std::multimap<CefString,CefString> headerMapMultimap;
|
||||
std::multimap<CefString, CefString> headerMapMultimap;
|
||||
transfer_string_multimap_contents(headerMap, headerMapMultimap);
|
||||
|
||||
// Execute
|
||||
@ -160,8 +153,7 @@ void CEF_CALLBACK response_get_header_map(struct _cef_response_t* self,
|
||||
}
|
||||
|
||||
void CEF_CALLBACK response_set_header_map(struct _cef_response_t* self,
|
||||
cef_string_multimap_t headerMap)
|
||||
{
|
||||
cef_string_multimap_t headerMap) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -173,7 +165,7 @@ void CEF_CALLBACK response_set_header_map(struct _cef_response_t* self,
|
||||
return;
|
||||
|
||||
// Translate param: headerMap; type: string_map_multi_byref_const
|
||||
std::multimap<CefString,CefString> headerMapMultimap;
|
||||
std::multimap<CefString, CefString> headerMapMultimap;
|
||||
transfer_string_multimap_contents(headerMap, headerMapMultimap);
|
||||
|
||||
// Execute
|
||||
@ -185,8 +177,7 @@ void CEF_CALLBACK response_set_header_map(struct _cef_response_t* self,
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefResponseCppToC::CefResponseCppToC(CefResponse* cls)
|
||||
: CefCppToC<CefResponseCppToC, CefResponse, cef_response_t>(cls)
|
||||
{
|
||||
: CefCppToC<CefResponseCppToC, CefResponse, cef_response_t>(cls) {
|
||||
struct_.struct_.get_status = response_get_status;
|
||||
struct_.struct_.set_status = response_set_status;
|
||||
struct_.struct_.get_status_text = response_get_status_text;
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _RESPONSE_CPPTOC_H
|
||||
#define _RESPONSE_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_RESPONSE_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_RESPONSE_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef BUILDING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed DLL-side only")
|
||||
#else // BUILDING_CEF_SHARED
|
||||
#else // BUILDING_CEF_SHARED
|
||||
|
||||
#include "include/cef_response.h"
|
||||
#include "include/capi/cef_response_capi.h"
|
||||
@ -24,13 +25,12 @@
|
||||
// Wrap a C++ class with a C structure.
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefResponseCppToC
|
||||
: public CefCppToC<CefResponseCppToC, CefResponse, cef_response_t>
|
||||
{
|
||||
public:
|
||||
CefResponseCppToC(CefResponse* cls);
|
||||
: public CefCppToC<CefResponseCppToC, CefResponse, cef_response_t> {
|
||||
public:
|
||||
explicit CefResponseCppToC(CefResponse* cls);
|
||||
virtual ~CefResponseCppToC() {}
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _RESPONSE_CPPTOC_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_RESPONSE_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -16,8 +16,7 @@
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
void CEF_CALLBACK scheme_handler_callback_headers_available(
|
||||
struct _cef_scheme_handler_callback_t* self)
|
||||
{
|
||||
struct _cef_scheme_handler_callback_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -29,8 +28,7 @@ void CEF_CALLBACK scheme_handler_callback_headers_available(
|
||||
}
|
||||
|
||||
void CEF_CALLBACK scheme_handler_callback_bytes_available(
|
||||
struct _cef_scheme_handler_callback_t* self)
|
||||
{
|
||||
struct _cef_scheme_handler_callback_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -42,8 +40,7 @@ void CEF_CALLBACK scheme_handler_callback_bytes_available(
|
||||
}
|
||||
|
||||
void CEF_CALLBACK scheme_handler_callback_cancel(
|
||||
struct _cef_scheme_handler_callback_t* self)
|
||||
{
|
||||
struct _cef_scheme_handler_callback_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -60,8 +57,7 @@ void CEF_CALLBACK scheme_handler_callback_cancel(
|
||||
CefSchemeHandlerCallbackCppToC::CefSchemeHandlerCallbackCppToC(
|
||||
CefSchemeHandlerCallback* cls)
|
||||
: CefCppToC<CefSchemeHandlerCallbackCppToC, CefSchemeHandlerCallback,
|
||||
cef_scheme_handler_callback_t>(cls)
|
||||
{
|
||||
cef_scheme_handler_callback_t>(cls) {
|
||||
struct_.struct_.headers_available = scheme_handler_callback_headers_available;
|
||||
struct_.struct_.bytes_available = scheme_handler_callback_bytes_available;
|
||||
struct_.struct_.cancel = scheme_handler_callback_cancel;
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _SCHEMEHANDLERCALLBACK_CPPTOC_H
|
||||
#define _SCHEMEHANDLERCALLBACK_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_SCHEME_HANDLER_CALLBACK_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_SCHEME_HANDLER_CALLBACK_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef BUILDING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed DLL-side only")
|
||||
#else // BUILDING_CEF_SHARED
|
||||
#else // BUILDING_CEF_SHARED
|
||||
|
||||
#include "include/cef_scheme.h"
|
||||
#include "include/capi/cef_scheme_capi.h"
|
||||
@ -31,13 +32,12 @@
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefSchemeHandlerCallbackCppToC
|
||||
: public CefCppToC<CefSchemeHandlerCallbackCppToC, CefSchemeHandlerCallback,
|
||||
cef_scheme_handler_callback_t>
|
||||
{
|
||||
public:
|
||||
CefSchemeHandlerCallbackCppToC(CefSchemeHandlerCallback* cls);
|
||||
cef_scheme_handler_callback_t> {
|
||||
public:
|
||||
explicit CefSchemeHandlerCallbackCppToC(CefSchemeHandlerCallback* cls);
|
||||
virtual ~CefSchemeHandlerCallbackCppToC() {}
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _SCHEMEHANDLERCALLBACK_CPPTOC_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_SCHEME_HANDLER_CALLBACK_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -20,8 +20,7 @@
|
||||
|
||||
int CEF_CALLBACK scheme_handler_process_request(
|
||||
struct _cef_scheme_handler_t* self, cef_request_t* request,
|
||||
cef_scheme_handler_callback_t* callback)
|
||||
{
|
||||
cef_scheme_handler_callback_t* callback) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -47,8 +46,7 @@ int CEF_CALLBACK scheme_handler_process_request(
|
||||
|
||||
void CEF_CALLBACK scheme_handler_get_response_headers(
|
||||
struct _cef_scheme_handler_t* self, cef_response_t* response,
|
||||
int64* response_length, cef_string_t* redirectUrl)
|
||||
{
|
||||
int64* response_length, cef_string_t* redirectUrl) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -85,8 +83,7 @@ void CEF_CALLBACK scheme_handler_get_response_headers(
|
||||
|
||||
int CEF_CALLBACK scheme_handler_read_response(
|
||||
struct _cef_scheme_handler_t* self, void* data_out, int bytes_to_read,
|
||||
int* bytes_read, cef_scheme_handler_callback_t* callback)
|
||||
{
|
||||
int* bytes_read, cef_scheme_handler_callback_t* callback) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -123,8 +120,7 @@ int CEF_CALLBACK scheme_handler_read_response(
|
||||
return _retval;
|
||||
}
|
||||
|
||||
void CEF_CALLBACK scheme_handler_cancel(struct _cef_scheme_handler_t* self)
|
||||
{
|
||||
void CEF_CALLBACK scheme_handler_cancel(struct _cef_scheme_handler_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -140,8 +136,7 @@ void CEF_CALLBACK scheme_handler_cancel(struct _cef_scheme_handler_t* self)
|
||||
|
||||
CefSchemeHandlerCppToC::CefSchemeHandlerCppToC(CefSchemeHandler* cls)
|
||||
: CefCppToC<CefSchemeHandlerCppToC, CefSchemeHandler, cef_scheme_handler_t>(
|
||||
cls)
|
||||
{
|
||||
cls) {
|
||||
struct_.struct_.process_request = scheme_handler_process_request;
|
||||
struct_.struct_.get_response_headers = scheme_handler_get_response_headers;
|
||||
struct_.struct_.read_response = scheme_handler_read_response;
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _SCHEMEHANDLER_CPPTOC_H
|
||||
#define _SCHEMEHANDLER_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_SCHEME_HANDLER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_SCHEME_HANDLER_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef USING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
|
||||
#else // USING_CEF_SHARED
|
||||
#else // USING_CEF_SHARED
|
||||
|
||||
#include "include/cef_scheme.h"
|
||||
#include "include/capi/cef_scheme_capi.h"
|
||||
@ -31,13 +32,12 @@
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefSchemeHandlerCppToC
|
||||
: public CefCppToC<CefSchemeHandlerCppToC, CefSchemeHandler,
|
||||
cef_scheme_handler_t>
|
||||
{
|
||||
public:
|
||||
CefSchemeHandlerCppToC(CefSchemeHandler* cls);
|
||||
cef_scheme_handler_t> {
|
||||
public:
|
||||
explicit CefSchemeHandlerCppToC(CefSchemeHandler* cls);
|
||||
virtual ~CefSchemeHandlerCppToC() {}
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _SCHEMEHANDLER_CPPTOC_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_SCHEME_HANDLER_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -20,8 +20,7 @@
|
||||
|
||||
struct _cef_scheme_handler_t* CEF_CALLBACK scheme_handler_factory_create(
|
||||
struct _cef_scheme_handler_factory_t* self, cef_browser_t* browser,
|
||||
const cef_string_t* scheme_name, cef_request_t* request)
|
||||
{
|
||||
const cef_string_t* scheme_name, cef_request_t* request) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -57,8 +56,7 @@ struct _cef_scheme_handler_t* CEF_CALLBACK scheme_handler_factory_create(
|
||||
CefSchemeHandlerFactoryCppToC::CefSchemeHandlerFactoryCppToC(
|
||||
CefSchemeHandlerFactory* cls)
|
||||
: CefCppToC<CefSchemeHandlerFactoryCppToC, CefSchemeHandlerFactory,
|
||||
cef_scheme_handler_factory_t>(cls)
|
||||
{
|
||||
cef_scheme_handler_factory_t>(cls) {
|
||||
struct_.struct_.create = scheme_handler_factory_create;
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _SCHEMEHANDLERFACTORY_CPPTOC_H
|
||||
#define _SCHEMEHANDLERFACTORY_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_SCHEME_HANDLER_FACTORY_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_SCHEME_HANDLER_FACTORY_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef USING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
|
||||
#else // USING_CEF_SHARED
|
||||
#else // USING_CEF_SHARED
|
||||
|
||||
#include "include/cef_scheme.h"
|
||||
#include "include/capi/cef_scheme_capi.h"
|
||||
@ -31,13 +32,12 @@
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefSchemeHandlerFactoryCppToC
|
||||
: public CefCppToC<CefSchemeHandlerFactoryCppToC, CefSchemeHandlerFactory,
|
||||
cef_scheme_handler_factory_t>
|
||||
{
|
||||
public:
|
||||
CefSchemeHandlerFactoryCppToC(CefSchemeHandlerFactory* cls);
|
||||
cef_scheme_handler_factory_t> {
|
||||
public:
|
||||
explicit CefSchemeHandlerFactoryCppToC(CefSchemeHandlerFactory* cls);
|
||||
virtual ~CefSchemeHandlerFactoryCppToC() {}
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _SCHEMEHANDLERFACTORY_CPPTOC_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_SCHEME_HANDLER_FACTORY_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -18,8 +18,7 @@
|
||||
int CEF_CALLBACK storage_visitor_visit(struct _cef_storage_visitor_t* self,
|
||||
enum cef_storage_type_t type, const cef_string_t* origin,
|
||||
const cef_string_t* key, const cef_string_t* value, int count, int total,
|
||||
int* deleteData)
|
||||
{
|
||||
int* deleteData) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -68,8 +67,7 @@ int CEF_CALLBACK storage_visitor_visit(struct _cef_storage_visitor_t* self,
|
||||
|
||||
CefStorageVisitorCppToC::CefStorageVisitorCppToC(CefStorageVisitor* cls)
|
||||
: CefCppToC<CefStorageVisitorCppToC, CefStorageVisitor,
|
||||
cef_storage_visitor_t>(cls)
|
||||
{
|
||||
cef_storage_visitor_t>(cls) {
|
||||
struct_.struct_.visit = storage_visitor_visit;
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _STORAGEVISITOR_CPPTOC_H
|
||||
#define _STORAGEVISITOR_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_STORAGE_VISITOR_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_STORAGE_VISITOR_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef USING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
|
||||
#else // USING_CEF_SHARED
|
||||
#else // USING_CEF_SHARED
|
||||
|
||||
#include "include/cef_storage.h"
|
||||
#include "include/capi/cef_storage_capi.h"
|
||||
@ -25,13 +26,12 @@
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefStorageVisitorCppToC
|
||||
: public CefCppToC<CefStorageVisitorCppToC, CefStorageVisitor,
|
||||
cef_storage_visitor_t>
|
||||
{
|
||||
public:
|
||||
CefStorageVisitorCppToC(CefStorageVisitor* cls);
|
||||
cef_storage_visitor_t> {
|
||||
public:
|
||||
explicit CefStorageVisitorCppToC(CefStorageVisitor* cls);
|
||||
virtual ~CefStorageVisitorCppToC() {}
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _STORAGEVISITOR_CPPTOC_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_STORAGE_VISITOR_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -17,8 +17,7 @@
|
||||
// GLOBAL FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
CEF_EXPORT cef_stream_reader_t* cef_stream_reader_create_for_file(
|
||||
const cef_string_t* fileName)
|
||||
{
|
||||
const cef_string_t* fileName) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: fileName; type: string_byref_const
|
||||
@ -35,8 +34,7 @@ CEF_EXPORT cef_stream_reader_t* cef_stream_reader_create_for_file(
|
||||
}
|
||||
|
||||
CEF_EXPORT cef_stream_reader_t* cef_stream_reader_create_for_data(void* data,
|
||||
size_t size)
|
||||
{
|
||||
size_t size) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: data; type: simple_byaddr
|
||||
@ -54,8 +52,7 @@ CEF_EXPORT cef_stream_reader_t* cef_stream_reader_create_for_data(void* data,
|
||||
}
|
||||
|
||||
CEF_EXPORT cef_stream_reader_t* cef_stream_reader_create_for_handler(
|
||||
cef_read_handler_t* handler)
|
||||
{
|
||||
cef_read_handler_t* handler) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: handler; type: refptr_diff
|
||||
@ -75,8 +72,7 @@ CEF_EXPORT cef_stream_reader_t* cef_stream_reader_create_for_handler(
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
size_t CEF_CALLBACK stream_reader_read(struct _cef_stream_reader_t* self,
|
||||
void* ptr, size_t size, size_t n)
|
||||
{
|
||||
void* ptr, size_t size, size_t n) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -98,8 +94,7 @@ size_t CEF_CALLBACK stream_reader_read(struct _cef_stream_reader_t* self,
|
||||
}
|
||||
|
||||
int CEF_CALLBACK stream_reader_seek(struct _cef_stream_reader_t* self,
|
||||
long offset, int whence)
|
||||
{
|
||||
int64 offset, int whence) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -115,8 +110,7 @@ int CEF_CALLBACK stream_reader_seek(struct _cef_stream_reader_t* self,
|
||||
return _retval;
|
||||
}
|
||||
|
||||
long CEF_CALLBACK stream_reader_tell(struct _cef_stream_reader_t* self)
|
||||
{
|
||||
int64 CEF_CALLBACK stream_reader_tell(struct _cef_stream_reader_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -124,14 +118,13 @@ long CEF_CALLBACK stream_reader_tell(struct _cef_stream_reader_t* self)
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
long _retval = CefStreamReaderCppToC::Get(self)->Tell();
|
||||
int64 _retval = CefStreamReaderCppToC::Get(self)->Tell();
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK stream_reader_eof(struct _cef_stream_reader_t* self)
|
||||
{
|
||||
int CEF_CALLBACK stream_reader_eof(struct _cef_stream_reader_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -150,8 +143,7 @@ int CEF_CALLBACK stream_reader_eof(struct _cef_stream_reader_t* self)
|
||||
|
||||
CefStreamReaderCppToC::CefStreamReaderCppToC(CefStreamReader* cls)
|
||||
: CefCppToC<CefStreamReaderCppToC, CefStreamReader, cef_stream_reader_t>(
|
||||
cls)
|
||||
{
|
||||
cls) {
|
||||
struct_.struct_.read = stream_reader_read;
|
||||
struct_.struct_.seek = stream_reader_seek;
|
||||
struct_.struct_.tell = stream_reader_tell;
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _STREAMREADER_CPPTOC_H
|
||||
#define _STREAMREADER_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_STREAM_READER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_STREAM_READER_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef BUILDING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed DLL-side only")
|
||||
#else // BUILDING_CEF_SHARED
|
||||
#else // BUILDING_CEF_SHARED
|
||||
|
||||
#include "include/cef_stream.h"
|
||||
#include "include/capi/cef_stream_capi.h"
|
||||
@ -25,13 +26,12 @@
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefStreamReaderCppToC
|
||||
: public CefCppToC<CefStreamReaderCppToC, CefStreamReader,
|
||||
cef_stream_reader_t>
|
||||
{
|
||||
public:
|
||||
CefStreamReaderCppToC(CefStreamReader* cls);
|
||||
cef_stream_reader_t> {
|
||||
public:
|
||||
explicit CefStreamReaderCppToC(CefStreamReader* cls);
|
||||
virtual ~CefStreamReaderCppToC() {}
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _STREAMREADER_CPPTOC_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_STREAM_READER_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -17,8 +17,7 @@
|
||||
// GLOBAL FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
CEF_EXPORT cef_stream_writer_t* cef_stream_writer_create_for_file(
|
||||
const cef_string_t* fileName)
|
||||
{
|
||||
const cef_string_t* fileName) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: fileName; type: string_byref_const
|
||||
@ -35,8 +34,7 @@ CEF_EXPORT cef_stream_writer_t* cef_stream_writer_create_for_file(
|
||||
}
|
||||
|
||||
CEF_EXPORT cef_stream_writer_t* cef_stream_writer_create_for_handler(
|
||||
cef_write_handler_t* handler)
|
||||
{
|
||||
cef_write_handler_t* handler) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: handler; type: refptr_diff
|
||||
@ -56,8 +54,7 @@ CEF_EXPORT cef_stream_writer_t* cef_stream_writer_create_for_handler(
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
size_t CEF_CALLBACK stream_writer_write(struct _cef_stream_writer_t* self,
|
||||
const void* ptr, size_t size, size_t n)
|
||||
{
|
||||
const void* ptr, size_t size, size_t n) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -79,8 +76,7 @@ size_t CEF_CALLBACK stream_writer_write(struct _cef_stream_writer_t* self,
|
||||
}
|
||||
|
||||
int CEF_CALLBACK stream_writer_seek(struct _cef_stream_writer_t* self,
|
||||
long offset, int whence)
|
||||
{
|
||||
int64 offset, int whence) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -96,8 +92,7 @@ int CEF_CALLBACK stream_writer_seek(struct _cef_stream_writer_t* self,
|
||||
return _retval;
|
||||
}
|
||||
|
||||
long CEF_CALLBACK stream_writer_tell(struct _cef_stream_writer_t* self)
|
||||
{
|
||||
int64 CEF_CALLBACK stream_writer_tell(struct _cef_stream_writer_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -105,14 +100,13 @@ long CEF_CALLBACK stream_writer_tell(struct _cef_stream_writer_t* self)
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
long _retval = CefStreamWriterCppToC::Get(self)->Tell();
|
||||
int64 _retval = CefStreamWriterCppToC::Get(self)->Tell();
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK stream_writer_flush(struct _cef_stream_writer_t* self)
|
||||
{
|
||||
int CEF_CALLBACK stream_writer_flush(struct _cef_stream_writer_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -131,8 +125,7 @@ int CEF_CALLBACK stream_writer_flush(struct _cef_stream_writer_t* self)
|
||||
|
||||
CefStreamWriterCppToC::CefStreamWriterCppToC(CefStreamWriter* cls)
|
||||
: CefCppToC<CefStreamWriterCppToC, CefStreamWriter, cef_stream_writer_t>(
|
||||
cls)
|
||||
{
|
||||
cls) {
|
||||
struct_.struct_.write = stream_writer_write;
|
||||
struct_.struct_.seek = stream_writer_seek;
|
||||
struct_.struct_.tell = stream_writer_tell;
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _STREAMWRITER_CPPTOC_H
|
||||
#define _STREAMWRITER_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_STREAM_WRITER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_STREAM_WRITER_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef BUILDING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed DLL-side only")
|
||||
#else // BUILDING_CEF_SHARED
|
||||
#else // BUILDING_CEF_SHARED
|
||||
|
||||
#include "include/cef_stream.h"
|
||||
#include "include/capi/cef_stream_capi.h"
|
||||
@ -25,13 +26,12 @@
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefStreamWriterCppToC
|
||||
: public CefCppToC<CefStreamWriterCppToC, CefStreamWriter,
|
||||
cef_stream_writer_t>
|
||||
{
|
||||
public:
|
||||
CefStreamWriterCppToC(CefStreamWriter* cls);
|
||||
cef_stream_writer_t> {
|
||||
public:
|
||||
explicit CefStreamWriterCppToC(CefStreamWriter* cls);
|
||||
virtual ~CefStreamWriterCppToC() {}
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _STREAMWRITER_CPPTOC_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_STREAM_WRITER_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -16,8 +16,7 @@
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
void CEF_CALLBACK task_execute(struct _cef_task_t* self,
|
||||
cef_thread_id_t threadId)
|
||||
{
|
||||
cef_thread_id_t threadId) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -33,8 +32,7 @@ void CEF_CALLBACK task_execute(struct _cef_task_t* self,
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefTaskCppToC::CefTaskCppToC(CefTask* cls)
|
||||
: CefCppToC<CefTaskCppToC, CefTask, cef_task_t>(cls)
|
||||
{
|
||||
: CefCppToC<CefTaskCppToC, CefTask, cef_task_t>(cls) {
|
||||
struct_.struct_.execute = task_execute;
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _TASK_CPPTOC_H
|
||||
#define _TASK_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_TASK_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_TASK_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef USING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
|
||||
#else // USING_CEF_SHARED
|
||||
#else // USING_CEF_SHARED
|
||||
|
||||
#include "include/cef_task.h"
|
||||
#include "include/capi/cef_task_capi.h"
|
||||
@ -24,13 +25,12 @@
|
||||
// Wrap a C++ class with a C structure.
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefTaskCppToC
|
||||
: public CefCppToC<CefTaskCppToC, CefTask, cef_task_t>
|
||||
{
|
||||
public:
|
||||
CefTaskCppToC(CefTask* cls);
|
||||
: public CefCppToC<CefTaskCppToC, CefTask, cef_task_t> {
|
||||
public:
|
||||
explicit CefTaskCppToC(CefTask* cls);
|
||||
virtual ~CefTaskCppToC() {}
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _TASK_CPPTOC_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_TASK_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -18,8 +18,7 @@
|
||||
|
||||
int CEF_CALLBACK v8accessor_get(struct _cef_v8accessor_t* self,
|
||||
const cef_string_t* name, struct _cef_v8value_t* object,
|
||||
struct _cef_v8value_t** retval, cef_string_t* exception)
|
||||
{
|
||||
struct _cef_v8value_t** retval, cef_string_t* exception) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -74,8 +73,7 @@ int CEF_CALLBACK v8accessor_get(struct _cef_v8accessor_t* self,
|
||||
|
||||
int CEF_CALLBACK v8accessor_set(struct _cef_v8accessor_t* self,
|
||||
const cef_string_t* name, struct _cef_v8value_t* object,
|
||||
struct _cef_v8value_t* value, cef_string_t* exception)
|
||||
{
|
||||
struct _cef_v8value_t* value, cef_string_t* exception) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -116,8 +114,7 @@ int CEF_CALLBACK v8accessor_set(struct _cef_v8accessor_t* self,
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefV8AccessorCppToC::CefV8AccessorCppToC(CefV8Accessor* cls)
|
||||
: CefCppToC<CefV8AccessorCppToC, CefV8Accessor, cef_v8accessor_t>(cls)
|
||||
{
|
||||
: CefCppToC<CefV8AccessorCppToC, CefV8Accessor, cef_v8accessor_t>(cls) {
|
||||
struct_.struct_.get = v8accessor_get;
|
||||
struct_.struct_.set = v8accessor_set;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _V8ACCESSOR_CPPTOC_H
|
||||
#define _V8ACCESSOR_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_V8ACCESSOR_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_V8ACCESSOR_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef USING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
|
||||
#else // USING_CEF_SHARED
|
||||
#else // USING_CEF_SHARED
|
||||
|
||||
#include "include/cef_v8.h"
|
||||
#include "include/capi/cef_v8_capi.h"
|
||||
@ -28,13 +29,12 @@
|
||||
// Wrap a C++ class with a C structure.
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefV8AccessorCppToC
|
||||
: public CefCppToC<CefV8AccessorCppToC, CefV8Accessor, cef_v8accessor_t>
|
||||
{
|
||||
public:
|
||||
CefV8AccessorCppToC(CefV8Accessor* cls);
|
||||
: public CefCppToC<CefV8AccessorCppToC, CefV8Accessor, cef_v8accessor_t> {
|
||||
public:
|
||||
explicit CefV8AccessorCppToC(CefV8Accessor* cls);
|
||||
virtual ~CefV8AccessorCppToC() {}
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _V8ACCESSOR_CPPTOC_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_V8ACCESSOR_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -18,8 +18,7 @@
|
||||
|
||||
// GLOBAL FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
CEF_EXPORT cef_v8context_t* cef_v8context_get_current_context()
|
||||
{
|
||||
CEF_EXPORT cef_v8context_t* cef_v8context_get_current_context() {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
@ -29,8 +28,7 @@ CEF_EXPORT cef_v8context_t* cef_v8context_get_current_context()
|
||||
return CefV8ContextCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
CEF_EXPORT cef_v8context_t* cef_v8context_get_entered_context()
|
||||
{
|
||||
CEF_EXPORT cef_v8context_t* cef_v8context_get_entered_context() {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
@ -40,8 +38,7 @@ CEF_EXPORT cef_v8context_t* cef_v8context_get_entered_context()
|
||||
return CefV8ContextCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
CEF_EXPORT int cef_v8context_in_context()
|
||||
{
|
||||
CEF_EXPORT int cef_v8context_in_context() {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
@ -54,8 +51,8 @@ CEF_EXPORT int cef_v8context_in_context()
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
cef_browser_t* CEF_CALLBACK v8context_get_browser(struct _cef_v8context_t* self)
|
||||
{
|
||||
cef_browser_t* CEF_CALLBACK v8context_get_browser(
|
||||
struct _cef_v8context_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -69,8 +66,7 @@ cef_browser_t* CEF_CALLBACK v8context_get_browser(struct _cef_v8context_t* self)
|
||||
return CefBrowserCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
cef_frame_t* CEF_CALLBACK v8context_get_frame(struct _cef_v8context_t* self)
|
||||
{
|
||||
cef_frame_t* CEF_CALLBACK v8context_get_frame(struct _cef_v8context_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -85,8 +81,7 @@ cef_frame_t* CEF_CALLBACK v8context_get_frame(struct _cef_v8context_t* self)
|
||||
}
|
||||
|
||||
struct _cef_v8value_t* CEF_CALLBACK v8context_get_global(
|
||||
struct _cef_v8context_t* self)
|
||||
{
|
||||
struct _cef_v8context_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -100,8 +95,7 @@ struct _cef_v8value_t* CEF_CALLBACK v8context_get_global(
|
||||
return CefV8ValueCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
int CEF_CALLBACK v8context_enter(struct _cef_v8context_t* self)
|
||||
{
|
||||
int CEF_CALLBACK v8context_enter(struct _cef_v8context_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -115,8 +109,7 @@ int CEF_CALLBACK v8context_enter(struct _cef_v8context_t* self)
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK v8context_exit(struct _cef_v8context_t* self)
|
||||
{
|
||||
int CEF_CALLBACK v8context_exit(struct _cef_v8context_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -131,8 +124,7 @@ int CEF_CALLBACK v8context_exit(struct _cef_v8context_t* self)
|
||||
}
|
||||
|
||||
int CEF_CALLBACK v8context_is_same(struct _cef_v8context_t* self,
|
||||
struct _cef_v8context_t* that)
|
||||
{
|
||||
struct _cef_v8context_t* that) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -155,8 +147,7 @@ int CEF_CALLBACK v8context_is_same(struct _cef_v8context_t* self,
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefV8ContextCppToC::CefV8ContextCppToC(CefV8Context* cls)
|
||||
: CefCppToC<CefV8ContextCppToC, CefV8Context, cef_v8context_t>(cls)
|
||||
{
|
||||
: CefCppToC<CefV8ContextCppToC, CefV8Context, cef_v8context_t>(cls) {
|
||||
struct_.struct_.get_browser = v8context_get_browser;
|
||||
struct_.struct_.get_frame = v8context_get_frame;
|
||||
struct_.struct_.get_global = v8context_get_global;
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _V8CONTEXT_CPPTOC_H
|
||||
#define _V8CONTEXT_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_V8CONTEXT_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_V8CONTEXT_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef BUILDING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed DLL-side only")
|
||||
#else // BUILDING_CEF_SHARED
|
||||
#else // BUILDING_CEF_SHARED
|
||||
|
||||
#include "include/cef_v8.h"
|
||||
#include "include/capi/cef_v8_capi.h"
|
||||
@ -28,13 +29,12 @@
|
||||
// Wrap a C++ class with a C structure.
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefV8ContextCppToC
|
||||
: public CefCppToC<CefV8ContextCppToC, CefV8Context, cef_v8context_t>
|
||||
{
|
||||
public:
|
||||
CefV8ContextCppToC(CefV8Context* cls);
|
||||
: public CefCppToC<CefV8ContextCppToC, CefV8Context, cef_v8context_t> {
|
||||
public:
|
||||
explicit CefV8ContextCppToC(CefV8Context* cls);
|
||||
virtual ~CefV8ContextCppToC() {}
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _V8CONTEXT_CPPTOC_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_V8CONTEXT_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -20,8 +20,7 @@
|
||||
|
||||
void CEF_CALLBACK v8context_handler_on_context_created(
|
||||
struct _cef_v8context_handler_t* self, cef_browser_t* browser,
|
||||
cef_frame_t* frame, cef_v8context_t* context)
|
||||
{
|
||||
cef_frame_t* frame, cef_v8context_t* context) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -49,8 +48,7 @@ void CEF_CALLBACK v8context_handler_on_context_created(
|
||||
|
||||
void CEF_CALLBACK v8context_handler_on_context_released(
|
||||
struct _cef_v8context_handler_t* self, cef_browser_t* browser,
|
||||
cef_frame_t* frame, cef_v8context_t* context)
|
||||
{
|
||||
cef_frame_t* frame, cef_v8context_t* context) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -81,8 +79,7 @@ void CEF_CALLBACK v8context_handler_on_context_released(
|
||||
|
||||
CefV8ContextHandlerCppToC::CefV8ContextHandlerCppToC(CefV8ContextHandler* cls)
|
||||
: CefCppToC<CefV8ContextHandlerCppToC, CefV8ContextHandler,
|
||||
cef_v8context_handler_t>(cls)
|
||||
{
|
||||
cef_v8context_handler_t>(cls) {
|
||||
struct_.struct_.on_context_created = v8context_handler_on_context_created;
|
||||
struct_.struct_.on_context_released = v8context_handler_on_context_released;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _V8CONTEXTHANDLER_CPPTOC_H
|
||||
#define _V8CONTEXTHANDLER_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_V8CONTEXT_HANDLER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_V8CONTEXT_HANDLER_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef USING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
|
||||
#else // USING_CEF_SHARED
|
||||
#else // USING_CEF_SHARED
|
||||
|
||||
#include "include/cef_v8context_handler.h"
|
||||
#include "include/capi/cef_v8context_handler_capi.h"
|
||||
@ -29,13 +30,12 @@
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefV8ContextHandlerCppToC
|
||||
: public CefCppToC<CefV8ContextHandlerCppToC, CefV8ContextHandler,
|
||||
cef_v8context_handler_t>
|
||||
{
|
||||
public:
|
||||
CefV8ContextHandlerCppToC(CefV8ContextHandler* cls);
|
||||
cef_v8context_handler_t> {
|
||||
public:
|
||||
explicit CefV8ContextHandlerCppToC(CefV8ContextHandler* cls);
|
||||
virtual ~CefV8ContextHandlerCppToC() {}
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _V8CONTEXTHANDLER_CPPTOC_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_V8CONTEXT_HANDLER_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -16,8 +16,7 @@
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK v8exception_get_message(
|
||||
struct _cef_v8exception_t* self)
|
||||
{
|
||||
struct _cef_v8exception_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -32,8 +31,7 @@ cef_string_userfree_t CEF_CALLBACK v8exception_get_message(
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK v8exception_get_source_line(
|
||||
struct _cef_v8exception_t* self)
|
||||
{
|
||||
struct _cef_v8exception_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -48,8 +46,7 @@ cef_string_userfree_t CEF_CALLBACK v8exception_get_source_line(
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK v8exception_get_script_resource_name(
|
||||
struct _cef_v8exception_t* self)
|
||||
{
|
||||
struct _cef_v8exception_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -63,8 +60,7 @@ cef_string_userfree_t CEF_CALLBACK v8exception_get_script_resource_name(
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
int CEF_CALLBACK v8exception_get_line_number(struct _cef_v8exception_t* self)
|
||||
{
|
||||
int CEF_CALLBACK v8exception_get_line_number(struct _cef_v8exception_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -78,8 +74,8 @@ int CEF_CALLBACK v8exception_get_line_number(struct _cef_v8exception_t* self)
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK v8exception_get_start_position(struct _cef_v8exception_t* self)
|
||||
{
|
||||
int CEF_CALLBACK v8exception_get_start_position(
|
||||
struct _cef_v8exception_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -93,8 +89,7 @@ int CEF_CALLBACK v8exception_get_start_position(struct _cef_v8exception_t* self)
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK v8exception_get_end_position(struct _cef_v8exception_t* self)
|
||||
{
|
||||
int CEF_CALLBACK v8exception_get_end_position(struct _cef_v8exception_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -108,8 +103,7 @@ int CEF_CALLBACK v8exception_get_end_position(struct _cef_v8exception_t* self)
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK v8exception_get_start_column(struct _cef_v8exception_t* self)
|
||||
{
|
||||
int CEF_CALLBACK v8exception_get_start_column(struct _cef_v8exception_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -123,8 +117,7 @@ int CEF_CALLBACK v8exception_get_start_column(struct _cef_v8exception_t* self)
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK v8exception_get_end_column(struct _cef_v8exception_t* self)
|
||||
{
|
||||
int CEF_CALLBACK v8exception_get_end_column(struct _cef_v8exception_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -142,8 +135,7 @@ int CEF_CALLBACK v8exception_get_end_column(struct _cef_v8exception_t* self)
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefV8ExceptionCppToC::CefV8ExceptionCppToC(CefV8Exception* cls)
|
||||
: CefCppToC<CefV8ExceptionCppToC, CefV8Exception, cef_v8exception_t>(cls)
|
||||
{
|
||||
: CefCppToC<CefV8ExceptionCppToC, CefV8Exception, cef_v8exception_t>(cls) {
|
||||
struct_.struct_.get_message = v8exception_get_message;
|
||||
struct_.struct_.get_source_line = v8exception_get_source_line;
|
||||
struct_.struct_.get_script_resource_name =
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _V8EXCEPTION_CPPTOC_H
|
||||
#define _V8EXCEPTION_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_V8EXCEPTION_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_V8EXCEPTION_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef BUILDING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed DLL-side only")
|
||||
#else // BUILDING_CEF_SHARED
|
||||
#else // BUILDING_CEF_SHARED
|
||||
|
||||
#include "include/cef_v8.h"
|
||||
#include "include/capi/cef_v8_capi.h"
|
||||
@ -28,13 +29,13 @@
|
||||
// Wrap a C++ class with a C structure.
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefV8ExceptionCppToC
|
||||
: public CefCppToC<CefV8ExceptionCppToC, CefV8Exception, cef_v8exception_t>
|
||||
{
|
||||
public:
|
||||
CefV8ExceptionCppToC(CefV8Exception* cls);
|
||||
: public CefCppToC<CefV8ExceptionCppToC, CefV8Exception,
|
||||
cef_v8exception_t> {
|
||||
public:
|
||||
explicit CefV8ExceptionCppToC(CefV8Exception* cls);
|
||||
virtual ~CefV8ExceptionCppToC() {}
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _V8EXCEPTION_CPPTOC_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_V8EXCEPTION_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -19,8 +19,7 @@
|
||||
int CEF_CALLBACK v8handler_execute(struct _cef_v8handler_t* self,
|
||||
const cef_string_t* name, struct _cef_v8value_t* object,
|
||||
size_t argumentsCount, struct _cef_v8value_t* const* arguments,
|
||||
struct _cef_v8value_t** retval, cef_string_t* exception)
|
||||
{
|
||||
struct _cef_v8value_t** retval, cef_string_t* exception) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -89,8 +88,7 @@ int CEF_CALLBACK v8handler_execute(struct _cef_v8handler_t* self,
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefV8HandlerCppToC::CefV8HandlerCppToC(CefV8Handler* cls)
|
||||
: CefCppToC<CefV8HandlerCppToC, CefV8Handler, cef_v8handler_t>(cls)
|
||||
{
|
||||
: CefCppToC<CefV8HandlerCppToC, CefV8Handler, cef_v8handler_t>(cls) {
|
||||
struct_.struct_.execute = v8handler_execute;
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _V8HANDLER_CPPTOC_H
|
||||
#define _V8HANDLER_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_V8HANDLER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_V8HANDLER_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef USING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
|
||||
#else // USING_CEF_SHARED
|
||||
#else // USING_CEF_SHARED
|
||||
|
||||
#include "include/cef_v8.h"
|
||||
#include "include/capi/cef_v8_capi.h"
|
||||
@ -28,13 +29,12 @@
|
||||
// Wrap a C++ class with a C structure.
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefV8HandlerCppToC
|
||||
: public CefCppToC<CefV8HandlerCppToC, CefV8Handler, cef_v8handler_t>
|
||||
{
|
||||
public:
|
||||
CefV8HandlerCppToC(CefV8Handler* cls);
|
||||
: public CefCppToC<CefV8HandlerCppToC, CefV8Handler, cef_v8handler_t> {
|
||||
public:
|
||||
explicit CefV8HandlerCppToC(CefV8Handler* cls);
|
||||
virtual ~CefV8HandlerCppToC() {}
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _V8HANDLER_CPPTOC_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_V8HANDLER_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -21,8 +21,7 @@
|
||||
|
||||
// GLOBAL FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
CEF_EXPORT cef_v8value_t* cef_v8value_create_undefined()
|
||||
{
|
||||
CEF_EXPORT cef_v8value_t* cef_v8value_create_undefined() {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
@ -32,8 +31,7 @@ CEF_EXPORT cef_v8value_t* cef_v8value_create_undefined()
|
||||
return CefV8ValueCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
CEF_EXPORT cef_v8value_t* cef_v8value_create_null()
|
||||
{
|
||||
CEF_EXPORT cef_v8value_t* cef_v8value_create_null() {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
@ -43,8 +41,7 @@ CEF_EXPORT cef_v8value_t* cef_v8value_create_null()
|
||||
return CefV8ValueCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
CEF_EXPORT cef_v8value_t* cef_v8value_create_bool(int value)
|
||||
{
|
||||
CEF_EXPORT cef_v8value_t* cef_v8value_create_bool(int value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
@ -55,8 +52,7 @@ CEF_EXPORT cef_v8value_t* cef_v8value_create_bool(int value)
|
||||
return CefV8ValueCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
CEF_EXPORT cef_v8value_t* cef_v8value_create_int(int value)
|
||||
{
|
||||
CEF_EXPORT cef_v8value_t* cef_v8value_create_int(int value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
@ -67,8 +63,7 @@ CEF_EXPORT cef_v8value_t* cef_v8value_create_int(int value)
|
||||
return CefV8ValueCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
CEF_EXPORT cef_v8value_t* cef_v8value_create_double(double value)
|
||||
{
|
||||
CEF_EXPORT cef_v8value_t* cef_v8value_create_double(double value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
@ -79,8 +74,7 @@ CEF_EXPORT cef_v8value_t* cef_v8value_create_double(double value)
|
||||
return CefV8ValueCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
CEF_EXPORT cef_v8value_t* cef_v8value_create_date(const cef_time_t* date)
|
||||
{
|
||||
CEF_EXPORT cef_v8value_t* cef_v8value_create_date(const cef_time_t* date) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: date; type: simple_byref_const
|
||||
@ -99,8 +93,7 @@ CEF_EXPORT cef_v8value_t* cef_v8value_create_date(const cef_time_t* date)
|
||||
return CefV8ValueCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
CEF_EXPORT cef_v8value_t* cef_v8value_create_string(const cef_string_t* value)
|
||||
{
|
||||
CEF_EXPORT cef_v8value_t* cef_v8value_create_string(const cef_string_t* value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Unverified params: value
|
||||
@ -114,8 +107,7 @@ CEF_EXPORT cef_v8value_t* cef_v8value_create_string(const cef_string_t* value)
|
||||
}
|
||||
|
||||
CEF_EXPORT cef_v8value_t* cef_v8value_create_object_with_accessor(
|
||||
cef_base_t* user_data, cef_v8accessor_t* accessor)
|
||||
{
|
||||
cef_base_t* user_data, cef_v8accessor_t* accessor) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Unverified params: user_data, accessor
|
||||
@ -129,8 +121,7 @@ CEF_EXPORT cef_v8value_t* cef_v8value_create_object_with_accessor(
|
||||
return CefV8ValueCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
CEF_EXPORT cef_v8value_t* cef_v8value_create_array()
|
||||
{
|
||||
CEF_EXPORT cef_v8value_t* cef_v8value_create_array() {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
@ -141,8 +132,7 @@ CEF_EXPORT cef_v8value_t* cef_v8value_create_array()
|
||||
}
|
||||
|
||||
CEF_EXPORT cef_v8value_t* cef_v8value_create_function(const cef_string_t* name,
|
||||
cef_v8handler_t* handler)
|
||||
{
|
||||
cef_v8handler_t* handler) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: name; type: string_byref_const
|
||||
@ -166,8 +156,7 @@ CEF_EXPORT cef_v8value_t* cef_v8value_create_function(const cef_string_t* name,
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
int CEF_CALLBACK v8value_is_undefined(struct _cef_v8value_t* self)
|
||||
{
|
||||
int CEF_CALLBACK v8value_is_undefined(struct _cef_v8value_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -181,8 +170,7 @@ int CEF_CALLBACK v8value_is_undefined(struct _cef_v8value_t* self)
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK v8value_is_null(struct _cef_v8value_t* self)
|
||||
{
|
||||
int CEF_CALLBACK v8value_is_null(struct _cef_v8value_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -196,8 +184,7 @@ int CEF_CALLBACK v8value_is_null(struct _cef_v8value_t* self)
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK v8value_is_bool(struct _cef_v8value_t* self)
|
||||
{
|
||||
int CEF_CALLBACK v8value_is_bool(struct _cef_v8value_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -211,8 +198,7 @@ int CEF_CALLBACK v8value_is_bool(struct _cef_v8value_t* self)
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK v8value_is_int(struct _cef_v8value_t* self)
|
||||
{
|
||||
int CEF_CALLBACK v8value_is_int(struct _cef_v8value_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -226,8 +212,7 @@ int CEF_CALLBACK v8value_is_int(struct _cef_v8value_t* self)
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK v8value_is_double(struct _cef_v8value_t* self)
|
||||
{
|
||||
int CEF_CALLBACK v8value_is_double(struct _cef_v8value_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -241,8 +226,7 @@ int CEF_CALLBACK v8value_is_double(struct _cef_v8value_t* self)
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK v8value_is_date(struct _cef_v8value_t* self)
|
||||
{
|
||||
int CEF_CALLBACK v8value_is_date(struct _cef_v8value_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -256,8 +240,7 @@ int CEF_CALLBACK v8value_is_date(struct _cef_v8value_t* self)
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK v8value_is_string(struct _cef_v8value_t* self)
|
||||
{
|
||||
int CEF_CALLBACK v8value_is_string(struct _cef_v8value_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -271,8 +254,7 @@ int CEF_CALLBACK v8value_is_string(struct _cef_v8value_t* self)
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK v8value_is_object(struct _cef_v8value_t* self)
|
||||
{
|
||||
int CEF_CALLBACK v8value_is_object(struct _cef_v8value_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -286,8 +268,7 @@ int CEF_CALLBACK v8value_is_object(struct _cef_v8value_t* self)
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK v8value_is_array(struct _cef_v8value_t* self)
|
||||
{
|
||||
int CEF_CALLBACK v8value_is_array(struct _cef_v8value_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -301,8 +282,7 @@ int CEF_CALLBACK v8value_is_array(struct _cef_v8value_t* self)
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK v8value_is_function(struct _cef_v8value_t* self)
|
||||
{
|
||||
int CEF_CALLBACK v8value_is_function(struct _cef_v8value_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -317,8 +297,7 @@ int CEF_CALLBACK v8value_is_function(struct _cef_v8value_t* self)
|
||||
}
|
||||
|
||||
int CEF_CALLBACK v8value_is_same(struct _cef_v8value_t* self,
|
||||
struct _cef_v8value_t* that)
|
||||
{
|
||||
struct _cef_v8value_t* that) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -337,8 +316,7 @@ int CEF_CALLBACK v8value_is_same(struct _cef_v8value_t* self,
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK v8value_get_bool_value(struct _cef_v8value_t* self)
|
||||
{
|
||||
int CEF_CALLBACK v8value_get_bool_value(struct _cef_v8value_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -352,8 +330,7 @@ int CEF_CALLBACK v8value_get_bool_value(struct _cef_v8value_t* self)
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK v8value_get_int_value(struct _cef_v8value_t* self)
|
||||
{
|
||||
int CEF_CALLBACK v8value_get_int_value(struct _cef_v8value_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -367,8 +344,7 @@ int CEF_CALLBACK v8value_get_int_value(struct _cef_v8value_t* self)
|
||||
return _retval;
|
||||
}
|
||||
|
||||
double CEF_CALLBACK v8value_get_double_value(struct _cef_v8value_t* self)
|
||||
{
|
||||
double CEF_CALLBACK v8value_get_double_value(struct _cef_v8value_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -382,8 +358,7 @@ double CEF_CALLBACK v8value_get_double_value(struct _cef_v8value_t* self)
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_time_t CEF_CALLBACK v8value_get_date_value(struct _cef_v8value_t* self)
|
||||
{
|
||||
cef_time_t CEF_CALLBACK v8value_get_date_value(struct _cef_v8value_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -398,8 +373,7 @@ cef_time_t CEF_CALLBACK v8value_get_date_value(struct _cef_v8value_t* self)
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK v8value_get_string_value(
|
||||
struct _cef_v8value_t* self)
|
||||
{
|
||||
struct _cef_v8value_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -414,8 +388,7 @@ cef_string_userfree_t CEF_CALLBACK v8value_get_string_value(
|
||||
}
|
||||
|
||||
int CEF_CALLBACK v8value_has_value_bykey(struct _cef_v8value_t* self,
|
||||
const cef_string_t* key)
|
||||
{
|
||||
const cef_string_t* key) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -435,15 +408,14 @@ int CEF_CALLBACK v8value_has_value_bykey(struct _cef_v8value_t* self,
|
||||
}
|
||||
|
||||
int CEF_CALLBACK v8value_has_value_byindex(struct _cef_v8value_t* self,
|
||||
int index)
|
||||
{
|
||||
int index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self)
|
||||
return 0;
|
||||
// Verify param: index; type: simple_byval
|
||||
DCHECK(index >= 0);
|
||||
DCHECK_GE(index, 0);
|
||||
if (index < 0)
|
||||
return 0;
|
||||
|
||||
@ -456,8 +428,7 @@ int CEF_CALLBACK v8value_has_value_byindex(struct _cef_v8value_t* self,
|
||||
}
|
||||
|
||||
int CEF_CALLBACK v8value_delete_value_bykey(struct _cef_v8value_t* self,
|
||||
const cef_string_t* key)
|
||||
{
|
||||
const cef_string_t* key) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -477,15 +448,14 @@ int CEF_CALLBACK v8value_delete_value_bykey(struct _cef_v8value_t* self,
|
||||
}
|
||||
|
||||
int CEF_CALLBACK v8value_delete_value_byindex(struct _cef_v8value_t* self,
|
||||
int index)
|
||||
{
|
||||
int index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self)
|
||||
return 0;
|
||||
// Verify param: index; type: simple_byval
|
||||
DCHECK(index >= 0);
|
||||
DCHECK_GE(index, 0);
|
||||
if (index < 0)
|
||||
return 0;
|
||||
|
||||
@ -498,8 +468,7 @@ int CEF_CALLBACK v8value_delete_value_byindex(struct _cef_v8value_t* self,
|
||||
}
|
||||
|
||||
struct _cef_v8value_t* CEF_CALLBACK v8value_get_value_bykey(
|
||||
struct _cef_v8value_t* self, const cef_string_t* key)
|
||||
{
|
||||
struct _cef_v8value_t* self, const cef_string_t* key) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -519,15 +488,14 @@ struct _cef_v8value_t* CEF_CALLBACK v8value_get_value_bykey(
|
||||
}
|
||||
|
||||
struct _cef_v8value_t* CEF_CALLBACK v8value_get_value_byindex(
|
||||
struct _cef_v8value_t* self, int index)
|
||||
{
|
||||
struct _cef_v8value_t* self, int index) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self)
|
||||
return NULL;
|
||||
// Verify param: index; type: simple_byval
|
||||
DCHECK(index >= 0);
|
||||
DCHECK_GE(index, 0);
|
||||
if (index < 0)
|
||||
return NULL;
|
||||
|
||||
@ -541,8 +509,7 @@ struct _cef_v8value_t* CEF_CALLBACK v8value_get_value_byindex(
|
||||
|
||||
int CEF_CALLBACK v8value_set_value_bykey(struct _cef_v8value_t* self,
|
||||
const cef_string_t* key, struct _cef_v8value_t* value,
|
||||
enum cef_v8_propertyattribute_t attribute)
|
||||
{
|
||||
enum cef_v8_propertyattribute_t attribute) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -568,15 +535,14 @@ int CEF_CALLBACK v8value_set_value_bykey(struct _cef_v8value_t* self,
|
||||
}
|
||||
|
||||
int CEF_CALLBACK v8value_set_value_byindex(struct _cef_v8value_t* self,
|
||||
int index, struct _cef_v8value_t* value)
|
||||
{
|
||||
int index, struct _cef_v8value_t* value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self)
|
||||
return 0;
|
||||
// Verify param: index; type: simple_byval
|
||||
DCHECK(index >= 0);
|
||||
DCHECK_GE(index, 0);
|
||||
if (index < 0)
|
||||
return 0;
|
||||
// Verify param: value; type: refptr_same
|
||||
@ -595,8 +561,7 @@ int CEF_CALLBACK v8value_set_value_byindex(struct _cef_v8value_t* self,
|
||||
|
||||
int CEF_CALLBACK v8value_set_value_byaccessor(struct _cef_v8value_t* self,
|
||||
const cef_string_t* key, enum cef_v8_accesscontrol_t settings,
|
||||
enum cef_v8_propertyattribute_t attribute)
|
||||
{
|
||||
enum cef_v8_propertyattribute_t attribute) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -618,8 +583,7 @@ int CEF_CALLBACK v8value_set_value_byaccessor(struct _cef_v8value_t* self,
|
||||
}
|
||||
|
||||
int CEF_CALLBACK v8value_get_keys(struct _cef_v8value_t* self,
|
||||
cef_string_list_t keys)
|
||||
{
|
||||
cef_string_list_t keys) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -646,8 +610,7 @@ int CEF_CALLBACK v8value_get_keys(struct _cef_v8value_t* self,
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_base_t* CEF_CALLBACK v8value_get_user_data(struct _cef_v8value_t* self)
|
||||
{
|
||||
cef_base_t* CEF_CALLBACK v8value_get_user_data(struct _cef_v8value_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -661,8 +624,7 @@ cef_base_t* CEF_CALLBACK v8value_get_user_data(struct _cef_v8value_t* self)
|
||||
return CefBaseCToCpp::Unwrap(_retval);
|
||||
}
|
||||
|
||||
int CEF_CALLBACK v8value_get_array_length(struct _cef_v8value_t* self)
|
||||
{
|
||||
int CEF_CALLBACK v8value_get_array_length(struct _cef_v8value_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -677,8 +639,7 @@ int CEF_CALLBACK v8value_get_array_length(struct _cef_v8value_t* self)
|
||||
}
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK v8value_get_function_name(
|
||||
struct _cef_v8value_t* self)
|
||||
{
|
||||
struct _cef_v8value_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -693,8 +654,7 @@ cef_string_userfree_t CEF_CALLBACK v8value_get_function_name(
|
||||
}
|
||||
|
||||
cef_v8handler_t* CEF_CALLBACK v8value_get_function_handler(
|
||||
struct _cef_v8value_t* self)
|
||||
{
|
||||
struct _cef_v8value_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -712,8 +672,7 @@ cef_v8handler_t* CEF_CALLBACK v8value_get_function_handler(
|
||||
int CEF_CALLBACK v8value_execute_function(struct _cef_v8value_t* self,
|
||||
struct _cef_v8value_t* object, size_t argumentsCount,
|
||||
struct _cef_v8value_t* const* arguments, struct _cef_v8value_t** retval,
|
||||
cef_v8exception_t** exception, int rethrow_exception)
|
||||
{
|
||||
cef_v8exception_t** exception, int rethrow_exception) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -788,8 +747,7 @@ int CEF_CALLBACK v8value_execute_function_with_context(
|
||||
struct _cef_v8value_t* self, cef_v8context_t* context,
|
||||
struct _cef_v8value_t* object, size_t argumentsCount,
|
||||
struct _cef_v8value_t* const* arguments, struct _cef_v8value_t** retval,
|
||||
cef_v8exception_t** exception, int rethrow_exception)
|
||||
{
|
||||
cef_v8exception_t** exception, int rethrow_exception) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -869,8 +827,7 @@ int CEF_CALLBACK v8value_execute_function_with_context(
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefV8ValueCppToC::CefV8ValueCppToC(CefV8Value* cls)
|
||||
: CefCppToC<CefV8ValueCppToC, CefV8Value, cef_v8value_t>(cls)
|
||||
{
|
||||
: CefCppToC<CefV8ValueCppToC, CefV8Value, cef_v8value_t>(cls) {
|
||||
struct_.struct_.is_undefined = v8value_is_undefined;
|
||||
struct_.struct_.is_null = v8value_is_null;
|
||||
struct_.struct_.is_bool = v8value_is_bool;
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _V8VALUE_CPPTOC_H
|
||||
#define _V8VALUE_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_V8VALUE_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_V8VALUE_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef BUILDING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed DLL-side only")
|
||||
#else // BUILDING_CEF_SHARED
|
||||
#else // BUILDING_CEF_SHARED
|
||||
|
||||
#include "include/cef_v8.h"
|
||||
#include "include/capi/cef_v8_capi.h"
|
||||
@ -28,13 +29,12 @@
|
||||
// Wrap a C++ class with a C structure.
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefV8ValueCppToC
|
||||
: public CefCppToC<CefV8ValueCppToC, CefV8Value, cef_v8value_t>
|
||||
{
|
||||
public:
|
||||
CefV8ValueCppToC(CefV8Value* cls);
|
||||
: public CefCppToC<CefV8ValueCppToC, CefV8Value, cef_v8value_t> {
|
||||
public:
|
||||
explicit CefV8ValueCppToC(CefV8Value* cls);
|
||||
virtual ~CefV8ValueCppToC() {}
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _V8VALUE_CPPTOC_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_V8VALUE_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -20,8 +20,7 @@
|
||||
|
||||
void CEF_CALLBACK web_urlrequest_client_on_state_change(
|
||||
struct _cef_web_urlrequest_client_t* self, cef_web_urlrequest_t* requester,
|
||||
enum cef_weburlrequest_state_t state)
|
||||
{
|
||||
enum cef_weburlrequest_state_t state) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -40,8 +39,7 @@ void CEF_CALLBACK web_urlrequest_client_on_state_change(
|
||||
|
||||
void CEF_CALLBACK web_urlrequest_client_on_redirect(
|
||||
struct _cef_web_urlrequest_client_t* self, cef_web_urlrequest_t* requester,
|
||||
cef_request_t* request, cef_response_t* response)
|
||||
{
|
||||
cef_request_t* request, cef_response_t* response) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -69,8 +67,7 @@ void CEF_CALLBACK web_urlrequest_client_on_redirect(
|
||||
|
||||
void CEF_CALLBACK web_urlrequest_client_on_headers_received(
|
||||
struct _cef_web_urlrequest_client_t* self, cef_web_urlrequest_t* requester,
|
||||
cef_response_t* response)
|
||||
{
|
||||
cef_response_t* response) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -93,8 +90,7 @@ void CEF_CALLBACK web_urlrequest_client_on_headers_received(
|
||||
|
||||
void CEF_CALLBACK web_urlrequest_client_on_progress(
|
||||
struct _cef_web_urlrequest_client_t* self, cef_web_urlrequest_t* requester,
|
||||
uint64 bytesSent, uint64 totalBytesToBeSent)
|
||||
{
|
||||
uint64 bytesSent, uint64 totalBytesToBeSent) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -114,8 +110,7 @@ void CEF_CALLBACK web_urlrequest_client_on_progress(
|
||||
|
||||
void CEF_CALLBACK web_urlrequest_client_on_data(
|
||||
struct _cef_web_urlrequest_client_t* self, cef_web_urlrequest_t* requester,
|
||||
const void* data, int dataLength)
|
||||
{
|
||||
const void* data, int dataLength) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -139,8 +134,7 @@ void CEF_CALLBACK web_urlrequest_client_on_data(
|
||||
|
||||
void CEF_CALLBACK web_urlrequest_client_on_error(
|
||||
struct _cef_web_urlrequest_client_t* self, cef_web_urlrequest_t* requester,
|
||||
enum cef_handler_errorcode_t errorCode)
|
||||
{
|
||||
enum cef_handler_errorcode_t errorCode) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -163,8 +157,7 @@ void CEF_CALLBACK web_urlrequest_client_on_error(
|
||||
CefWebURLRequestClientCppToC::CefWebURLRequestClientCppToC(
|
||||
CefWebURLRequestClient* cls)
|
||||
: CefCppToC<CefWebURLRequestClientCppToC, CefWebURLRequestClient,
|
||||
cef_web_urlrequest_client_t>(cls)
|
||||
{
|
||||
cef_web_urlrequest_client_t>(cls) {
|
||||
struct_.struct_.on_state_change = web_urlrequest_client_on_state_change;
|
||||
struct_.struct_.on_redirect = web_urlrequest_client_on_redirect;
|
||||
struct_.struct_.on_headers_received =
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _WEBURLREQUESTCLIENT_CPPTOC_H
|
||||
#define _WEBURLREQUESTCLIENT_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_WEB_URLREQUEST_CLIENT_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_WEB_URLREQUEST_CLIENT_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef USING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
|
||||
#else // USING_CEF_SHARED
|
||||
#else // USING_CEF_SHARED
|
||||
|
||||
#include "include/cef_web_urlrequest.h"
|
||||
#include "include/capi/cef_web_urlrequest_capi.h"
|
||||
@ -29,13 +30,12 @@
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefWebURLRequestClientCppToC
|
||||
: public CefCppToC<CefWebURLRequestClientCppToC, CefWebURLRequestClient,
|
||||
cef_web_urlrequest_client_t>
|
||||
{
|
||||
public:
|
||||
CefWebURLRequestClientCppToC(CefWebURLRequestClient* cls);
|
||||
cef_web_urlrequest_client_t> {
|
||||
public:
|
||||
explicit CefWebURLRequestClientCppToC(CefWebURLRequestClient* cls);
|
||||
virtual ~CefWebURLRequestClientCppToC() {}
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _WEBURLREQUESTCLIENT_CPPTOC_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_WEB_URLREQUEST_CLIENT_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -18,8 +18,7 @@
|
||||
// GLOBAL FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
CEF_EXPORT cef_web_urlrequest_t* cef_web_urlrequest_create(
|
||||
cef_request_t* request, struct _cef_web_urlrequest_client_t* client)
|
||||
{
|
||||
cef_request_t* request, struct _cef_web_urlrequest_client_t* client) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: request; type: refptr_same
|
||||
@ -43,8 +42,7 @@ CEF_EXPORT cef_web_urlrequest_t* cef_web_urlrequest_create(
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
void CEF_CALLBACK web_urlrequest_cancel(struct _cef_web_urlrequest_t* self)
|
||||
{
|
||||
void CEF_CALLBACK web_urlrequest_cancel(struct _cef_web_urlrequest_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -56,8 +54,7 @@ void CEF_CALLBACK web_urlrequest_cancel(struct _cef_web_urlrequest_t* self)
|
||||
}
|
||||
|
||||
enum cef_weburlrequest_state_t CEF_CALLBACK web_urlrequest_get_state(
|
||||
struct _cef_web_urlrequest_t* self)
|
||||
{
|
||||
struct _cef_web_urlrequest_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -77,8 +74,7 @@ enum cef_weburlrequest_state_t CEF_CALLBACK web_urlrequest_get_state(
|
||||
|
||||
CefWebURLRequestCppToC::CefWebURLRequestCppToC(CefWebURLRequest* cls)
|
||||
: CefCppToC<CefWebURLRequestCppToC, CefWebURLRequest, cef_web_urlrequest_t>(
|
||||
cls)
|
||||
{
|
||||
cls) {
|
||||
struct_.struct_.cancel = web_urlrequest_cancel;
|
||||
struct_.struct_.get_state = web_urlrequest_get_state;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _WEBURLREQUEST_CPPTOC_H
|
||||
#define _WEBURLREQUEST_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_WEB_URLREQUEST_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_WEB_URLREQUEST_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef BUILDING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed DLL-side only")
|
||||
#else // BUILDING_CEF_SHARED
|
||||
#else // BUILDING_CEF_SHARED
|
||||
|
||||
#include "include/cef_web_urlrequest.h"
|
||||
#include "include/capi/cef_web_urlrequest_capi.h"
|
||||
@ -29,13 +30,12 @@
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefWebURLRequestCppToC
|
||||
: public CefCppToC<CefWebURLRequestCppToC, CefWebURLRequest,
|
||||
cef_web_urlrequest_t>
|
||||
{
|
||||
public:
|
||||
CefWebURLRequestCppToC(CefWebURLRequest* cls);
|
||||
cef_web_urlrequest_t> {
|
||||
public:
|
||||
explicit CefWebURLRequestCppToC(CefWebURLRequest* cls);
|
||||
virtual ~CefWebURLRequestCppToC() {}
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _WEBURLREQUEST_CPPTOC_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_WEB_URLREQUEST_CPPTOC_H_
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -16,8 +16,7 @@
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
size_t CEF_CALLBACK write_handler_write(struct _cef_write_handler_t* self,
|
||||
const void* ptr, size_t size, size_t n)
|
||||
{
|
||||
const void* ptr, size_t size, size_t n) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -39,8 +38,7 @@ size_t CEF_CALLBACK write_handler_write(struct _cef_write_handler_t* self,
|
||||
}
|
||||
|
||||
int CEF_CALLBACK write_handler_seek(struct _cef_write_handler_t* self,
|
||||
long offset, int whence)
|
||||
{
|
||||
int64 offset, int whence) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -56,8 +54,7 @@ int CEF_CALLBACK write_handler_seek(struct _cef_write_handler_t* self,
|
||||
return _retval;
|
||||
}
|
||||
|
||||
long CEF_CALLBACK write_handler_tell(struct _cef_write_handler_t* self)
|
||||
{
|
||||
int64 CEF_CALLBACK write_handler_tell(struct _cef_write_handler_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -65,14 +62,13 @@ long CEF_CALLBACK write_handler_tell(struct _cef_write_handler_t* self)
|
||||
return 0;
|
||||
|
||||
// Execute
|
||||
long _retval = CefWriteHandlerCppToC::Get(self)->Tell();
|
||||
int64 _retval = CefWriteHandlerCppToC::Get(self)->Tell();
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK write_handler_flush(struct _cef_write_handler_t* self)
|
||||
{
|
||||
int CEF_CALLBACK write_handler_flush(struct _cef_write_handler_t* self) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -91,8 +87,7 @@ int CEF_CALLBACK write_handler_flush(struct _cef_write_handler_t* self)
|
||||
|
||||
CefWriteHandlerCppToC::CefWriteHandlerCppToC(CefWriteHandler* cls)
|
||||
: CefCppToC<CefWriteHandlerCppToC, CefWriteHandler, cef_write_handler_t>(
|
||||
cls)
|
||||
{
|
||||
cls) {
|
||||
struct_.struct_.write = write_handler_write;
|
||||
struct_.struct_.seek = write_handler_seek;
|
||||
struct_.struct_.tell = write_handler_tell;
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
||||
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
|
||||
// reserved. Use of this source code is governed by a BSD-style license that
|
||||
// can be found in the LICENSE file.
|
||||
//
|
||||
@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _WRITEHANDLER_CPPTOC_H
|
||||
#define _WRITEHANDLER_CPPTOC_H
|
||||
#ifndef CEF_LIBCEF_DLL_CPPTOC_WRITE_HANDLER_CPPTOC_H_
|
||||
#define CEF_LIBCEF_DLL_CPPTOC_WRITE_HANDLER_CPPTOC_H_
|
||||
#pragma once
|
||||
|
||||
#ifndef USING_CEF_SHARED
|
||||
#pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
|
||||
#else // USING_CEF_SHARED
|
||||
#else // USING_CEF_SHARED
|
||||
|
||||
#include "include/cef_stream.h"
|
||||
#include "include/capi/cef_stream_capi.h"
|
||||
@ -25,13 +26,12 @@
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefWriteHandlerCppToC
|
||||
: public CefCppToC<CefWriteHandlerCppToC, CefWriteHandler,
|
||||
cef_write_handler_t>
|
||||
{
|
||||
public:
|
||||
CefWriteHandlerCppToC(CefWriteHandler* cls);
|
||||
cef_write_handler_t> {
|
||||
public:
|
||||
explicit CefWriteHandlerCppToC(CefWriteHandler* cls);
|
||||
virtual ~CefWriteHandlerCppToC() {}
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _WRITEHANDLER_CPPTOC_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CPPTOC_WRITE_HANDLER_CPPTOC_H_
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user