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.
|
||||
//
|
||||
@@ -16,8 +16,7 @@
|
||||
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
CefRefPtr<CefProxyHandler> CefAppCToCpp::GetProxyHandler()
|
||||
{
|
||||
CefRefPtr<CefProxyHandler> CefAppCToCpp::GetProxyHandler() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_proxy_handler))
|
||||
return NULL;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _APP_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_APP_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_APP_CTOCPP_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_app.h"
|
||||
#include "include/capi/cef_app_capi.h"
|
||||
@@ -24,10 +25,9 @@
|
||||
// Wrap a C structure with a C++ class.
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefAppCToCpp
|
||||
: public CefCToCpp<CefAppCToCpp, CefApp, cef_app_t>
|
||||
{
|
||||
public:
|
||||
CefAppCToCpp(cef_app_t* str)
|
||||
: public CefCToCpp<CefAppCToCpp, CefApp, cef_app_t> {
|
||||
public:
|
||||
explicit CefAppCToCpp(cef_app_t* str)
|
||||
: CefCToCpp<CefAppCToCpp, CefApp, cef_app_t>(str) {}
|
||||
virtual ~CefAppCToCpp() {}
|
||||
|
||||
@@ -35,6 +35,6 @@ public:
|
||||
virtual CefRefPtr<CefProxyHandler> GetProxyHandler() OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _APP_CTOCPP_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_APP_CTOCPP_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_CTOCPP_H
|
||||
#define _BASE_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_BASE_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_BASE_CTOCPP_H_
|
||||
#pragma once
|
||||
|
||||
#include "include/cef_base.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
@@ -11,13 +12,11 @@
|
||||
|
||||
|
||||
// CefCToCpp implementation for CefBase.
|
||||
class CefBaseCToCpp : public CefBase
|
||||
{
|
||||
public:
|
||||
class CefBaseCToCpp : public CefBase {
|
||||
public:
|
||||
// Use this method to create a wrapper class instance for a structure
|
||||
// received from the other side.
|
||||
static CefRefPtr<CefBase> Wrap(cef_base_t* s)
|
||||
{
|
||||
static CefRefPtr<CefBase> Wrap(cef_base_t* s) {
|
||||
if (!s)
|
||||
return NULL;
|
||||
|
||||
@@ -34,8 +33,7 @@ public:
|
||||
|
||||
// Use this method to retrieve the underlying structure from a wrapper class
|
||||
// instance for return back to the other side.
|
||||
static cef_base_t* Unwrap(CefRefPtr<CefBase> c)
|
||||
{
|
||||
static cef_base_t* Unwrap(CefRefPtr<CefBase> c) {
|
||||
if (!c.get())
|
||||
return NULL;
|
||||
|
||||
@@ -48,9 +46,8 @@ public:
|
||||
return wrapper->GetStruct();
|
||||
}
|
||||
|
||||
CefBaseCToCpp(cef_base_t* str)
|
||||
: struct_(str)
|
||||
{
|
||||
explicit CefBaseCToCpp(cef_base_t* str)
|
||||
: struct_(str) {
|
||||
DCHECK(str);
|
||||
}
|
||||
virtual ~CefBaseCToCpp() {}
|
||||
@@ -62,13 +59,11 @@ public:
|
||||
|
||||
// CefBase methods increment/decrement reference counts on both this object
|
||||
// and the underlying wrapped structure.
|
||||
int AddRef()
|
||||
{
|
||||
int AddRef() {
|
||||
UnderlyingAddRef();
|
||||
return refct_.AddRef();
|
||||
}
|
||||
int Release()
|
||||
{
|
||||
int Release() {
|
||||
UnderlyingRelease();
|
||||
int retval = refct_.Release();
|
||||
if (retval == 0)
|
||||
@@ -78,29 +73,26 @@ public:
|
||||
int GetRefCt() { return refct_.GetRefCt(); }
|
||||
|
||||
// Increment/decrement reference counts on only the underlying class.
|
||||
int UnderlyingAddRef()
|
||||
{
|
||||
if(!struct_->add_ref)
|
||||
int UnderlyingAddRef() {
|
||||
if (!struct_->add_ref)
|
||||
return 0;
|
||||
return struct_->add_ref(struct_);
|
||||
}
|
||||
int UnderlyingRelease()
|
||||
{
|
||||
if(!struct_->release)
|
||||
int UnderlyingRelease() {
|
||||
if (!struct_->release)
|
||||
return 0;
|
||||
return struct_->release(struct_);
|
||||
}
|
||||
int UnderlyingGetRefCt()
|
||||
{
|
||||
if(!struct_->get_refct)
|
||||
int UnderlyingGetRefCt() {
|
||||
if (!struct_->get_refct)
|
||||
return 0;
|
||||
return struct_->get_refct(struct_);
|
||||
}
|
||||
|
||||
protected:
|
||||
protected:
|
||||
CefRefCount refct_;
|
||||
cef_base_t* struct_;
|
||||
};
|
||||
|
||||
|
||||
#endif // _BASE_CTOCPP_H
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_BASE_CTOCPP_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 @@
|
||||
|
||||
bool CefBrowser::CreateBrowser(CefWindowInfo& windowInfo,
|
||||
CefRefPtr<CefClient> client, const CefString& url,
|
||||
const CefBrowserSettings& settings)
|
||||
{
|
||||
const CefBrowserSettings& settings) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: client; type: refptr_diff
|
||||
@@ -43,8 +42,7 @@ bool CefBrowser::CreateBrowser(CefWindowInfo& windowInfo,
|
||||
|
||||
CefRefPtr<CefBrowser> CefBrowser::CreateBrowserSync(CefWindowInfo& windowInfo,
|
||||
CefRefPtr<CefClient> client, const CefString& url,
|
||||
const CefBrowserSettings& settings)
|
||||
{
|
||||
const CefBrowserSettings& settings) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: client; type: refptr_diff
|
||||
@@ -67,8 +65,7 @@ CefRefPtr<CefBrowser> CefBrowser::CreateBrowserSync(CefWindowInfo& windowInfo,
|
||||
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
void CefBrowserCToCpp::ParentWindowWillClose()
|
||||
{
|
||||
void CefBrowserCToCpp::ParentWindowWillClose() {
|
||||
if (CEF_MEMBER_MISSING(struct_, parent_window_will_close))
|
||||
return;
|
||||
|
||||
@@ -78,8 +75,7 @@ void CefBrowserCToCpp::ParentWindowWillClose()
|
||||
struct_->parent_window_will_close(struct_);
|
||||
}
|
||||
|
||||
void CefBrowserCToCpp::CloseBrowser()
|
||||
{
|
||||
void CefBrowserCToCpp::CloseBrowser() {
|
||||
if (CEF_MEMBER_MISSING(struct_, close_browser))
|
||||
return;
|
||||
|
||||
@@ -89,8 +85,7 @@ void CefBrowserCToCpp::CloseBrowser()
|
||||
struct_->close_browser(struct_);
|
||||
}
|
||||
|
||||
bool CefBrowserCToCpp::CanGoBack()
|
||||
{
|
||||
bool CefBrowserCToCpp::CanGoBack() {
|
||||
if (CEF_MEMBER_MISSING(struct_, can_go_back))
|
||||
return false;
|
||||
|
||||
@@ -103,8 +98,7 @@ bool CefBrowserCToCpp::CanGoBack()
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
void CefBrowserCToCpp::GoBack()
|
||||
{
|
||||
void CefBrowserCToCpp::GoBack() {
|
||||
if (CEF_MEMBER_MISSING(struct_, go_back))
|
||||
return;
|
||||
|
||||
@@ -114,8 +108,7 @@ void CefBrowserCToCpp::GoBack()
|
||||
struct_->go_back(struct_);
|
||||
}
|
||||
|
||||
bool CefBrowserCToCpp::CanGoForward()
|
||||
{
|
||||
bool CefBrowserCToCpp::CanGoForward() {
|
||||
if (CEF_MEMBER_MISSING(struct_, can_go_forward))
|
||||
return false;
|
||||
|
||||
@@ -128,8 +121,7 @@ bool CefBrowserCToCpp::CanGoForward()
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
void CefBrowserCToCpp::GoForward()
|
||||
{
|
||||
void CefBrowserCToCpp::GoForward() {
|
||||
if (CEF_MEMBER_MISSING(struct_, go_forward))
|
||||
return;
|
||||
|
||||
@@ -139,8 +131,7 @@ void CefBrowserCToCpp::GoForward()
|
||||
struct_->go_forward(struct_);
|
||||
}
|
||||
|
||||
void CefBrowserCToCpp::Reload()
|
||||
{
|
||||
void CefBrowserCToCpp::Reload() {
|
||||
if (CEF_MEMBER_MISSING(struct_, reload))
|
||||
return;
|
||||
|
||||
@@ -150,8 +141,7 @@ void CefBrowserCToCpp::Reload()
|
||||
struct_->reload(struct_);
|
||||
}
|
||||
|
||||
void CefBrowserCToCpp::ReloadIgnoreCache()
|
||||
{
|
||||
void CefBrowserCToCpp::ReloadIgnoreCache() {
|
||||
if (CEF_MEMBER_MISSING(struct_, reload_ignore_cache))
|
||||
return;
|
||||
|
||||
@@ -161,8 +151,7 @@ void CefBrowserCToCpp::ReloadIgnoreCache()
|
||||
struct_->reload_ignore_cache(struct_);
|
||||
}
|
||||
|
||||
void CefBrowserCToCpp::StopLoad()
|
||||
{
|
||||
void CefBrowserCToCpp::StopLoad() {
|
||||
if (CEF_MEMBER_MISSING(struct_, stop_load))
|
||||
return;
|
||||
|
||||
@@ -172,8 +161,7 @@ void CefBrowserCToCpp::StopLoad()
|
||||
struct_->stop_load(struct_);
|
||||
}
|
||||
|
||||
void CefBrowserCToCpp::SetFocus(bool enable)
|
||||
{
|
||||
void CefBrowserCToCpp::SetFocus(bool enable) {
|
||||
if (CEF_MEMBER_MISSING(struct_, set_focus))
|
||||
return;
|
||||
|
||||
@@ -184,8 +172,7 @@ void CefBrowserCToCpp::SetFocus(bool enable)
|
||||
enable);
|
||||
}
|
||||
|
||||
CefWindowHandle CefBrowserCToCpp::GetWindowHandle()
|
||||
{
|
||||
CefWindowHandle CefBrowserCToCpp::GetWindowHandle() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_window_handle))
|
||||
return NULL;
|
||||
|
||||
@@ -198,8 +185,7 @@ CefWindowHandle CefBrowserCToCpp::GetWindowHandle()
|
||||
return _retval;
|
||||
}
|
||||
|
||||
CefWindowHandle CefBrowserCToCpp::GetOpenerWindowHandle()
|
||||
{
|
||||
CefWindowHandle CefBrowserCToCpp::GetOpenerWindowHandle() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_opener_window_handle))
|
||||
return NULL;
|
||||
|
||||
@@ -212,8 +198,7 @@ CefWindowHandle CefBrowserCToCpp::GetOpenerWindowHandle()
|
||||
return _retval;
|
||||
}
|
||||
|
||||
bool CefBrowserCToCpp::IsPopup()
|
||||
{
|
||||
bool CefBrowserCToCpp::IsPopup() {
|
||||
if (CEF_MEMBER_MISSING(struct_, is_popup))
|
||||
return false;
|
||||
|
||||
@@ -226,8 +211,7 @@ bool CefBrowserCToCpp::IsPopup()
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
bool CefBrowserCToCpp::HasDocument()
|
||||
{
|
||||
bool CefBrowserCToCpp::HasDocument() {
|
||||
if (CEF_MEMBER_MISSING(struct_, has_document))
|
||||
return false;
|
||||
|
||||
@@ -240,8 +224,7 @@ bool CefBrowserCToCpp::HasDocument()
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
CefRefPtr<CefClient> CefBrowserCToCpp::GetClient()
|
||||
{
|
||||
CefRefPtr<CefClient> CefBrowserCToCpp::GetClient() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_client))
|
||||
return NULL;
|
||||
|
||||
@@ -254,8 +237,7 @@ CefRefPtr<CefClient> CefBrowserCToCpp::GetClient()
|
||||
return CefClientCppToC::Unwrap(_retval);
|
||||
}
|
||||
|
||||
CefRefPtr<CefFrame> CefBrowserCToCpp::GetMainFrame()
|
||||
{
|
||||
CefRefPtr<CefFrame> CefBrowserCToCpp::GetMainFrame() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_main_frame))
|
||||
return NULL;
|
||||
|
||||
@@ -268,8 +250,7 @@ CefRefPtr<CefFrame> CefBrowserCToCpp::GetMainFrame()
|
||||
return CefFrameCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
CefRefPtr<CefFrame> CefBrowserCToCpp::GetFocusedFrame()
|
||||
{
|
||||
CefRefPtr<CefFrame> CefBrowserCToCpp::GetFocusedFrame() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_focused_frame))
|
||||
return NULL;
|
||||
|
||||
@@ -282,8 +263,7 @@ CefRefPtr<CefFrame> CefBrowserCToCpp::GetFocusedFrame()
|
||||
return CefFrameCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
CefRefPtr<CefFrame> CefBrowserCToCpp::GetFrame(const CefString& name)
|
||||
{
|
||||
CefRefPtr<CefFrame> CefBrowserCToCpp::GetFrame(const CefString& name) {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_frame))
|
||||
return NULL;
|
||||
|
||||
@@ -302,8 +282,7 @@ CefRefPtr<CefFrame> CefBrowserCToCpp::GetFrame(const CefString& name)
|
||||
return CefFrameCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
void CefBrowserCToCpp::GetFrameNames(std::vector<CefString>& names)
|
||||
{
|
||||
void CefBrowserCToCpp::GetFrameNames(std::vector<CefString>& names) {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_frame_names))
|
||||
return;
|
||||
|
||||
@@ -328,8 +307,7 @@ void CefBrowserCToCpp::GetFrameNames(std::vector<CefString>& names)
|
||||
}
|
||||
|
||||
void CefBrowserCToCpp::Find(int identifier, const CefString& searchText,
|
||||
bool forward, bool matchCase, bool findNext)
|
||||
{
|
||||
bool forward, bool matchCase, bool findNext) {
|
||||
if (CEF_MEMBER_MISSING(struct_, find))
|
||||
return;
|
||||
|
||||
@@ -349,8 +327,7 @@ void CefBrowserCToCpp::Find(int identifier, const CefString& searchText,
|
||||
findNext);
|
||||
}
|
||||
|
||||
void CefBrowserCToCpp::StopFinding(bool clearSelection)
|
||||
{
|
||||
void CefBrowserCToCpp::StopFinding(bool clearSelection) {
|
||||
if (CEF_MEMBER_MISSING(struct_, stop_finding))
|
||||
return;
|
||||
|
||||
@@ -361,8 +338,7 @@ void CefBrowserCToCpp::StopFinding(bool clearSelection)
|
||||
clearSelection);
|
||||
}
|
||||
|
||||
double CefBrowserCToCpp::GetZoomLevel()
|
||||
{
|
||||
double CefBrowserCToCpp::GetZoomLevel() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_zoom_level))
|
||||
return 0;
|
||||
|
||||
@@ -375,8 +351,7 @@ double CefBrowserCToCpp::GetZoomLevel()
|
||||
return _retval;
|
||||
}
|
||||
|
||||
void CefBrowserCToCpp::SetZoomLevel(double zoomLevel)
|
||||
{
|
||||
void CefBrowserCToCpp::SetZoomLevel(double zoomLevel) {
|
||||
if (CEF_MEMBER_MISSING(struct_, set_zoom_level))
|
||||
return;
|
||||
|
||||
@@ -387,8 +362,7 @@ void CefBrowserCToCpp::SetZoomLevel(double zoomLevel)
|
||||
zoomLevel);
|
||||
}
|
||||
|
||||
void CefBrowserCToCpp::ClearHistory()
|
||||
{
|
||||
void CefBrowserCToCpp::ClearHistory() {
|
||||
if (CEF_MEMBER_MISSING(struct_, clear_history))
|
||||
return;
|
||||
|
||||
@@ -398,8 +372,7 @@ void CefBrowserCToCpp::ClearHistory()
|
||||
struct_->clear_history(struct_);
|
||||
}
|
||||
|
||||
void CefBrowserCToCpp::ShowDevTools()
|
||||
{
|
||||
void CefBrowserCToCpp::ShowDevTools() {
|
||||
if (CEF_MEMBER_MISSING(struct_, show_dev_tools))
|
||||
return;
|
||||
|
||||
@@ -409,8 +382,7 @@ void CefBrowserCToCpp::ShowDevTools()
|
||||
struct_->show_dev_tools(struct_);
|
||||
}
|
||||
|
||||
void CefBrowserCToCpp::CloseDevTools()
|
||||
{
|
||||
void CefBrowserCToCpp::CloseDevTools() {
|
||||
if (CEF_MEMBER_MISSING(struct_, close_dev_tools))
|
||||
return;
|
||||
|
||||
@@ -420,8 +392,7 @@ void CefBrowserCToCpp::CloseDevTools()
|
||||
struct_->close_dev_tools(struct_);
|
||||
}
|
||||
|
||||
bool CefBrowserCToCpp::IsWindowRenderingDisabled()
|
||||
{
|
||||
bool CefBrowserCToCpp::IsWindowRenderingDisabled() {
|
||||
if (CEF_MEMBER_MISSING(struct_, is_window_rendering_disabled))
|
||||
return false;
|
||||
|
||||
@@ -434,8 +405,7 @@ bool CefBrowserCToCpp::IsWindowRenderingDisabled()
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
bool CefBrowserCToCpp::GetSize(PaintElementType type, int& width, int& height)
|
||||
{
|
||||
bool CefBrowserCToCpp::GetSize(PaintElementType type, int& width, int& height) {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_size))
|
||||
return false;
|
||||
|
||||
@@ -451,8 +421,7 @@ bool CefBrowserCToCpp::GetSize(PaintElementType type, int& width, int& height)
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
void CefBrowserCToCpp::SetSize(PaintElementType type, int width, int height)
|
||||
{
|
||||
void CefBrowserCToCpp::SetSize(PaintElementType type, int width, int height) {
|
||||
if (CEF_MEMBER_MISSING(struct_, set_size))
|
||||
return;
|
||||
|
||||
@@ -465,8 +434,7 @@ void CefBrowserCToCpp::SetSize(PaintElementType type, int width, int height)
|
||||
height);
|
||||
}
|
||||
|
||||
bool CefBrowserCToCpp::IsPopupVisible()
|
||||
{
|
||||
bool CefBrowserCToCpp::IsPopupVisible() {
|
||||
if (CEF_MEMBER_MISSING(struct_, is_popup_visible))
|
||||
return false;
|
||||
|
||||
@@ -479,8 +447,7 @@ bool CefBrowserCToCpp::IsPopupVisible()
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
void CefBrowserCToCpp::HidePopup()
|
||||
{
|
||||
void CefBrowserCToCpp::HidePopup() {
|
||||
if (CEF_MEMBER_MISSING(struct_, hide_popup))
|
||||
return;
|
||||
|
||||
@@ -490,8 +457,7 @@ void CefBrowserCToCpp::HidePopup()
|
||||
struct_->hide_popup(struct_);
|
||||
}
|
||||
|
||||
void CefBrowserCToCpp::Invalidate(const CefRect& dirtyRect)
|
||||
{
|
||||
void CefBrowserCToCpp::Invalidate(const CefRect& dirtyRect) {
|
||||
if (CEF_MEMBER_MISSING(struct_, invalidate))
|
||||
return;
|
||||
|
||||
@@ -503,8 +469,7 @@ void CefBrowserCToCpp::Invalidate(const CefRect& dirtyRect)
|
||||
}
|
||||
|
||||
bool CefBrowserCToCpp::GetImage(PaintElementType type, int width, int height,
|
||||
void* buffer)
|
||||
{
|
||||
void* buffer) {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_image))
|
||||
return false;
|
||||
|
||||
@@ -527,8 +492,7 @@ bool CefBrowserCToCpp::GetImage(PaintElementType type, int width, int height,
|
||||
}
|
||||
|
||||
void CefBrowserCToCpp::SendKeyEvent(KeyType type, int key, int modifiers,
|
||||
bool sysChar, bool imeChar)
|
||||
{
|
||||
bool sysChar, bool imeChar) {
|
||||
if (CEF_MEMBER_MISSING(struct_, send_key_event))
|
||||
return;
|
||||
|
||||
@@ -544,8 +508,7 @@ void CefBrowserCToCpp::SendKeyEvent(KeyType type, int key, int modifiers,
|
||||
}
|
||||
|
||||
void CefBrowserCToCpp::SendMouseClickEvent(int x, int y, MouseButtonType type,
|
||||
bool mouseUp, int clickCount)
|
||||
{
|
||||
bool mouseUp, int clickCount) {
|
||||
if (CEF_MEMBER_MISSING(struct_, send_mouse_click_event))
|
||||
return;
|
||||
|
||||
@@ -560,8 +523,7 @@ void CefBrowserCToCpp::SendMouseClickEvent(int x, int y, MouseButtonType type,
|
||||
clickCount);
|
||||
}
|
||||
|
||||
void CefBrowserCToCpp::SendMouseMoveEvent(int x, int y, bool mouseLeave)
|
||||
{
|
||||
void CefBrowserCToCpp::SendMouseMoveEvent(int x, int y, bool mouseLeave) {
|
||||
if (CEF_MEMBER_MISSING(struct_, send_mouse_move_event))
|
||||
return;
|
||||
|
||||
@@ -574,8 +536,7 @@ void CefBrowserCToCpp::SendMouseMoveEvent(int x, int y, bool mouseLeave)
|
||||
mouseLeave);
|
||||
}
|
||||
|
||||
void CefBrowserCToCpp::SendMouseWheelEvent(int x, int y, int delta)
|
||||
{
|
||||
void CefBrowserCToCpp::SendMouseWheelEvent(int x, int y, int delta) {
|
||||
if (CEF_MEMBER_MISSING(struct_, send_mouse_wheel_event))
|
||||
return;
|
||||
|
||||
@@ -588,8 +549,7 @@ void CefBrowserCToCpp::SendMouseWheelEvent(int x, int y, int delta)
|
||||
delta);
|
||||
}
|
||||
|
||||
void CefBrowserCToCpp::SendFocusEvent(bool setFocus)
|
||||
{
|
||||
void CefBrowserCToCpp::SendFocusEvent(bool setFocus) {
|
||||
if (CEF_MEMBER_MISSING(struct_, send_focus_event))
|
||||
return;
|
||||
|
||||
@@ -600,8 +560,7 @@ void CefBrowserCToCpp::SendFocusEvent(bool setFocus)
|
||||
setFocus);
|
||||
}
|
||||
|
||||
void CefBrowserCToCpp::SendCaptureLostEvent()
|
||||
{
|
||||
void CefBrowserCToCpp::SendCaptureLostEvent() {
|
||||
if (CEF_MEMBER_MISSING(struct_, send_capture_lost_event))
|
||||
return;
|
||||
|
||||
|
@@ -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,13 +10,15 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _BROWSER_CTOCPP_H
|
||||
#define _BROWSER_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_BROWSER_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_BROWSER_CTOCPP_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 <vector>
|
||||
#include "include/cef_browser.h"
|
||||
#include "include/capi/cef_browser_capi.h"
|
||||
#include "include/cef_client.h"
|
||||
@@ -28,10 +30,9 @@
|
||||
// Wrap a C structure with a C++ class.
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefBrowserCToCpp
|
||||
: public CefCToCpp<CefBrowserCToCpp, CefBrowser, cef_browser_t>
|
||||
{
|
||||
public:
|
||||
CefBrowserCToCpp(cef_browser_t* str)
|
||||
: public CefCToCpp<CefBrowserCToCpp, CefBrowser, cef_browser_t> {
|
||||
public:
|
||||
explicit CefBrowserCToCpp(cef_browser_t* str)
|
||||
: CefCToCpp<CefBrowserCToCpp, CefBrowser, cef_browser_t>(str) {}
|
||||
virtual ~CefBrowserCToCpp() {}
|
||||
|
||||
@@ -81,6 +82,6 @@ public:
|
||||
virtual void SendCaptureLostEvent() OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _BROWSER_CTOCPP_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_BROWSER_CTOCPP_H_
|
||||
|
||||
|
@@ -29,8 +29,7 @@
|
||||
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
CefRefPtr<CefLifeSpanHandler> CefClientCToCpp::GetLifeSpanHandler()
|
||||
{
|
||||
CefRefPtr<CefLifeSpanHandler> CefClientCToCpp::GetLifeSpanHandler() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_life_span_handler))
|
||||
return NULL;
|
||||
|
||||
@@ -43,8 +42,7 @@ CefRefPtr<CefLifeSpanHandler> CefClientCToCpp::GetLifeSpanHandler()
|
||||
return CefLifeSpanHandlerCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
CefRefPtr<CefLoadHandler> CefClientCToCpp::GetLoadHandler()
|
||||
{
|
||||
CefRefPtr<CefLoadHandler> CefClientCToCpp::GetLoadHandler() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_load_handler))
|
||||
return NULL;
|
||||
|
||||
@@ -57,8 +55,7 @@ CefRefPtr<CefLoadHandler> CefClientCToCpp::GetLoadHandler()
|
||||
return CefLoadHandlerCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
CefRefPtr<CefRequestHandler> CefClientCToCpp::GetRequestHandler()
|
||||
{
|
||||
CefRefPtr<CefRequestHandler> CefClientCToCpp::GetRequestHandler() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_request_handler))
|
||||
return NULL;
|
||||
|
||||
@@ -71,8 +68,7 @@ CefRefPtr<CefRequestHandler> CefClientCToCpp::GetRequestHandler()
|
||||
return CefRequestHandlerCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
CefRefPtr<CefDisplayHandler> CefClientCToCpp::GetDisplayHandler()
|
||||
{
|
||||
CefRefPtr<CefDisplayHandler> CefClientCToCpp::GetDisplayHandler() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_display_handler))
|
||||
return NULL;
|
||||
|
||||
@@ -85,8 +81,7 @@ CefRefPtr<CefDisplayHandler> CefClientCToCpp::GetDisplayHandler()
|
||||
return CefDisplayHandlerCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
CefRefPtr<CefFocusHandler> CefClientCToCpp::GetFocusHandler()
|
||||
{
|
||||
CefRefPtr<CefFocusHandler> CefClientCToCpp::GetFocusHandler() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_focus_handler))
|
||||
return NULL;
|
||||
|
||||
@@ -99,8 +94,7 @@ CefRefPtr<CefFocusHandler> CefClientCToCpp::GetFocusHandler()
|
||||
return CefFocusHandlerCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
CefRefPtr<CefKeyboardHandler> CefClientCToCpp::GetKeyboardHandler()
|
||||
{
|
||||
CefRefPtr<CefKeyboardHandler> CefClientCToCpp::GetKeyboardHandler() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_keyboard_handler))
|
||||
return NULL;
|
||||
|
||||
@@ -113,8 +107,7 @@ CefRefPtr<CefKeyboardHandler> CefClientCToCpp::GetKeyboardHandler()
|
||||
return CefKeyboardHandlerCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
CefRefPtr<CefMenuHandler> CefClientCToCpp::GetMenuHandler()
|
||||
{
|
||||
CefRefPtr<CefMenuHandler> CefClientCToCpp::GetMenuHandler() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_menu_handler))
|
||||
return NULL;
|
||||
|
||||
@@ -127,8 +120,7 @@ CefRefPtr<CefMenuHandler> CefClientCToCpp::GetMenuHandler()
|
||||
return CefMenuHandlerCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
CefRefPtr<CefPermissionHandler> CefClientCToCpp::GetPermissionHandler()
|
||||
{
|
||||
CefRefPtr<CefPermissionHandler> CefClientCToCpp::GetPermissionHandler() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_permission_handler))
|
||||
return NULL;
|
||||
|
||||
@@ -141,8 +133,7 @@ CefRefPtr<CefPermissionHandler> CefClientCToCpp::GetPermissionHandler()
|
||||
return CefPermissionHandlerCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
CefRefPtr<CefPrintHandler> CefClientCToCpp::GetPrintHandler()
|
||||
{
|
||||
CefRefPtr<CefPrintHandler> CefClientCToCpp::GetPrintHandler() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_print_handler))
|
||||
return NULL;
|
||||
|
||||
@@ -155,8 +146,7 @@ CefRefPtr<CefPrintHandler> CefClientCToCpp::GetPrintHandler()
|
||||
return CefPrintHandlerCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
CefRefPtr<CefFindHandler> CefClientCToCpp::GetFindHandler()
|
||||
{
|
||||
CefRefPtr<CefFindHandler> CefClientCToCpp::GetFindHandler() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_find_handler))
|
||||
return NULL;
|
||||
|
||||
@@ -169,8 +159,7 @@ CefRefPtr<CefFindHandler> CefClientCToCpp::GetFindHandler()
|
||||
return CefFindHandlerCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
CefRefPtr<CefJSDialogHandler> CefClientCToCpp::GetJSDialogHandler()
|
||||
{
|
||||
CefRefPtr<CefJSDialogHandler> CefClientCToCpp::GetJSDialogHandler() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_jsdialog_handler))
|
||||
return NULL;
|
||||
|
||||
@@ -183,8 +172,7 @@ CefRefPtr<CefJSDialogHandler> CefClientCToCpp::GetJSDialogHandler()
|
||||
return CefJSDialogHandlerCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
CefRefPtr<CefV8ContextHandler> CefClientCToCpp::GetV8ContextHandler()
|
||||
{
|
||||
CefRefPtr<CefV8ContextHandler> CefClientCToCpp::GetV8ContextHandler() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_v8context_handler))
|
||||
return NULL;
|
||||
|
||||
@@ -197,8 +185,7 @@ CefRefPtr<CefV8ContextHandler> CefClientCToCpp::GetV8ContextHandler()
|
||||
return CefV8ContextHandlerCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
CefRefPtr<CefRenderHandler> CefClientCToCpp::GetRenderHandler()
|
||||
{
|
||||
CefRefPtr<CefRenderHandler> CefClientCToCpp::GetRenderHandler() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_render_handler))
|
||||
return NULL;
|
||||
|
||||
@@ -211,8 +198,7 @@ CefRefPtr<CefRenderHandler> CefClientCToCpp::GetRenderHandler()
|
||||
return CefRenderHandlerCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
CefRefPtr<CefDragHandler> CefClientCToCpp::GetDragHandler()
|
||||
{
|
||||
CefRefPtr<CefDragHandler> CefClientCToCpp::GetDragHandler() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_drag_handler))
|
||||
return NULL;
|
||||
|
||||
|
@@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _CLIENT_CTOCPP_H
|
||||
#define _CLIENT_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_CLIENT_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_CLIENT_CTOCPP_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_client.h"
|
||||
#include "include/capi/cef_client_capi.h"
|
||||
@@ -24,10 +25,9 @@
|
||||
// Wrap a C structure with a C++ class.
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefClientCToCpp
|
||||
: public CefCToCpp<CefClientCToCpp, CefClient, cef_client_t>
|
||||
{
|
||||
public:
|
||||
CefClientCToCpp(cef_client_t* str)
|
||||
: public CefCToCpp<CefClientCToCpp, CefClient, cef_client_t> {
|
||||
public:
|
||||
explicit CefClientCToCpp(cef_client_t* str)
|
||||
: CefCToCpp<CefClientCToCpp, CefClient, cef_client_t>(str) {}
|
||||
virtual ~CefClientCToCpp() {}
|
||||
|
||||
@@ -48,6 +48,6 @@ public:
|
||||
virtual CefRefPtr<CefDragHandler> GetDragHandler() OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _CLIENT_CTOCPP_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_CLIENT_CTOCPP_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 @@
|
||||
|
||||
// STATIC METHODS - Body may be edited by hand.
|
||||
|
||||
CefRefPtr<CefCommandLine> CefCommandLine::CreateCommandLine()
|
||||
{
|
||||
CefRefPtr<CefCommandLine> CefCommandLine::CreateCommandLine() {
|
||||
int build_revision = cef_build_revision();
|
||||
if (build_revision != CEF_REVISION) {
|
||||
// The libcef build revision does not match the CEF API revision.
|
||||
@@ -38,8 +37,7 @@ CefRefPtr<CefCommandLine> CefCommandLine::CreateCommandLine()
|
||||
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
void CefCommandLineCToCpp::InitFromArgv(int argc, const char* const* argv)
|
||||
{
|
||||
void CefCommandLineCToCpp::InitFromArgv(int argc, const char* const* argv) {
|
||||
if (CEF_MEMBER_MISSING(struct_, init_from_argv))
|
||||
return;
|
||||
|
||||
@@ -56,8 +54,7 @@ void CefCommandLineCToCpp::InitFromArgv(int argc, const char* const* argv)
|
||||
argv);
|
||||
}
|
||||
|
||||
void CefCommandLineCToCpp::InitFromString(const CefString& command_line)
|
||||
{
|
||||
void CefCommandLineCToCpp::InitFromString(const CefString& command_line) {
|
||||
if (CEF_MEMBER_MISSING(struct_, init_from_string))
|
||||
return;
|
||||
|
||||
@@ -73,8 +70,7 @@ void CefCommandLineCToCpp::InitFromString(const CefString& command_line)
|
||||
command_line.GetStruct());
|
||||
}
|
||||
|
||||
CefString CefCommandLineCToCpp::GetCommandLineString()
|
||||
{
|
||||
CefString CefCommandLineCToCpp::GetCommandLineString() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_command_line_string))
|
||||
return CefString();
|
||||
|
||||
@@ -89,8 +85,7 @@ CefString CefCommandLineCToCpp::GetCommandLineString()
|
||||
return _retvalStr;
|
||||
}
|
||||
|
||||
CefString CefCommandLineCToCpp::GetProgram()
|
||||
{
|
||||
CefString CefCommandLineCToCpp::GetProgram() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_program))
|
||||
return CefString();
|
||||
|
||||
@@ -105,8 +100,7 @@ CefString CefCommandLineCToCpp::GetProgram()
|
||||
return _retvalStr;
|
||||
}
|
||||
|
||||
void CefCommandLineCToCpp::SetProgram(const CefString& program)
|
||||
{
|
||||
void CefCommandLineCToCpp::SetProgram(const CefString& program) {
|
||||
if (CEF_MEMBER_MISSING(struct_, set_program))
|
||||
return;
|
||||
|
||||
@@ -122,8 +116,7 @@ void CefCommandLineCToCpp::SetProgram(const CefString& program)
|
||||
program.GetStruct());
|
||||
}
|
||||
|
||||
bool CefCommandLineCToCpp::HasSwitches()
|
||||
{
|
||||
bool CefCommandLineCToCpp::HasSwitches() {
|
||||
if (CEF_MEMBER_MISSING(struct_, has_switches))
|
||||
return false;
|
||||
|
||||
@@ -136,8 +129,7 @@ bool CefCommandLineCToCpp::HasSwitches()
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
bool CefCommandLineCToCpp::HasSwitch(const CefString& name)
|
||||
{
|
||||
bool CefCommandLineCToCpp::HasSwitch(const CefString& name) {
|
||||
if (CEF_MEMBER_MISSING(struct_, has_switch))
|
||||
return false;
|
||||
|
||||
@@ -156,8 +148,7 @@ bool CefCommandLineCToCpp::HasSwitch(const CefString& name)
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
CefString CefCommandLineCToCpp::GetSwitchValue(const CefString& name)
|
||||
{
|
||||
CefString CefCommandLineCToCpp::GetSwitchValue(const CefString& name) {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_switch_value))
|
||||
return CefString();
|
||||
|
||||
@@ -178,8 +169,7 @@ CefString CefCommandLineCToCpp::GetSwitchValue(const CefString& name)
|
||||
return _retvalStr;
|
||||
}
|
||||
|
||||
void CefCommandLineCToCpp::GetSwitches(SwitchMap& switches)
|
||||
{
|
||||
void CefCommandLineCToCpp::GetSwitches(SwitchMap& switches) {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_switches))
|
||||
return;
|
||||
|
||||
@@ -203,8 +193,7 @@ void CefCommandLineCToCpp::GetSwitches(SwitchMap& switches)
|
||||
}
|
||||
}
|
||||
|
||||
void CefCommandLineCToCpp::AppendSwitch(const CefString& name)
|
||||
{
|
||||
void CefCommandLineCToCpp::AppendSwitch(const CefString& name) {
|
||||
if (CEF_MEMBER_MISSING(struct_, append_switch))
|
||||
return;
|
||||
|
||||
@@ -221,8 +210,7 @@ void CefCommandLineCToCpp::AppendSwitch(const CefString& name)
|
||||
}
|
||||
|
||||
void CefCommandLineCToCpp::AppendSwitchWithValue(const CefString& name,
|
||||
const CefString& value)
|
||||
{
|
||||
const CefString& value) {
|
||||
if (CEF_MEMBER_MISSING(struct_, append_switch_with_value))
|
||||
return;
|
||||
|
||||
@@ -243,8 +231,7 @@ void CefCommandLineCToCpp::AppendSwitchWithValue(const CefString& name,
|
||||
value.GetStruct());
|
||||
}
|
||||
|
||||
bool CefCommandLineCToCpp::HasArguments()
|
||||
{
|
||||
bool CefCommandLineCToCpp::HasArguments() {
|
||||
if (CEF_MEMBER_MISSING(struct_, has_arguments))
|
||||
return false;
|
||||
|
||||
@@ -257,8 +244,7 @@ bool CefCommandLineCToCpp::HasArguments()
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
void CefCommandLineCToCpp::GetArguments(ArgumentList& arguments)
|
||||
{
|
||||
void CefCommandLineCToCpp::GetArguments(ArgumentList& arguments) {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_arguments))
|
||||
return;
|
||||
|
||||
@@ -282,8 +268,7 @@ void CefCommandLineCToCpp::GetArguments(ArgumentList& arguments)
|
||||
}
|
||||
}
|
||||
|
||||
void CefCommandLineCToCpp::AppendArgument(const CefString& argument)
|
||||
{
|
||||
void CefCommandLineCToCpp::AppendArgument(const CefString& argument) {
|
||||
if (CEF_MEMBER_MISSING(struct_, append_argument))
|
||||
return;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _COMMANDLINE_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_COMMAND_LINE_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_COMMAND_LINE_CTOCPP_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_command_line.h"
|
||||
#include "include/capi/cef_command_line_capi.h"
|
||||
@@ -24,10 +25,10 @@
|
||||
// Wrap a C structure with a C++ class.
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefCommandLineCToCpp
|
||||
: public CefCToCpp<CefCommandLineCToCpp, CefCommandLine, cef_command_line_t>
|
||||
{
|
||||
public:
|
||||
CefCommandLineCToCpp(cef_command_line_t* str)
|
||||
: public CefCToCpp<CefCommandLineCToCpp, CefCommandLine,
|
||||
cef_command_line_t> {
|
||||
public:
|
||||
explicit CefCommandLineCToCpp(cef_command_line_t* str)
|
||||
: CefCToCpp<CefCommandLineCToCpp, CefCommandLine, cef_command_line_t>(
|
||||
str) {}
|
||||
virtual ~CefCommandLineCToCpp() {}
|
||||
@@ -50,6 +51,6 @@ public:
|
||||
virtual void AppendArgument(const CefString& argument) OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _COMMANDLINE_CTOCPP_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_COMMAND_LINE_CTOCPP_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 @@
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
void CefContentFilterCToCpp::ProcessData(const void* data, int data_size,
|
||||
CefRefPtr<CefStreamReader>& substitute_data)
|
||||
{
|
||||
CefRefPtr<CefStreamReader>& substitute_data) {
|
||||
if (CEF_MEMBER_MISSING(struct_, process_data))
|
||||
return;
|
||||
|
||||
@@ -31,7 +30,7 @@ void CefContentFilterCToCpp::ProcessData(const void* data, int data_size,
|
||||
|
||||
// Translate param: substitute_data; type: refptr_diff_byref
|
||||
cef_stream_reader_t* substitute_dataStruct = NULL;
|
||||
if(substitute_data.get())
|
||||
if (substitute_data.get())
|
||||
substitute_dataStruct = CefStreamReaderCppToC::Wrap(substitute_data);
|
||||
cef_stream_reader_t* substitute_dataOrig = substitute_dataStruct;
|
||||
|
||||
@@ -51,8 +50,7 @@ void CefContentFilterCToCpp::ProcessData(const void* data, int data_size,
|
||||
}
|
||||
}
|
||||
|
||||
void CefContentFilterCToCpp::Drain(CefRefPtr<CefStreamReader>& remainder)
|
||||
{
|
||||
void CefContentFilterCToCpp::Drain(CefRefPtr<CefStreamReader>& remainder) {
|
||||
if (CEF_MEMBER_MISSING(struct_, drain))
|
||||
return;
|
||||
|
||||
@@ -60,7 +58,7 @@ void CefContentFilterCToCpp::Drain(CefRefPtr<CefStreamReader>& remainder)
|
||||
|
||||
// Translate param: remainder; type: refptr_diff_byref
|
||||
cef_stream_reader_t* remainderStruct = NULL;
|
||||
if(remainder.get())
|
||||
if (remainder.get())
|
||||
remainderStruct = CefStreamReaderCppToC::Wrap(remainder);
|
||||
cef_stream_reader_t* remainderOrig = remainderStruct;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _CONTENTFILTER_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_CONTENT_FILTER_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_CONTENT_FILTER_CTOCPP_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_content_filter.h"
|
||||
#include "include/capi/cef_content_filter_capi.h"
|
||||
@@ -27,10 +28,9 @@
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefContentFilterCToCpp
|
||||
: public CefCToCpp<CefContentFilterCToCpp, CefContentFilter,
|
||||
cef_content_filter_t>
|
||||
{
|
||||
public:
|
||||
CefContentFilterCToCpp(cef_content_filter_t* str)
|
||||
cef_content_filter_t> {
|
||||
public:
|
||||
explicit CefContentFilterCToCpp(cef_content_filter_t* str)
|
||||
: CefCToCpp<CefContentFilterCToCpp, CefContentFilter,
|
||||
cef_content_filter_t>(str) {}
|
||||
virtual ~CefContentFilterCToCpp() {}
|
||||
@@ -41,6 +41,6 @@ public:
|
||||
virtual void Drain(CefRefPtr<CefStreamReader>& remainder) OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _CONTENTFILTER_CTOCPP_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_CONTENT_FILTER_CTOCPP_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 @@
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
bool CefCookieVisitorCToCpp::Visit(const CefCookie& cookie, int count,
|
||||
int total, bool& deleteCookie)
|
||||
{
|
||||
int total, bool& deleteCookie) {
|
||||
if (CEF_MEMBER_MISSING(struct_, visit))
|
||||
return false;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _COOKIEVISITOR_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_COOKIE_VISITOR_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_COOKIE_VISITOR_CTOCPP_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_cookie.h"
|
||||
#include "include/capi/cef_cookie_capi.h"
|
||||
@@ -25,10 +26,9 @@
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefCookieVisitorCToCpp
|
||||
: public CefCToCpp<CefCookieVisitorCToCpp, CefCookieVisitor,
|
||||
cef_cookie_visitor_t>
|
||||
{
|
||||
public:
|
||||
CefCookieVisitorCToCpp(cef_cookie_visitor_t* str)
|
||||
cef_cookie_visitor_t> {
|
||||
public:
|
||||
explicit CefCookieVisitorCToCpp(cef_cookie_visitor_t* str)
|
||||
: CefCToCpp<CefCookieVisitorCToCpp, CefCookieVisitor,
|
||||
cef_cookie_visitor_t>(str) {}
|
||||
virtual ~CefCookieVisitorCToCpp() {}
|
||||
@@ -38,6 +38,6 @@ public:
|
||||
bool& deleteCookie) OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _COOKIEVISITOR_CTOCPP_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_COOKIE_VISITOR_CTOCPP_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 _CTOCPP_H
|
||||
#define _CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_CTOCPP_H_
|
||||
#pragma once
|
||||
|
||||
#include "include/cef_base.h"
|
||||
#include "include/capi/cef_base_capi.h"
|
||||
@@ -14,13 +15,11 @@
|
||||
// exists on the other side of the DLL boundary but will have methods called on
|
||||
// this side of the DLL boundary.
|
||||
template <class ClassName, class BaseName, class StructName>
|
||||
class CefCToCpp : public BaseName
|
||||
{
|
||||
public:
|
||||
class CefCToCpp : public BaseName {
|
||||
public:
|
||||
// Use this method to create a wrapper class instance for a structure
|
||||
// received from the other side.
|
||||
static CefRefPtr<BaseName> Wrap(StructName* s)
|
||||
{
|
||||
static CefRefPtr<BaseName> Wrap(StructName* s) {
|
||||
if (!s)
|
||||
return NULL;
|
||||
|
||||
@@ -37,8 +36,7 @@ public:
|
||||
|
||||
// Use this method to retrieve the underlying structure from a wrapper class
|
||||
// instance for return back to the other side.
|
||||
static StructName* Unwrap(CefRefPtr<BaseName> c)
|
||||
{
|
||||
static StructName* Unwrap(CefRefPtr<BaseName> c) {
|
||||
if (!c.get())
|
||||
return NULL;
|
||||
|
||||
@@ -51,17 +49,15 @@ public:
|
||||
return wrapper->GetStruct();
|
||||
}
|
||||
|
||||
CefCToCpp(StructName* str)
|
||||
: struct_(str)
|
||||
{
|
||||
explicit CefCToCpp(StructName* str)
|
||||
: struct_(str) {
|
||||
DCHECK(str);
|
||||
|
||||
#ifndef NDEBUG
|
||||
CefAtomicIncrement(&DebugObjCt);
|
||||
#endif
|
||||
}
|
||||
virtual ~CefCToCpp()
|
||||
{
|
||||
virtual ~CefCToCpp() {
|
||||
#ifndef NDEBUG
|
||||
CefAtomicDecrement(&DebugObjCt);
|
||||
#endif
|
||||
@@ -74,13 +70,11 @@ public:
|
||||
|
||||
// CefBase methods increment/decrement reference counts on both this object
|
||||
// and the underlying wrapped structure.
|
||||
int AddRef()
|
||||
{
|
||||
int AddRef() {
|
||||
UnderlyingAddRef();
|
||||
return refct_.AddRef();
|
||||
}
|
||||
int Release()
|
||||
{
|
||||
int Release() {
|
||||
UnderlyingRelease();
|
||||
int retval = refct_.Release();
|
||||
if (retval == 0)
|
||||
@@ -90,33 +84,30 @@ public:
|
||||
int GetRefCt() { return refct_.GetRefCt(); }
|
||||
|
||||
// Increment/decrement reference counts on only the underlying class.
|
||||
int UnderlyingAddRef()
|
||||
{
|
||||
if(!struct_->base.add_ref)
|
||||
int UnderlyingAddRef() {
|
||||
if (!struct_->base.add_ref)
|
||||
return 0;
|
||||
return struct_->base.add_ref(&struct_->base);
|
||||
}
|
||||
int UnderlyingRelease()
|
||||
{
|
||||
if(!struct_->base.release)
|
||||
int UnderlyingRelease() {
|
||||
if (!struct_->base.release)
|
||||
return 0;
|
||||
return struct_->base.release(&struct_->base);
|
||||
}
|
||||
int UnderlyingGetRefCt()
|
||||
{
|
||||
if(!struct_->base.get_refct)
|
||||
int UnderlyingGetRefCt() {
|
||||
if (!struct_->base.get_refct)
|
||||
return 0;
|
||||
return struct_->base.get_refct(&struct_->base);
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
// Simple tracking of allocated objects.
|
||||
static long DebugObjCt;
|
||||
static long DebugObjCt; // NOLINT(runtime/int)
|
||||
#endif
|
||||
|
||||
protected:
|
||||
protected:
|
||||
CefRefCount refct_;
|
||||
StructName* struct_;
|
||||
};
|
||||
|
||||
#endif // _CTOCPP_H
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_CTOCPP_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 @@
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
void CefDisplayHandlerCToCpp::OnNavStateChange(CefRefPtr<CefBrowser> browser,
|
||||
bool canGoBack, bool canGoForward)
|
||||
{
|
||||
bool canGoBack, bool canGoForward) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_nav_state_change))
|
||||
return;
|
||||
|
||||
@@ -38,8 +37,7 @@ void CefDisplayHandlerCToCpp::OnNavStateChange(CefRefPtr<CefBrowser> browser,
|
||||
}
|
||||
|
||||
void CefDisplayHandlerCToCpp::OnAddressChange(CefRefPtr<CefBrowser> browser,
|
||||
CefRefPtr<CefFrame> frame, const CefString& url)
|
||||
{
|
||||
CefRefPtr<CefFrame> frame, const CefString& url) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_address_change))
|
||||
return;
|
||||
|
||||
@@ -67,8 +65,7 @@ void CefDisplayHandlerCToCpp::OnAddressChange(CefRefPtr<CefBrowser> browser,
|
||||
|
||||
void CefDisplayHandlerCToCpp::OnContentsSizeChange(
|
||||
CefRefPtr<CefBrowser> browser, CefRefPtr<CefFrame> frame, int width,
|
||||
int height)
|
||||
{
|
||||
int height) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_contents_size_change))
|
||||
return;
|
||||
|
||||
@@ -92,8 +89,7 @@ void CefDisplayHandlerCToCpp::OnContentsSizeChange(
|
||||
}
|
||||
|
||||
void CefDisplayHandlerCToCpp::OnTitleChange(CefRefPtr<CefBrowser> browser,
|
||||
const CefString& title)
|
||||
{
|
||||
const CefString& title) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_title_change))
|
||||
return;
|
||||
|
||||
@@ -112,8 +108,7 @@ void CefDisplayHandlerCToCpp::OnTitleChange(CefRefPtr<CefBrowser> browser,
|
||||
}
|
||||
|
||||
bool CefDisplayHandlerCToCpp::OnTooltip(CefRefPtr<CefBrowser> browser,
|
||||
CefString& text)
|
||||
{
|
||||
CefString& text) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_tooltip))
|
||||
return false;
|
||||
|
||||
@@ -135,8 +130,7 @@ bool CefDisplayHandlerCToCpp::OnTooltip(CefRefPtr<CefBrowser> browser,
|
||||
}
|
||||
|
||||
void CefDisplayHandlerCToCpp::OnStatusMessage(CefRefPtr<CefBrowser> browser,
|
||||
const CefString& value, StatusType type)
|
||||
{
|
||||
const CefString& value, StatusType type) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_status_message))
|
||||
return;
|
||||
|
||||
@@ -156,8 +150,7 @@ void CefDisplayHandlerCToCpp::OnStatusMessage(CefRefPtr<CefBrowser> browser,
|
||||
}
|
||||
|
||||
bool CefDisplayHandlerCToCpp::OnConsoleMessage(CefRefPtr<CefBrowser> browser,
|
||||
const CefString& message, const CefString& source, int line)
|
||||
{
|
||||
const CefString& message, const CefString& source, int line) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_console_message))
|
||||
return false;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _DISPLAYHANDLER_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_DISPLAY_HANDLER_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_DISPLAY_HANDLER_CTOCPP_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_display_handler.h"
|
||||
#include "include/capi/cef_display_handler_capi.h"
|
||||
@@ -29,10 +30,9 @@
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefDisplayHandlerCToCpp
|
||||
: public CefCToCpp<CefDisplayHandlerCToCpp, CefDisplayHandler,
|
||||
cef_display_handler_t>
|
||||
{
|
||||
public:
|
||||
CefDisplayHandlerCToCpp(cef_display_handler_t* str)
|
||||
cef_display_handler_t> {
|
||||
public:
|
||||
explicit CefDisplayHandlerCToCpp(cef_display_handler_t* str)
|
||||
: CefCToCpp<CefDisplayHandlerCToCpp, CefDisplayHandler,
|
||||
cef_display_handler_t>(str) {}
|
||||
virtual ~CefDisplayHandlerCToCpp() {}
|
||||
@@ -54,6 +54,6 @@ public:
|
||||
const CefString& message, const CefString& source, int line) OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _DISPLAYHANDLER_CTOCPP_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_DISPLAY_HANDLER_CTOCPP_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 @@
|
||||
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
CefDOMDocument::Type CefDOMDocumentCToCpp::GetType()
|
||||
{
|
||||
CefDOMDocument::Type CefDOMDocumentCToCpp::GetType() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_type))
|
||||
return DOM_DOCUMENT_TYPE_UNKNOWN;
|
||||
|
||||
@@ -30,8 +29,7 @@ CefDOMDocument::Type CefDOMDocumentCToCpp::GetType()
|
||||
return _retval;
|
||||
}
|
||||
|
||||
CefRefPtr<CefDOMNode> CefDOMDocumentCToCpp::GetDocument()
|
||||
{
|
||||
CefRefPtr<CefDOMNode> CefDOMDocumentCToCpp::GetDocument() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_document))
|
||||
return NULL;
|
||||
|
||||
@@ -44,8 +42,7 @@ CefRefPtr<CefDOMNode> CefDOMDocumentCToCpp::GetDocument()
|
||||
return CefDOMNodeCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
CefRefPtr<CefDOMNode> CefDOMDocumentCToCpp::GetBody()
|
||||
{
|
||||
CefRefPtr<CefDOMNode> CefDOMDocumentCToCpp::GetBody() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_body))
|
||||
return NULL;
|
||||
|
||||
@@ -58,8 +55,7 @@ CefRefPtr<CefDOMNode> CefDOMDocumentCToCpp::GetBody()
|
||||
return CefDOMNodeCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
CefRefPtr<CefDOMNode> CefDOMDocumentCToCpp::GetHead()
|
||||
{
|
||||
CefRefPtr<CefDOMNode> CefDOMDocumentCToCpp::GetHead() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_head))
|
||||
return NULL;
|
||||
|
||||
@@ -72,8 +68,7 @@ CefRefPtr<CefDOMNode> CefDOMDocumentCToCpp::GetHead()
|
||||
return CefDOMNodeCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
CefString CefDOMDocumentCToCpp::GetTitle()
|
||||
{
|
||||
CefString CefDOMDocumentCToCpp::GetTitle() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_title))
|
||||
return CefString();
|
||||
|
||||
@@ -88,8 +83,8 @@ CefString CefDOMDocumentCToCpp::GetTitle()
|
||||
return _retvalStr;
|
||||
}
|
||||
|
||||
CefRefPtr<CefDOMNode> CefDOMDocumentCToCpp::GetElementById(const CefString& id)
|
||||
{
|
||||
CefRefPtr<CefDOMNode> CefDOMDocumentCToCpp::GetElementById(
|
||||
const CefString& id) {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_element_by_id))
|
||||
return NULL;
|
||||
|
||||
@@ -108,8 +103,7 @@ CefRefPtr<CefDOMNode> CefDOMDocumentCToCpp::GetElementById(const CefString& id)
|
||||
return CefDOMNodeCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
CefRefPtr<CefDOMNode> CefDOMDocumentCToCpp::GetFocusedNode()
|
||||
{
|
||||
CefRefPtr<CefDOMNode> CefDOMDocumentCToCpp::GetFocusedNode() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_focused_node))
|
||||
return NULL;
|
||||
|
||||
@@ -122,8 +116,7 @@ CefRefPtr<CefDOMNode> CefDOMDocumentCToCpp::GetFocusedNode()
|
||||
return CefDOMNodeCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
bool CefDOMDocumentCToCpp::HasSelection()
|
||||
{
|
||||
bool CefDOMDocumentCToCpp::HasSelection() {
|
||||
if (CEF_MEMBER_MISSING(struct_, has_selection))
|
||||
return false;
|
||||
|
||||
@@ -136,8 +129,7 @@ bool CefDOMDocumentCToCpp::HasSelection()
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
CefRefPtr<CefDOMNode> CefDOMDocumentCToCpp::GetSelectionStartNode()
|
||||
{
|
||||
CefRefPtr<CefDOMNode> CefDOMDocumentCToCpp::GetSelectionStartNode() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_selection_start_node))
|
||||
return NULL;
|
||||
|
||||
@@ -150,8 +142,7 @@ CefRefPtr<CefDOMNode> CefDOMDocumentCToCpp::GetSelectionStartNode()
|
||||
return CefDOMNodeCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
int CefDOMDocumentCToCpp::GetSelectionStartOffset()
|
||||
{
|
||||
int CefDOMDocumentCToCpp::GetSelectionStartOffset() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_selection_start_offset))
|
||||
return 0;
|
||||
|
||||
@@ -164,8 +155,7 @@ int CefDOMDocumentCToCpp::GetSelectionStartOffset()
|
||||
return _retval;
|
||||
}
|
||||
|
||||
CefRefPtr<CefDOMNode> CefDOMDocumentCToCpp::GetSelectionEndNode()
|
||||
{
|
||||
CefRefPtr<CefDOMNode> CefDOMDocumentCToCpp::GetSelectionEndNode() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_selection_end_node))
|
||||
return NULL;
|
||||
|
||||
@@ -178,8 +168,7 @@ CefRefPtr<CefDOMNode> CefDOMDocumentCToCpp::GetSelectionEndNode()
|
||||
return CefDOMNodeCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
int CefDOMDocumentCToCpp::GetSelectionEndOffset()
|
||||
{
|
||||
int CefDOMDocumentCToCpp::GetSelectionEndOffset() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_selection_end_offset))
|
||||
return 0;
|
||||
|
||||
@@ -192,8 +181,7 @@ int CefDOMDocumentCToCpp::GetSelectionEndOffset()
|
||||
return _retval;
|
||||
}
|
||||
|
||||
CefString CefDOMDocumentCToCpp::GetSelectionAsMarkup()
|
||||
{
|
||||
CefString CefDOMDocumentCToCpp::GetSelectionAsMarkup() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_selection_as_markup))
|
||||
return CefString();
|
||||
|
||||
@@ -208,8 +196,7 @@ CefString CefDOMDocumentCToCpp::GetSelectionAsMarkup()
|
||||
return _retvalStr;
|
||||
}
|
||||
|
||||
CefString CefDOMDocumentCToCpp::GetSelectionAsText()
|
||||
{
|
||||
CefString CefDOMDocumentCToCpp::GetSelectionAsText() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_selection_as_text))
|
||||
return CefString();
|
||||
|
||||
@@ -224,8 +211,7 @@ CefString CefDOMDocumentCToCpp::GetSelectionAsText()
|
||||
return _retvalStr;
|
||||
}
|
||||
|
||||
CefString CefDOMDocumentCToCpp::GetBaseURL()
|
||||
{
|
||||
CefString CefDOMDocumentCToCpp::GetBaseURL() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_base_url))
|
||||
return CefString();
|
||||
|
||||
@@ -240,8 +226,7 @@ CefString CefDOMDocumentCToCpp::GetBaseURL()
|
||||
return _retvalStr;
|
||||
}
|
||||
|
||||
CefString CefDOMDocumentCToCpp::GetCompleteURL(const CefString& partialURL)
|
||||
{
|
||||
CefString CefDOMDocumentCToCpp::GetCompleteURL(const CefString& partialURL) {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_complete_url))
|
||||
return CefString();
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _DOMDOCUMENT_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_DOMDOCUMENT_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_DOMDOCUMENT_CTOCPP_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,10 +25,10 @@
|
||||
// Wrap a C structure with a C++ class.
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefDOMDocumentCToCpp
|
||||
: public CefCToCpp<CefDOMDocumentCToCpp, CefDOMDocument, cef_domdocument_t>
|
||||
{
|
||||
public:
|
||||
CefDOMDocumentCToCpp(cef_domdocument_t* str)
|
||||
: public CefCToCpp<CefDOMDocumentCToCpp, CefDOMDocument,
|
||||
cef_domdocument_t> {
|
||||
public:
|
||||
explicit CefDOMDocumentCToCpp(cef_domdocument_t* str)
|
||||
: CefCToCpp<CefDOMDocumentCToCpp, CefDOMDocument, cef_domdocument_t>(
|
||||
str) {}
|
||||
virtual ~CefDOMDocumentCToCpp() {}
|
||||
@@ -51,6 +52,6 @@ public:
|
||||
virtual CefString GetCompleteURL(const CefString& partialURL) OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _DOMDOCUMENT_CTOCPP_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_DOMDOCUMENT_CTOCPP_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 @@
|
||||
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
CefString CefDOMEventCToCpp::GetType()
|
||||
{
|
||||
CefString CefDOMEventCToCpp::GetType() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_type))
|
||||
return CefString();
|
||||
|
||||
@@ -33,8 +32,7 @@ CefString CefDOMEventCToCpp::GetType()
|
||||
return _retvalStr;
|
||||
}
|
||||
|
||||
CefDOMEvent::Category CefDOMEventCToCpp::GetCategory()
|
||||
{
|
||||
CefDOMEvent::Category CefDOMEventCToCpp::GetCategory() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_category))
|
||||
return DOM_EVENT_CATEGORY_UNKNOWN;
|
||||
|
||||
@@ -47,8 +45,7 @@ CefDOMEvent::Category CefDOMEventCToCpp::GetCategory()
|
||||
return _retval;
|
||||
}
|
||||
|
||||
CefDOMEvent::Phase CefDOMEventCToCpp::GetPhase()
|
||||
{
|
||||
CefDOMEvent::Phase CefDOMEventCToCpp::GetPhase() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_phase))
|
||||
return DOM_EVENT_PHASE_UNKNOWN;
|
||||
|
||||
@@ -61,8 +58,7 @@ CefDOMEvent::Phase CefDOMEventCToCpp::GetPhase()
|
||||
return _retval;
|
||||
}
|
||||
|
||||
bool CefDOMEventCToCpp::CanBubble()
|
||||
{
|
||||
bool CefDOMEventCToCpp::CanBubble() {
|
||||
if (CEF_MEMBER_MISSING(struct_, can_bubble))
|
||||
return false;
|
||||
|
||||
@@ -75,8 +71,7 @@ bool CefDOMEventCToCpp::CanBubble()
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
bool CefDOMEventCToCpp::CanCancel()
|
||||
{
|
||||
bool CefDOMEventCToCpp::CanCancel() {
|
||||
if (CEF_MEMBER_MISSING(struct_, can_cancel))
|
||||
return false;
|
||||
|
||||
@@ -89,8 +84,7 @@ bool CefDOMEventCToCpp::CanCancel()
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
CefRefPtr<CefDOMDocument> CefDOMEventCToCpp::GetDocument()
|
||||
{
|
||||
CefRefPtr<CefDOMDocument> CefDOMEventCToCpp::GetDocument() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_document))
|
||||
return NULL;
|
||||
|
||||
@@ -103,8 +97,7 @@ CefRefPtr<CefDOMDocument> CefDOMEventCToCpp::GetDocument()
|
||||
return CefDOMDocumentCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
CefRefPtr<CefDOMNode> CefDOMEventCToCpp::GetTarget()
|
||||
{
|
||||
CefRefPtr<CefDOMNode> CefDOMEventCToCpp::GetTarget() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_target))
|
||||
return NULL;
|
||||
|
||||
@@ -117,8 +110,7 @@ CefRefPtr<CefDOMNode> CefDOMEventCToCpp::GetTarget()
|
||||
return CefDOMNodeCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
CefRefPtr<CefDOMNode> CefDOMEventCToCpp::GetCurrentTarget()
|
||||
{
|
||||
CefRefPtr<CefDOMNode> CefDOMEventCToCpp::GetCurrentTarget() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_current_target))
|
||||
return NULL;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _DOMEVENT_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_DOMEVENT_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_DOMEVENT_CTOCPP_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,10 +25,9 @@
|
||||
// Wrap a C structure with a C++ class.
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefDOMEventCToCpp
|
||||
: public CefCToCpp<CefDOMEventCToCpp, CefDOMEvent, cef_domevent_t>
|
||||
{
|
||||
public:
|
||||
CefDOMEventCToCpp(cef_domevent_t* str)
|
||||
: public CefCToCpp<CefDOMEventCToCpp, CefDOMEvent, cef_domevent_t> {
|
||||
public:
|
||||
explicit CefDOMEventCToCpp(cef_domevent_t* str)
|
||||
: CefCToCpp<CefDOMEventCToCpp, CefDOMEvent, cef_domevent_t>(str) {}
|
||||
virtual ~CefDOMEventCToCpp() {}
|
||||
|
||||
@@ -42,6 +42,6 @@ public:
|
||||
virtual CefRefPtr<CefDOMNode> GetCurrentTarget() OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _DOMEVENT_CTOCPP_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_DOMEVENT_CTOCPP_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 @@
|
||||
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
void CefDOMEventListenerCToCpp::HandleEvent(CefRefPtr<CefDOMEvent> event)
|
||||
{
|
||||
void CefDOMEventListenerCToCpp::HandleEvent(CefRefPtr<CefDOMEvent> event) {
|
||||
if (CEF_MEMBER_MISSING(struct_, handle_event))
|
||||
return;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _DOMEVENTLISTENER_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_DOMEVENT_LISTENER_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_DOMEVENT_LISTENER_CTOCPP_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"
|
||||
@@ -25,10 +26,9 @@
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefDOMEventListenerCToCpp
|
||||
: public CefCToCpp<CefDOMEventListenerCToCpp, CefDOMEventListener,
|
||||
cef_domevent_listener_t>
|
||||
{
|
||||
public:
|
||||
CefDOMEventListenerCToCpp(cef_domevent_listener_t* str)
|
||||
cef_domevent_listener_t> {
|
||||
public:
|
||||
explicit CefDOMEventListenerCToCpp(cef_domevent_listener_t* str)
|
||||
: CefCToCpp<CefDOMEventListenerCToCpp, CefDOMEventListener,
|
||||
cef_domevent_listener_t>(str) {}
|
||||
virtual ~CefDOMEventListenerCToCpp() {}
|
||||
@@ -37,6 +37,6 @@ public:
|
||||
virtual void HandleEvent(CefRefPtr<CefDOMEvent> event) OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _DOMEVENTLISTENER_CTOCPP_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_DOMEVENT_LISTENER_CTOCPP_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 @@
|
||||
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
CefDOMNode::Type CefDOMNodeCToCpp::GetType()
|
||||
{
|
||||
CefDOMNode::Type CefDOMNodeCToCpp::GetType() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_type))
|
||||
return DOM_NODE_TYPE_UNSUPPORTED;
|
||||
|
||||
@@ -32,8 +31,7 @@ CefDOMNode::Type CefDOMNodeCToCpp::GetType()
|
||||
return _retval;
|
||||
}
|
||||
|
||||
bool CefDOMNodeCToCpp::IsText()
|
||||
{
|
||||
bool CefDOMNodeCToCpp::IsText() {
|
||||
if (CEF_MEMBER_MISSING(struct_, is_text))
|
||||
return false;
|
||||
|
||||
@@ -46,8 +44,7 @@ bool CefDOMNodeCToCpp::IsText()
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
bool CefDOMNodeCToCpp::IsElement()
|
||||
{
|
||||
bool CefDOMNodeCToCpp::IsElement() {
|
||||
if (CEF_MEMBER_MISSING(struct_, is_element))
|
||||
return false;
|
||||
|
||||
@@ -60,8 +57,7 @@ bool CefDOMNodeCToCpp::IsElement()
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
bool CefDOMNodeCToCpp::IsFormControlElement()
|
||||
{
|
||||
bool CefDOMNodeCToCpp::IsFormControlElement() {
|
||||
if (CEF_MEMBER_MISSING(struct_, is_form_control_element))
|
||||
return false;
|
||||
|
||||
@@ -74,8 +70,7 @@ bool CefDOMNodeCToCpp::IsFormControlElement()
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
CefString CefDOMNodeCToCpp::GetFormControlElementType()
|
||||
{
|
||||
CefString CefDOMNodeCToCpp::GetFormControlElementType() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_form_control_element_type))
|
||||
return CefString();
|
||||
|
||||
@@ -91,8 +86,7 @@ CefString CefDOMNodeCToCpp::GetFormControlElementType()
|
||||
return _retvalStr;
|
||||
}
|
||||
|
||||
bool CefDOMNodeCToCpp::IsSame(CefRefPtr<CefDOMNode> that)
|
||||
{
|
||||
bool CefDOMNodeCToCpp::IsSame(CefRefPtr<CefDOMNode> that) {
|
||||
if (CEF_MEMBER_MISSING(struct_, is_same))
|
||||
return false;
|
||||
|
||||
@@ -111,8 +105,7 @@ bool CefDOMNodeCToCpp::IsSame(CefRefPtr<CefDOMNode> that)
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
CefString CefDOMNodeCToCpp::GetName()
|
||||
{
|
||||
CefString CefDOMNodeCToCpp::GetName() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_name))
|
||||
return CefString();
|
||||
|
||||
@@ -127,8 +120,7 @@ CefString CefDOMNodeCToCpp::GetName()
|
||||
return _retvalStr;
|
||||
}
|
||||
|
||||
CefString CefDOMNodeCToCpp::GetValue()
|
||||
{
|
||||
CefString CefDOMNodeCToCpp::GetValue() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_value))
|
||||
return CefString();
|
||||
|
||||
@@ -143,8 +135,7 @@ CefString CefDOMNodeCToCpp::GetValue()
|
||||
return _retvalStr;
|
||||
}
|
||||
|
||||
bool CefDOMNodeCToCpp::SetValue(const CefString& value)
|
||||
{
|
||||
bool CefDOMNodeCToCpp::SetValue(const CefString& value) {
|
||||
if (CEF_MEMBER_MISSING(struct_, set_value))
|
||||
return false;
|
||||
|
||||
@@ -163,8 +154,7 @@ bool CefDOMNodeCToCpp::SetValue(const CefString& value)
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
CefString CefDOMNodeCToCpp::GetAsMarkup()
|
||||
{
|
||||
CefString CefDOMNodeCToCpp::GetAsMarkup() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_as_markup))
|
||||
return CefString();
|
||||
|
||||
@@ -179,8 +169,7 @@ CefString CefDOMNodeCToCpp::GetAsMarkup()
|
||||
return _retvalStr;
|
||||
}
|
||||
|
||||
CefRefPtr<CefDOMDocument> CefDOMNodeCToCpp::GetDocument()
|
||||
{
|
||||
CefRefPtr<CefDOMDocument> CefDOMNodeCToCpp::GetDocument() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_document))
|
||||
return NULL;
|
||||
|
||||
@@ -193,8 +182,7 @@ CefRefPtr<CefDOMDocument> CefDOMNodeCToCpp::GetDocument()
|
||||
return CefDOMDocumentCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
CefRefPtr<CefDOMNode> CefDOMNodeCToCpp::GetParent()
|
||||
{
|
||||
CefRefPtr<CefDOMNode> CefDOMNodeCToCpp::GetParent() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_parent))
|
||||
return NULL;
|
||||
|
||||
@@ -207,8 +195,7 @@ CefRefPtr<CefDOMNode> CefDOMNodeCToCpp::GetParent()
|
||||
return CefDOMNodeCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
CefRefPtr<CefDOMNode> CefDOMNodeCToCpp::GetPreviousSibling()
|
||||
{
|
||||
CefRefPtr<CefDOMNode> CefDOMNodeCToCpp::GetPreviousSibling() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_previous_sibling))
|
||||
return NULL;
|
||||
|
||||
@@ -221,8 +208,7 @@ CefRefPtr<CefDOMNode> CefDOMNodeCToCpp::GetPreviousSibling()
|
||||
return CefDOMNodeCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
CefRefPtr<CefDOMNode> CefDOMNodeCToCpp::GetNextSibling()
|
||||
{
|
||||
CefRefPtr<CefDOMNode> CefDOMNodeCToCpp::GetNextSibling() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_next_sibling))
|
||||
return NULL;
|
||||
|
||||
@@ -235,8 +221,7 @@ CefRefPtr<CefDOMNode> CefDOMNodeCToCpp::GetNextSibling()
|
||||
return CefDOMNodeCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
bool CefDOMNodeCToCpp::HasChildren()
|
||||
{
|
||||
bool CefDOMNodeCToCpp::HasChildren() {
|
||||
if (CEF_MEMBER_MISSING(struct_, has_children))
|
||||
return false;
|
||||
|
||||
@@ -249,8 +234,7 @@ bool CefDOMNodeCToCpp::HasChildren()
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
CefRefPtr<CefDOMNode> CefDOMNodeCToCpp::GetFirstChild()
|
||||
{
|
||||
CefRefPtr<CefDOMNode> CefDOMNodeCToCpp::GetFirstChild() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_first_child))
|
||||
return NULL;
|
||||
|
||||
@@ -263,8 +247,7 @@ CefRefPtr<CefDOMNode> CefDOMNodeCToCpp::GetFirstChild()
|
||||
return CefDOMNodeCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
CefRefPtr<CefDOMNode> CefDOMNodeCToCpp::GetLastChild()
|
||||
{
|
||||
CefRefPtr<CefDOMNode> CefDOMNodeCToCpp::GetLastChild() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_last_child))
|
||||
return NULL;
|
||||
|
||||
@@ -278,8 +261,7 @@ CefRefPtr<CefDOMNode> CefDOMNodeCToCpp::GetLastChild()
|
||||
}
|
||||
|
||||
void CefDOMNodeCToCpp::AddEventListener(const CefString& eventType,
|
||||
CefRefPtr<CefDOMEventListener> listener, bool useCapture)
|
||||
{
|
||||
CefRefPtr<CefDOMEventListener> listener, bool useCapture) {
|
||||
if (CEF_MEMBER_MISSING(struct_, add_event_listener))
|
||||
return;
|
||||
|
||||
@@ -301,8 +283,7 @@ void CefDOMNodeCToCpp::AddEventListener(const CefString& eventType,
|
||||
useCapture);
|
||||
}
|
||||
|
||||
CefString CefDOMNodeCToCpp::GetElementTagName()
|
||||
{
|
||||
CefString CefDOMNodeCToCpp::GetElementTagName() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_element_tag_name))
|
||||
return CefString();
|
||||
|
||||
@@ -317,8 +298,7 @@ CefString CefDOMNodeCToCpp::GetElementTagName()
|
||||
return _retvalStr;
|
||||
}
|
||||
|
||||
bool CefDOMNodeCToCpp::HasElementAttributes()
|
||||
{
|
||||
bool CefDOMNodeCToCpp::HasElementAttributes() {
|
||||
if (CEF_MEMBER_MISSING(struct_, has_element_attributes))
|
||||
return false;
|
||||
|
||||
@@ -331,8 +311,7 @@ bool CefDOMNodeCToCpp::HasElementAttributes()
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
bool CefDOMNodeCToCpp::HasElementAttribute(const CefString& attrName)
|
||||
{
|
||||
bool CefDOMNodeCToCpp::HasElementAttribute(const CefString& attrName) {
|
||||
if (CEF_MEMBER_MISSING(struct_, has_element_attribute))
|
||||
return false;
|
||||
|
||||
@@ -351,8 +330,7 @@ bool CefDOMNodeCToCpp::HasElementAttribute(const CefString& attrName)
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
CefString CefDOMNodeCToCpp::GetElementAttribute(const CefString& attrName)
|
||||
{
|
||||
CefString CefDOMNodeCToCpp::GetElementAttribute(const CefString& attrName) {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_element_attribute))
|
||||
return CefString();
|
||||
|
||||
@@ -373,8 +351,7 @@ CefString CefDOMNodeCToCpp::GetElementAttribute(const CefString& attrName)
|
||||
return _retvalStr;
|
||||
}
|
||||
|
||||
void CefDOMNodeCToCpp::GetElementAttributes(AttributeMap& attrMap)
|
||||
{
|
||||
void CefDOMNodeCToCpp::GetElementAttributes(AttributeMap& attrMap) {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_element_attributes))
|
||||
return;
|
||||
|
||||
@@ -399,8 +376,7 @@ void CefDOMNodeCToCpp::GetElementAttributes(AttributeMap& attrMap)
|
||||
}
|
||||
|
||||
bool CefDOMNodeCToCpp::SetElementAttribute(const CefString& attrName,
|
||||
const CefString& value)
|
||||
{
|
||||
const CefString& value) {
|
||||
if (CEF_MEMBER_MISSING(struct_, set_element_attribute))
|
||||
return false;
|
||||
|
||||
@@ -424,8 +400,7 @@ bool CefDOMNodeCToCpp::SetElementAttribute(const CefString& attrName,
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
CefString CefDOMNodeCToCpp::GetElementInnerText()
|
||||
{
|
||||
CefString CefDOMNodeCToCpp::GetElementInnerText() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_element_inner_text))
|
||||
return CefString();
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _DOMNODE_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_DOMNODE_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_DOMNODE_CTOCPP_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,10 +25,9 @@
|
||||
// Wrap a C structure with a C++ class.
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefDOMNodeCToCpp
|
||||
: public CefCToCpp<CefDOMNodeCToCpp, CefDOMNode, cef_domnode_t>
|
||||
{
|
||||
public:
|
||||
CefDOMNodeCToCpp(cef_domnode_t* str)
|
||||
: public CefCToCpp<CefDOMNodeCToCpp, CefDOMNode, cef_domnode_t> {
|
||||
public:
|
||||
explicit CefDOMNodeCToCpp(cef_domnode_t* str)
|
||||
: CefCToCpp<CefDOMNodeCToCpp, CefDOMNode, cef_domnode_t>(str) {}
|
||||
virtual ~CefDOMNodeCToCpp() {}
|
||||
|
||||
@@ -61,6 +61,6 @@ public:
|
||||
virtual CefString GetElementInnerText() OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _DOMNODE_CTOCPP_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_DOMNODE_CTOCPP_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 @@
|
||||
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
void CefDOMVisitorCToCpp::Visit(CefRefPtr<CefDOMDocument> document)
|
||||
{
|
||||
void CefDOMVisitorCToCpp::Visit(CefRefPtr<CefDOMDocument> document) {
|
||||
if (CEF_MEMBER_MISSING(struct_, visit))
|
||||
return;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _DOMVISITOR_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_DOMVISITOR_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_DOMVISITOR_CTOCPP_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,10 +25,9 @@
|
||||
// Wrap a C structure with a C++ class.
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefDOMVisitorCToCpp
|
||||
: public CefCToCpp<CefDOMVisitorCToCpp, CefDOMVisitor, cef_domvisitor_t>
|
||||
{
|
||||
public:
|
||||
CefDOMVisitorCToCpp(cef_domvisitor_t* str)
|
||||
: public CefCToCpp<CefDOMVisitorCToCpp, CefDOMVisitor, cef_domvisitor_t> {
|
||||
public:
|
||||
explicit CefDOMVisitorCToCpp(cef_domvisitor_t* str)
|
||||
: CefCToCpp<CefDOMVisitorCToCpp, CefDOMVisitor, cef_domvisitor_t>(str) {}
|
||||
virtual ~CefDOMVisitorCToCpp() {}
|
||||
|
||||
@@ -35,6 +35,6 @@ public:
|
||||
virtual void Visit(CefRefPtr<CefDOMDocument> document) OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _DOMVISITOR_CTOCPP_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_DOMVISITOR_CTOCPP_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 @@
|
||||
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
bool CefDownloadHandlerCToCpp::ReceivedData(void* data, int data_size)
|
||||
{
|
||||
bool CefDownloadHandlerCToCpp::ReceivedData(void* data, int data_size) {
|
||||
if (CEF_MEMBER_MISSING(struct_, received_data))
|
||||
return false;
|
||||
|
||||
@@ -36,8 +35,7 @@ bool CefDownloadHandlerCToCpp::ReceivedData(void* data, int data_size)
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
void CefDownloadHandlerCToCpp::Complete()
|
||||
{
|
||||
void CefDownloadHandlerCToCpp::Complete() {
|
||||
if (CEF_MEMBER_MISSING(struct_, complete))
|
||||
return;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _DOWNLOADHANDLER_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_DOWNLOAD_HANDLER_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_DOWNLOAD_HANDLER_CTOCPP_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_download_handler.h"
|
||||
#include "include/capi/cef_download_handler_capi.h"
|
||||
@@ -25,10 +26,9 @@
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefDownloadHandlerCToCpp
|
||||
: public CefCToCpp<CefDownloadHandlerCToCpp, CefDownloadHandler,
|
||||
cef_download_handler_t>
|
||||
{
|
||||
public:
|
||||
CefDownloadHandlerCToCpp(cef_download_handler_t* str)
|
||||
cef_download_handler_t> {
|
||||
public:
|
||||
explicit CefDownloadHandlerCToCpp(cef_download_handler_t* str)
|
||||
: CefCToCpp<CefDownloadHandlerCToCpp, CefDownloadHandler,
|
||||
cef_download_handler_t>(str) {}
|
||||
virtual ~CefDownloadHandlerCToCpp() {}
|
||||
@@ -38,6 +38,6 @@ public:
|
||||
virtual void Complete() OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _DOWNLOADHANDLER_CTOCPP_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_DOWNLOAD_HANDLER_CTOCPP_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 @@
|
||||
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
bool CefDragDataCToCpp::IsLink()
|
||||
{
|
||||
bool CefDragDataCToCpp::IsLink() {
|
||||
if (CEF_MEMBER_MISSING(struct_, is_link))
|
||||
return false;
|
||||
|
||||
@@ -30,8 +29,7 @@ bool CefDragDataCToCpp::IsLink()
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
bool CefDragDataCToCpp::IsFragment()
|
||||
{
|
||||
bool CefDragDataCToCpp::IsFragment() {
|
||||
if (CEF_MEMBER_MISSING(struct_, is_fragment))
|
||||
return false;
|
||||
|
||||
@@ -44,8 +42,7 @@ bool CefDragDataCToCpp::IsFragment()
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
bool CefDragDataCToCpp::IsFile()
|
||||
{
|
||||
bool CefDragDataCToCpp::IsFile() {
|
||||
if (CEF_MEMBER_MISSING(struct_, is_file))
|
||||
return false;
|
||||
|
||||
@@ -58,8 +55,7 @@ bool CefDragDataCToCpp::IsFile()
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
CefString CefDragDataCToCpp::GetLinkURL()
|
||||
{
|
||||
CefString CefDragDataCToCpp::GetLinkURL() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_link_url))
|
||||
return CefString();
|
||||
|
||||
@@ -74,8 +70,7 @@ CefString CefDragDataCToCpp::GetLinkURL()
|
||||
return _retvalStr;
|
||||
}
|
||||
|
||||
CefString CefDragDataCToCpp::GetLinkTitle()
|
||||
{
|
||||
CefString CefDragDataCToCpp::GetLinkTitle() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_link_title))
|
||||
return CefString();
|
||||
|
||||
@@ -90,8 +85,7 @@ CefString CefDragDataCToCpp::GetLinkTitle()
|
||||
return _retvalStr;
|
||||
}
|
||||
|
||||
CefString CefDragDataCToCpp::GetLinkMetadata()
|
||||
{
|
||||
CefString CefDragDataCToCpp::GetLinkMetadata() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_link_metadata))
|
||||
return CefString();
|
||||
|
||||
@@ -106,8 +100,7 @@ CefString CefDragDataCToCpp::GetLinkMetadata()
|
||||
return _retvalStr;
|
||||
}
|
||||
|
||||
CefString CefDragDataCToCpp::GetFragmentText()
|
||||
{
|
||||
CefString CefDragDataCToCpp::GetFragmentText() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_fragment_text))
|
||||
return CefString();
|
||||
|
||||
@@ -122,8 +115,7 @@ CefString CefDragDataCToCpp::GetFragmentText()
|
||||
return _retvalStr;
|
||||
}
|
||||
|
||||
CefString CefDragDataCToCpp::GetFragmentHtml()
|
||||
{
|
||||
CefString CefDragDataCToCpp::GetFragmentHtml() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_fragment_html))
|
||||
return CefString();
|
||||
|
||||
@@ -138,8 +130,7 @@ CefString CefDragDataCToCpp::GetFragmentHtml()
|
||||
return _retvalStr;
|
||||
}
|
||||
|
||||
CefString CefDragDataCToCpp::GetFragmentBaseURL()
|
||||
{
|
||||
CefString CefDragDataCToCpp::GetFragmentBaseURL() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_fragment_base_url))
|
||||
return CefString();
|
||||
|
||||
@@ -154,8 +145,7 @@ CefString CefDragDataCToCpp::GetFragmentBaseURL()
|
||||
return _retvalStr;
|
||||
}
|
||||
|
||||
CefString CefDragDataCToCpp::GetFileExtension()
|
||||
{
|
||||
CefString CefDragDataCToCpp::GetFileExtension() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_file_extension))
|
||||
return CefString();
|
||||
|
||||
@@ -170,8 +160,7 @@ CefString CefDragDataCToCpp::GetFileExtension()
|
||||
return _retvalStr;
|
||||
}
|
||||
|
||||
CefString CefDragDataCToCpp::GetFileName()
|
||||
{
|
||||
CefString CefDragDataCToCpp::GetFileName() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_file_name))
|
||||
return CefString();
|
||||
|
||||
@@ -186,8 +175,7 @@ CefString CefDragDataCToCpp::GetFileName()
|
||||
return _retvalStr;
|
||||
}
|
||||
|
||||
bool CefDragDataCToCpp::GetFileNames(std::vector<CefString>& names)
|
||||
{
|
||||
bool CefDragDataCToCpp::GetFileNames(std::vector<CefString>& names) {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_file_names))
|
||||
return false;
|
||||
|
||||
|
@@ -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,13 +10,15 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _DRAGDATA_CTOCPP_H
|
||||
#define _DRAGDATA_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_DRAG_DATA_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_DRAG_DATA_CTOCPP_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 <vector>
|
||||
#include "include/cef_drag_data.h"
|
||||
#include "include/capi/cef_drag_data_capi.h"
|
||||
#include "libcef_dll/ctocpp/ctocpp.h"
|
||||
@@ -24,10 +26,9 @@
|
||||
// Wrap a C structure with a C++ class.
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefDragDataCToCpp
|
||||
: public CefCToCpp<CefDragDataCToCpp, CefDragData, cef_drag_data_t>
|
||||
{
|
||||
public:
|
||||
CefDragDataCToCpp(cef_drag_data_t* str)
|
||||
: public CefCToCpp<CefDragDataCToCpp, CefDragData, cef_drag_data_t> {
|
||||
public:
|
||||
explicit CefDragDataCToCpp(cef_drag_data_t* str)
|
||||
: CefCToCpp<CefDragDataCToCpp, CefDragData, cef_drag_data_t>(str) {}
|
||||
virtual ~CefDragDataCToCpp() {}
|
||||
|
||||
@@ -46,6 +47,6 @@ public:
|
||||
virtual bool GetFileNames(std::vector<CefString>& names) OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _DRAGDATA_CTOCPP_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_DRAG_DATA_CTOCPP_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 @@
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
bool CefDragHandlerCToCpp::OnDragStart(CefRefPtr<CefBrowser> browser,
|
||||
CefRefPtr<CefDragData> dragData, DragOperationsMask mask)
|
||||
{
|
||||
CefRefPtr<CefDragData> dragData, DragOperationsMask mask) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_drag_start))
|
||||
return false;
|
||||
|
||||
@@ -45,8 +44,7 @@ bool CefDragHandlerCToCpp::OnDragStart(CefRefPtr<CefBrowser> browser,
|
||||
}
|
||||
|
||||
bool CefDragHandlerCToCpp::OnDragEnter(CefRefPtr<CefBrowser> browser,
|
||||
CefRefPtr<CefDragData> dragData, DragOperationsMask mask)
|
||||
{
|
||||
CefRefPtr<CefDragData> dragData, DragOperationsMask mask) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_drag_enter))
|
||||
return false;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _DRAGHANDLER_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_DRAG_HANDLER_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_DRAG_HANDLER_CTOCPP_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_handler.h"
|
||||
#include "include/capi/cef_drag_handler_capi.h"
|
||||
@@ -26,10 +27,10 @@
|
||||
// Wrap a C structure with a C++ class.
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefDragHandlerCToCpp
|
||||
: public CefCToCpp<CefDragHandlerCToCpp, CefDragHandler, cef_drag_handler_t>
|
||||
{
|
||||
public:
|
||||
CefDragHandlerCToCpp(cef_drag_handler_t* str)
|
||||
: public CefCToCpp<CefDragHandlerCToCpp, CefDragHandler,
|
||||
cef_drag_handler_t> {
|
||||
public:
|
||||
explicit CefDragHandlerCToCpp(cef_drag_handler_t* str)
|
||||
: CefCToCpp<CefDragHandlerCToCpp, CefDragHandler, cef_drag_handler_t>(
|
||||
str) {}
|
||||
virtual ~CefDragHandlerCToCpp() {}
|
||||
@@ -41,6 +42,6 @@ public:
|
||||
CefRefPtr<CefDragData> dragData, DragOperationsMask mask) OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _DRAGHANDLER_CTOCPP_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_DRAG_HANDLER_CTOCPP_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 CefFindHandlerCToCpp::OnFindResult(CefRefPtr<CefBrowser> browser,
|
||||
int identifier, int count, const CefRect& selectionRect,
|
||||
int activeMatchOrdinal, bool finalUpdate)
|
||||
{
|
||||
int activeMatchOrdinal, bool finalUpdate) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_find_result))
|
||||
return;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _FINDHANDLER_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_FIND_HANDLER_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_FIND_HANDLER_CTOCPP_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_find_handler.h"
|
||||
#include "include/capi/cef_find_handler_capi.h"
|
||||
@@ -26,10 +27,10 @@
|
||||
// Wrap a C structure with a C++ class.
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefFindHandlerCToCpp
|
||||
: public CefCToCpp<CefFindHandlerCToCpp, CefFindHandler, cef_find_handler_t>
|
||||
{
|
||||
public:
|
||||
CefFindHandlerCToCpp(cef_find_handler_t* str)
|
||||
: public CefCToCpp<CefFindHandlerCToCpp, CefFindHandler,
|
||||
cef_find_handler_t> {
|
||||
public:
|
||||
explicit CefFindHandlerCToCpp(cef_find_handler_t* str)
|
||||
: CefCToCpp<CefFindHandlerCToCpp, CefFindHandler, cef_find_handler_t>(
|
||||
str) {}
|
||||
virtual ~CefFindHandlerCToCpp() {}
|
||||
@@ -40,6 +41,6 @@ public:
|
||||
bool finalUpdate) OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _FINDHANDLER_CTOCPP_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_FIND_HANDLER_CTOCPP_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 @@
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
void CefFocusHandlerCToCpp::OnTakeFocus(CefRefPtr<CefBrowser> browser,
|
||||
bool next)
|
||||
{
|
||||
bool next) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_take_focus))
|
||||
return;
|
||||
|
||||
@@ -38,8 +37,7 @@ void CefFocusHandlerCToCpp::OnTakeFocus(CefRefPtr<CefBrowser> browser,
|
||||
}
|
||||
|
||||
bool CefFocusHandlerCToCpp::OnSetFocus(CefRefPtr<CefBrowser> browser,
|
||||
FocusSource source)
|
||||
{
|
||||
FocusSource source) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_set_focus))
|
||||
return false;
|
||||
|
||||
@@ -60,8 +58,7 @@ bool CefFocusHandlerCToCpp::OnSetFocus(CefRefPtr<CefBrowser> browser,
|
||||
}
|
||||
|
||||
void CefFocusHandlerCToCpp::OnFocusedNodeChanged(CefRefPtr<CefBrowser> browser,
|
||||
CefRefPtr<CefFrame> frame, CefRefPtr<CefDOMNode> node)
|
||||
{
|
||||
CefRefPtr<CefFrame> frame, CefRefPtr<CefDOMNode> node) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_focused_node_changed))
|
||||
return;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _FOCUSHANDLER_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_FOCUS_HANDLER_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_FOCUS_HANDLER_CTOCPP_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_focus_handler.h"
|
||||
#include "include/capi/cef_focus_handler_capi.h"
|
||||
@@ -29,10 +30,9 @@
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefFocusHandlerCToCpp
|
||||
: public CefCToCpp<CefFocusHandlerCToCpp, CefFocusHandler,
|
||||
cef_focus_handler_t>
|
||||
{
|
||||
public:
|
||||
CefFocusHandlerCToCpp(cef_focus_handler_t* str)
|
||||
cef_focus_handler_t> {
|
||||
public:
|
||||
explicit CefFocusHandlerCToCpp(cef_focus_handler_t* str)
|
||||
: CefCToCpp<CefFocusHandlerCToCpp, CefFocusHandler, cef_focus_handler_t>(
|
||||
str) {}
|
||||
virtual ~CefFocusHandlerCToCpp() {}
|
||||
@@ -45,6 +45,6 @@ public:
|
||||
CefRefPtr<CefFrame> frame, CefRefPtr<CefDOMNode> node) OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _FOCUSHANDLER_CTOCPP_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_FOCUS_HANDLER_CTOCPP_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 @@
|
||||
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
void CefFrameCToCpp::Undo()
|
||||
{
|
||||
void CefFrameCToCpp::Undo() {
|
||||
if (CEF_MEMBER_MISSING(struct_, undo))
|
||||
return;
|
||||
|
||||
@@ -31,8 +30,7 @@ void CefFrameCToCpp::Undo()
|
||||
struct_->undo(struct_);
|
||||
}
|
||||
|
||||
void CefFrameCToCpp::Redo()
|
||||
{
|
||||
void CefFrameCToCpp::Redo() {
|
||||
if (CEF_MEMBER_MISSING(struct_, redo))
|
||||
return;
|
||||
|
||||
@@ -42,8 +40,7 @@ void CefFrameCToCpp::Redo()
|
||||
struct_->redo(struct_);
|
||||
}
|
||||
|
||||
void CefFrameCToCpp::Cut()
|
||||
{
|
||||
void CefFrameCToCpp::Cut() {
|
||||
if (CEF_MEMBER_MISSING(struct_, cut))
|
||||
return;
|
||||
|
||||
@@ -53,8 +50,7 @@ void CefFrameCToCpp::Cut()
|
||||
struct_->cut(struct_);
|
||||
}
|
||||
|
||||
void CefFrameCToCpp::Copy()
|
||||
{
|
||||
void CefFrameCToCpp::Copy() {
|
||||
if (CEF_MEMBER_MISSING(struct_, copy))
|
||||
return;
|
||||
|
||||
@@ -64,8 +60,7 @@ void CefFrameCToCpp::Copy()
|
||||
struct_->copy(struct_);
|
||||
}
|
||||
|
||||
void CefFrameCToCpp::Paste()
|
||||
{
|
||||
void CefFrameCToCpp::Paste() {
|
||||
if (CEF_MEMBER_MISSING(struct_, paste))
|
||||
return;
|
||||
|
||||
@@ -75,8 +70,7 @@ void CefFrameCToCpp::Paste()
|
||||
struct_->paste(struct_);
|
||||
}
|
||||
|
||||
void CefFrameCToCpp::Delete()
|
||||
{
|
||||
void CefFrameCToCpp::Delete() {
|
||||
if (CEF_MEMBER_MISSING(struct_, del))
|
||||
return;
|
||||
|
||||
@@ -86,8 +80,7 @@ void CefFrameCToCpp::Delete()
|
||||
struct_->del(struct_);
|
||||
}
|
||||
|
||||
void CefFrameCToCpp::SelectAll()
|
||||
{
|
||||
void CefFrameCToCpp::SelectAll() {
|
||||
if (CEF_MEMBER_MISSING(struct_, select_all))
|
||||
return;
|
||||
|
||||
@@ -97,8 +90,7 @@ void CefFrameCToCpp::SelectAll()
|
||||
struct_->select_all(struct_);
|
||||
}
|
||||
|
||||
void CefFrameCToCpp::Print()
|
||||
{
|
||||
void CefFrameCToCpp::Print() {
|
||||
if (CEF_MEMBER_MISSING(struct_, print))
|
||||
return;
|
||||
|
||||
@@ -108,8 +100,7 @@ void CefFrameCToCpp::Print()
|
||||
struct_->print(struct_);
|
||||
}
|
||||
|
||||
void CefFrameCToCpp::ViewSource()
|
||||
{
|
||||
void CefFrameCToCpp::ViewSource() {
|
||||
if (CEF_MEMBER_MISSING(struct_, view_source))
|
||||
return;
|
||||
|
||||
@@ -119,8 +110,7 @@ void CefFrameCToCpp::ViewSource()
|
||||
struct_->view_source(struct_);
|
||||
}
|
||||
|
||||
CefString CefFrameCToCpp::GetSource()
|
||||
{
|
||||
CefString CefFrameCToCpp::GetSource() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_source))
|
||||
return CefString();
|
||||
|
||||
@@ -135,8 +125,7 @@ CefString CefFrameCToCpp::GetSource()
|
||||
return _retvalStr;
|
||||
}
|
||||
|
||||
CefString CefFrameCToCpp::GetText()
|
||||
{
|
||||
CefString CefFrameCToCpp::GetText() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_text))
|
||||
return CefString();
|
||||
|
||||
@@ -151,8 +140,7 @@ CefString CefFrameCToCpp::GetText()
|
||||
return _retvalStr;
|
||||
}
|
||||
|
||||
void CefFrameCToCpp::LoadRequest(CefRefPtr<CefRequest> request)
|
||||
{
|
||||
void CefFrameCToCpp::LoadRequest(CefRefPtr<CefRequest> request) {
|
||||
if (CEF_MEMBER_MISSING(struct_, load_request))
|
||||
return;
|
||||
|
||||
@@ -168,8 +156,7 @@ void CefFrameCToCpp::LoadRequest(CefRefPtr<CefRequest> request)
|
||||
CefRequestCToCpp::Unwrap(request));
|
||||
}
|
||||
|
||||
void CefFrameCToCpp::LoadURL(const CefString& url)
|
||||
{
|
||||
void CefFrameCToCpp::LoadURL(const CefString& url) {
|
||||
if (CEF_MEMBER_MISSING(struct_, load_url))
|
||||
return;
|
||||
|
||||
@@ -185,16 +172,16 @@ void CefFrameCToCpp::LoadURL(const CefString& url)
|
||||
url.GetStruct());
|
||||
}
|
||||
|
||||
void CefFrameCToCpp::LoadString(const CefString& string, const CefString& url)
|
||||
{
|
||||
void CefFrameCToCpp::LoadString(const CefString& string_val,
|
||||
const CefString& url) {
|
||||
if (CEF_MEMBER_MISSING(struct_, load_string))
|
||||
return;
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: string; type: string_byref_const
|
||||
DCHECK(!string.empty());
|
||||
if (string.empty())
|
||||
// Verify param: string_val; type: string_byref_const
|
||||
DCHECK(!string_val.empty());
|
||||
if (string_val.empty())
|
||||
return;
|
||||
// Verify param: url; type: string_byref_const
|
||||
DCHECK(!url.empty());
|
||||
@@ -203,13 +190,12 @@ void CefFrameCToCpp::LoadString(const CefString& string, const CefString& url)
|
||||
|
||||
// Execute
|
||||
struct_->load_string(struct_,
|
||||
string.GetStruct(),
|
||||
string_val.GetStruct(),
|
||||
url.GetStruct());
|
||||
}
|
||||
|
||||
void CefFrameCToCpp::LoadStream(CefRefPtr<CefStreamReader> stream,
|
||||
const CefString& url)
|
||||
{
|
||||
const CefString& url) {
|
||||
if (CEF_MEMBER_MISSING(struct_, load_stream))
|
||||
return;
|
||||
|
||||
@@ -231,8 +217,7 @@ void CefFrameCToCpp::LoadStream(CefRefPtr<CefStreamReader> stream,
|
||||
}
|
||||
|
||||
void CefFrameCToCpp::ExecuteJavaScript(const CefString& jsCode,
|
||||
const CefString& scriptUrl, int startLine)
|
||||
{
|
||||
const CefString& scriptUrl, int startLine) {
|
||||
if (CEF_MEMBER_MISSING(struct_, execute_java_script))
|
||||
return;
|
||||
|
||||
@@ -251,8 +236,7 @@ void CefFrameCToCpp::ExecuteJavaScript(const CefString& jsCode,
|
||||
startLine);
|
||||
}
|
||||
|
||||
bool CefFrameCToCpp::IsMain()
|
||||
{
|
||||
bool CefFrameCToCpp::IsMain() {
|
||||
if (CEF_MEMBER_MISSING(struct_, is_main))
|
||||
return false;
|
||||
|
||||
@@ -265,8 +249,7 @@ bool CefFrameCToCpp::IsMain()
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
bool CefFrameCToCpp::IsFocused()
|
||||
{
|
||||
bool CefFrameCToCpp::IsFocused() {
|
||||
if (CEF_MEMBER_MISSING(struct_, is_focused))
|
||||
return false;
|
||||
|
||||
@@ -279,8 +262,7 @@ bool CefFrameCToCpp::IsFocused()
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
CefString CefFrameCToCpp::GetName()
|
||||
{
|
||||
CefString CefFrameCToCpp::GetName() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_name))
|
||||
return CefString();
|
||||
|
||||
@@ -295,22 +277,20 @@ CefString CefFrameCToCpp::GetName()
|
||||
return _retvalStr;
|
||||
}
|
||||
|
||||
long long CefFrameCToCpp::GetIdentifier()
|
||||
{
|
||||
int64 CefFrameCToCpp::GetIdentifier() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_identifier))
|
||||
return 0;
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
long long _retval = struct_->get_identifier(struct_);
|
||||
int64 _retval = struct_->get_identifier(struct_);
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
CefRefPtr<CefFrame> CefFrameCToCpp::GetParent()
|
||||
{
|
||||
CefRefPtr<CefFrame> CefFrameCToCpp::GetParent() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_parent))
|
||||
return NULL;
|
||||
|
||||
@@ -323,8 +303,7 @@ CefRefPtr<CefFrame> CefFrameCToCpp::GetParent()
|
||||
return CefFrameCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
CefString CefFrameCToCpp::GetURL()
|
||||
{
|
||||
CefString CefFrameCToCpp::GetURL() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_url))
|
||||
return CefString();
|
||||
|
||||
@@ -339,8 +318,7 @@ CefString CefFrameCToCpp::GetURL()
|
||||
return _retvalStr;
|
||||
}
|
||||
|
||||
CefRefPtr<CefBrowser> CefFrameCToCpp::GetBrowser()
|
||||
{
|
||||
CefRefPtr<CefBrowser> CefFrameCToCpp::GetBrowser() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_browser))
|
||||
return NULL;
|
||||
|
||||
@@ -353,8 +331,7 @@ CefRefPtr<CefBrowser> CefFrameCToCpp::GetBrowser()
|
||||
return CefBrowserCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
void CefFrameCToCpp::VisitDOM(CefRefPtr<CefDOMVisitor> visitor)
|
||||
{
|
||||
void CefFrameCToCpp::VisitDOM(CefRefPtr<CefDOMVisitor> visitor) {
|
||||
if (CEF_MEMBER_MISSING(struct_, visit_dom))
|
||||
return;
|
||||
|
||||
@@ -370,8 +347,7 @@ void CefFrameCToCpp::VisitDOM(CefRefPtr<CefDOMVisitor> visitor)
|
||||
CefDOMVisitorCppToC::Wrap(visitor));
|
||||
}
|
||||
|
||||
CefRefPtr<CefV8Context> CefFrameCToCpp::GetV8Context()
|
||||
{
|
||||
CefRefPtr<CefV8Context> CefFrameCToCpp::GetV8Context() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_v8context))
|
||||
return NULL;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _FRAME_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_FRAME_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_FRAME_CTOCPP_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_frame.h"
|
||||
#include "include/capi/cef_frame_capi.h"
|
||||
@@ -34,10 +35,9 @@
|
||||
// Wrap a C structure with a C++ class.
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefFrameCToCpp
|
||||
: public CefCToCpp<CefFrameCToCpp, CefFrame, cef_frame_t>
|
||||
{
|
||||
public:
|
||||
CefFrameCToCpp(cef_frame_t* str)
|
||||
: public CefCToCpp<CefFrameCToCpp, CefFrame, cef_frame_t> {
|
||||
public:
|
||||
explicit CefFrameCToCpp(cef_frame_t* str)
|
||||
: CefCToCpp<CefFrameCToCpp, CefFrame, cef_frame_t>(str) {}
|
||||
virtual ~CefFrameCToCpp() {}
|
||||
|
||||
@@ -55,7 +55,7 @@ public:
|
||||
virtual CefString GetText() OVERRIDE;
|
||||
virtual void LoadRequest(CefRefPtr<CefRequest> request) OVERRIDE;
|
||||
virtual void LoadURL(const CefString& url) OVERRIDE;
|
||||
virtual void LoadString(const CefString& string,
|
||||
virtual void LoadString(const CefString& string_val,
|
||||
const CefString& url) OVERRIDE;
|
||||
virtual void LoadStream(CefRefPtr<CefStreamReader> stream,
|
||||
const CefString& url) OVERRIDE;
|
||||
@@ -64,7 +64,7 @@ public:
|
||||
virtual bool IsMain() OVERRIDE;
|
||||
virtual bool IsFocused() OVERRIDE;
|
||||
virtual CefString GetName() OVERRIDE;
|
||||
virtual long long GetIdentifier() OVERRIDE;
|
||||
virtual int64 GetIdentifier() OVERRIDE;
|
||||
virtual CefRefPtr<CefFrame> GetParent() OVERRIDE;
|
||||
virtual CefString GetURL() OVERRIDE;
|
||||
virtual CefRefPtr<CefBrowser> GetBrowser() OVERRIDE;
|
||||
@@ -72,6 +72,6 @@ public:
|
||||
virtual CefRefPtr<CefV8Context> GetV8Context() OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _FRAME_CTOCPP_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_FRAME_CTOCPP_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 @@
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
bool CefJSDialogHandlerCToCpp::OnJSAlert(CefRefPtr<CefBrowser> browser,
|
||||
CefRefPtr<CefFrame> frame, const CefString& message)
|
||||
{
|
||||
CefRefPtr<CefFrame> frame, const CefString& message) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_jsalert))
|
||||
return false;
|
||||
|
||||
@@ -49,8 +48,7 @@ bool CefJSDialogHandlerCToCpp::OnJSAlert(CefRefPtr<CefBrowser> browser,
|
||||
}
|
||||
|
||||
bool CefJSDialogHandlerCToCpp::OnJSConfirm(CefRefPtr<CefBrowser> browser,
|
||||
CefRefPtr<CefFrame> frame, const CefString& message, bool& retval)
|
||||
{
|
||||
CefRefPtr<CefFrame> frame, const CefString& message, bool& retval) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_jsconfirm))
|
||||
return false;
|
||||
|
||||
@@ -88,8 +86,7 @@ bool CefJSDialogHandlerCToCpp::OnJSConfirm(CefRefPtr<CefBrowser> browser,
|
||||
|
||||
bool CefJSDialogHandlerCToCpp::OnJSPrompt(CefRefPtr<CefBrowser> browser,
|
||||
CefRefPtr<CefFrame> frame, const CefString& message,
|
||||
const CefString& defaultValue, bool& retval, CefString& result)
|
||||
{
|
||||
const CefString& defaultValue, bool& retval, CefString& result) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_jsprompt))
|
||||
return false;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _JSDIALOGHANDLER_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_JSDIALOG_HANDLER_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_JSDIALOG_HANDLER_CTOCPP_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_jsdialog_handler.h"
|
||||
#include "include/capi/cef_jsdialog_handler_capi.h"
|
||||
@@ -29,10 +30,9 @@
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefJSDialogHandlerCToCpp
|
||||
: public CefCToCpp<CefJSDialogHandlerCToCpp, CefJSDialogHandler,
|
||||
cef_jsdialog_handler_t>
|
||||
{
|
||||
public:
|
||||
CefJSDialogHandlerCToCpp(cef_jsdialog_handler_t* str)
|
||||
cef_jsdialog_handler_t> {
|
||||
public:
|
||||
explicit CefJSDialogHandlerCToCpp(cef_jsdialog_handler_t* str)
|
||||
: CefCToCpp<CefJSDialogHandlerCToCpp, CefJSDialogHandler,
|
||||
cef_jsdialog_handler_t>(str) {}
|
||||
virtual ~CefJSDialogHandlerCToCpp() {}
|
||||
@@ -49,6 +49,6 @@ public:
|
||||
CefString& result) OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _JSDIALOGHANDLER_CTOCPP_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_JSDIALOG_HANDLER_CTOCPP_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 @@
|
||||
|
||||
bool CefKeyboardHandlerCToCpp::OnKeyEvent(CefRefPtr<CefBrowser> browser,
|
||||
KeyEventType type, int code, int modifiers, bool isSystemKey,
|
||||
bool isAfterJavaScript)
|
||||
{
|
||||
bool isAfterJavaScript) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_key_event))
|
||||
return false;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _KEYBOARDHANDLER_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_KEYBOARD_HANDLER_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_KEYBOARD_HANDLER_CTOCPP_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_keyboard_handler.h"
|
||||
#include "include/capi/cef_keyboard_handler_capi.h"
|
||||
@@ -27,10 +28,9 @@
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefKeyboardHandlerCToCpp
|
||||
: public CefCToCpp<CefKeyboardHandlerCToCpp, CefKeyboardHandler,
|
||||
cef_keyboard_handler_t>
|
||||
{
|
||||
public:
|
||||
CefKeyboardHandlerCToCpp(cef_keyboard_handler_t* str)
|
||||
cef_keyboard_handler_t> {
|
||||
public:
|
||||
explicit CefKeyboardHandlerCToCpp(cef_keyboard_handler_t* str)
|
||||
: CefCToCpp<CefKeyboardHandlerCToCpp, CefKeyboardHandler,
|
||||
cef_keyboard_handler_t>(str) {}
|
||||
virtual ~CefKeyboardHandlerCToCpp() {}
|
||||
@@ -41,6 +41,6 @@ public:
|
||||
bool isAfterJavaScript) OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _KEYBOARDHANDLER_CTOCPP_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_KEYBOARD_HANDLER_CTOCPP_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 @@
|
||||
bool CefLifeSpanHandlerCToCpp::OnBeforePopup(
|
||||
CefRefPtr<CefBrowser> parentBrowser, const CefPopupFeatures& popupFeatures,
|
||||
CefWindowInfo& windowInfo, const CefString& url,
|
||||
CefRefPtr<CefClient>& client, CefBrowserSettings& settings)
|
||||
{
|
||||
CefRefPtr<CefClient>& client, CefBrowserSettings& settings) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_before_popup))
|
||||
return false;
|
||||
|
||||
@@ -35,7 +34,7 @@ bool CefLifeSpanHandlerCToCpp::OnBeforePopup(
|
||||
|
||||
// Translate param: client; type: refptr_same_byref
|
||||
cef_client_t* clientStruct = NULL;
|
||||
if(client.get())
|
||||
if (client.get())
|
||||
clientStruct = CefClientCToCpp::Unwrap(client);
|
||||
cef_client_t* clientOrig = clientStruct;
|
||||
|
||||
@@ -61,8 +60,7 @@ bool CefLifeSpanHandlerCToCpp::OnBeforePopup(
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
void CefLifeSpanHandlerCToCpp::OnAfterCreated(CefRefPtr<CefBrowser> browser)
|
||||
{
|
||||
void CefLifeSpanHandlerCToCpp::OnAfterCreated(CefRefPtr<CefBrowser> browser) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_after_created))
|
||||
return;
|
||||
|
||||
@@ -78,8 +76,7 @@ void CefLifeSpanHandlerCToCpp::OnAfterCreated(CefRefPtr<CefBrowser> browser)
|
||||
CefBrowserCppToC::Wrap(browser));
|
||||
}
|
||||
|
||||
bool CefLifeSpanHandlerCToCpp::RunModal(CefRefPtr<CefBrowser> browser)
|
||||
{
|
||||
bool CefLifeSpanHandlerCToCpp::RunModal(CefRefPtr<CefBrowser> browser) {
|
||||
if (CEF_MEMBER_MISSING(struct_, run_modal))
|
||||
return false;
|
||||
|
||||
@@ -98,8 +95,7 @@ bool CefLifeSpanHandlerCToCpp::RunModal(CefRefPtr<CefBrowser> browser)
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
bool CefLifeSpanHandlerCToCpp::DoClose(CefRefPtr<CefBrowser> browser)
|
||||
{
|
||||
bool CefLifeSpanHandlerCToCpp::DoClose(CefRefPtr<CefBrowser> browser) {
|
||||
if (CEF_MEMBER_MISSING(struct_, do_close))
|
||||
return false;
|
||||
|
||||
@@ -118,8 +114,7 @@ bool CefLifeSpanHandlerCToCpp::DoClose(CefRefPtr<CefBrowser> browser)
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
void CefLifeSpanHandlerCToCpp::OnBeforeClose(CefRefPtr<CefBrowser> browser)
|
||||
{
|
||||
void CefLifeSpanHandlerCToCpp::OnBeforeClose(CefRefPtr<CefBrowser> browser) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_before_close))
|
||||
return;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _LIFESPANHANDLER_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_LIFE_SPAN_HANDLER_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_LIFE_SPAN_HANDLER_CTOCPP_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_life_span_handler.h"
|
||||
#include "include/capi/cef_life_span_handler_capi.h"
|
||||
@@ -29,10 +30,9 @@
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefLifeSpanHandlerCToCpp
|
||||
: public CefCToCpp<CefLifeSpanHandlerCToCpp, CefLifeSpanHandler,
|
||||
cef_life_span_handler_t>
|
||||
{
|
||||
public:
|
||||
CefLifeSpanHandlerCToCpp(cef_life_span_handler_t* str)
|
||||
cef_life_span_handler_t> {
|
||||
public:
|
||||
explicit CefLifeSpanHandlerCToCpp(cef_life_span_handler_t* str)
|
||||
: CefCToCpp<CefLifeSpanHandlerCToCpp, CefLifeSpanHandler,
|
||||
cef_life_span_handler_t>(str) {}
|
||||
virtual ~CefLifeSpanHandlerCToCpp() {}
|
||||
@@ -48,6 +48,6 @@ public:
|
||||
virtual void OnBeforeClose(CefRefPtr<CefBrowser> browser) OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _LIFESPANHANDLER_CTOCPP_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_LIFE_SPAN_HANDLER_CTOCPP_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 @@
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
void CefLoadHandlerCToCpp::OnLoadStart(CefRefPtr<CefBrowser> browser,
|
||||
CefRefPtr<CefFrame> frame)
|
||||
{
|
||||
CefRefPtr<CefFrame> frame) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_load_start))
|
||||
return;
|
||||
|
||||
@@ -41,8 +40,7 @@ void CefLoadHandlerCToCpp::OnLoadStart(CefRefPtr<CefBrowser> browser,
|
||||
}
|
||||
|
||||
void CefLoadHandlerCToCpp::OnLoadEnd(CefRefPtr<CefBrowser> browser,
|
||||
CefRefPtr<CefFrame> frame, int httpStatusCode)
|
||||
{
|
||||
CefRefPtr<CefFrame> frame, int httpStatusCode) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_load_end))
|
||||
return;
|
||||
|
||||
@@ -66,8 +64,7 @@ void CefLoadHandlerCToCpp::OnLoadEnd(CefRefPtr<CefBrowser> browser,
|
||||
|
||||
bool CefLoadHandlerCToCpp::OnLoadError(CefRefPtr<CefBrowser> browser,
|
||||
CefRefPtr<CefFrame> frame, ErrorCode errorCode, const CefString& failedUrl,
|
||||
CefString& errorText)
|
||||
{
|
||||
CefString& errorText) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_load_error))
|
||||
return false;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _LOADHANDLER_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_LOAD_HANDLER_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_LOAD_HANDLER_CTOCPP_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_load_handler.h"
|
||||
#include "include/capi/cef_load_handler_capi.h"
|
||||
@@ -28,10 +29,10 @@
|
||||
// Wrap a C structure with a C++ class.
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefLoadHandlerCToCpp
|
||||
: public CefCToCpp<CefLoadHandlerCToCpp, CefLoadHandler, cef_load_handler_t>
|
||||
{
|
||||
public:
|
||||
CefLoadHandlerCToCpp(cef_load_handler_t* str)
|
||||
: public CefCToCpp<CefLoadHandlerCToCpp, CefLoadHandler,
|
||||
cef_load_handler_t> {
|
||||
public:
|
||||
explicit CefLoadHandlerCToCpp(cef_load_handler_t* str)
|
||||
: CefCToCpp<CefLoadHandlerCToCpp, CefLoadHandler, cef_load_handler_t>(
|
||||
str) {}
|
||||
virtual ~CefLoadHandlerCToCpp() {}
|
||||
@@ -46,6 +47,6 @@ public:
|
||||
const CefString& failedUrl, CefString& errorText) OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _LOADHANDLER_CTOCPP_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_LOAD_HANDLER_CTOCPP_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 @@
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
bool CefMenuHandlerCToCpp::OnBeforeMenu(CefRefPtr<CefBrowser> browser,
|
||||
const CefMenuInfo& menuInfo)
|
||||
{
|
||||
const CefMenuInfo& menuInfo) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_before_menu))
|
||||
return false;
|
||||
|
||||
@@ -39,8 +38,7 @@ bool CefMenuHandlerCToCpp::OnBeforeMenu(CefRefPtr<CefBrowser> browser,
|
||||
}
|
||||
|
||||
void CefMenuHandlerCToCpp::GetMenuLabel(CefRefPtr<CefBrowser> browser,
|
||||
MenuId menuId, CefString& label)
|
||||
{
|
||||
MenuId menuId, CefString& label) {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_menu_label))
|
||||
return;
|
||||
|
||||
@@ -59,8 +57,7 @@ void CefMenuHandlerCToCpp::GetMenuLabel(CefRefPtr<CefBrowser> browser,
|
||||
}
|
||||
|
||||
bool CefMenuHandlerCToCpp::OnMenuAction(CefRefPtr<CefBrowser> browser,
|
||||
MenuId menuId)
|
||||
{
|
||||
MenuId menuId) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_menu_action))
|
||||
return false;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _MENUHANDLER_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_MENU_HANDLER_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_MENU_HANDLER_CTOCPP_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_menu_handler.h"
|
||||
#include "include/capi/cef_menu_handler_capi.h"
|
||||
@@ -26,10 +27,10 @@
|
||||
// Wrap a C structure with a C++ class.
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefMenuHandlerCToCpp
|
||||
: public CefCToCpp<CefMenuHandlerCToCpp, CefMenuHandler, cef_menu_handler_t>
|
||||
{
|
||||
public:
|
||||
CefMenuHandlerCToCpp(cef_menu_handler_t* str)
|
||||
: public CefCToCpp<CefMenuHandlerCToCpp, CefMenuHandler,
|
||||
cef_menu_handler_t> {
|
||||
public:
|
||||
explicit CefMenuHandlerCToCpp(cef_menu_handler_t* str)
|
||||
: CefCToCpp<CefMenuHandlerCToCpp, CefMenuHandler, cef_menu_handler_t>(
|
||||
str) {}
|
||||
virtual ~CefMenuHandlerCToCpp() {}
|
||||
@@ -43,6 +44,6 @@ public:
|
||||
MenuId menuId) OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _MENUHANDLER_CTOCPP_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_MENU_HANDLER_CTOCPP_H_
|
||||
|
||||
|
@@ -19,8 +19,7 @@
|
||||
|
||||
bool CefPermissionHandlerCToCpp::OnBeforeScriptExtensionLoad(
|
||||
CefRefPtr<CefBrowser> browser, CefRefPtr<CefFrame> frame,
|
||||
const CefString& extensionName)
|
||||
{
|
||||
const CefString& extensionName) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_before_script_extension_load))
|
||||
return false;
|
||||
|
||||
|
@@ -10,12 +10,13 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _PERMISSIONHANDLER_CTOCPP_H
|
||||
#define _PERMISSIONHANDLER_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_PERMISSION_HANDLER_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_PERMISSION_HANDLER_CTOCPP_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_permission_handler.h"
|
||||
#include "include/capi/cef_permission_handler_capi.h"
|
||||
@@ -29,10 +30,9 @@
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefPermissionHandlerCToCpp
|
||||
: public CefCToCpp<CefPermissionHandlerCToCpp, CefPermissionHandler,
|
||||
cef_permission_handler_t>
|
||||
{
|
||||
public:
|
||||
CefPermissionHandlerCToCpp(cef_permission_handler_t* str)
|
||||
cef_permission_handler_t> {
|
||||
public:
|
||||
explicit CefPermissionHandlerCToCpp(cef_permission_handler_t* str)
|
||||
: CefCToCpp<CefPermissionHandlerCToCpp, CefPermissionHandler,
|
||||
cef_permission_handler_t>(str) {}
|
||||
virtual ~CefPermissionHandlerCToCpp() {}
|
||||
@@ -42,6 +42,6 @@ public:
|
||||
CefRefPtr<CefFrame> frame, const CefString& extensionName) OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _PERMISSIONHANDLER_CTOCPP_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_PERMISSION_HANDLER_CTOCPP_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 @@
|
||||
|
||||
// STATIC METHODS - Body may be edited by hand.
|
||||
|
||||
CefRefPtr<CefPostData> CefPostData::CreatePostData()
|
||||
{
|
||||
CefRefPtr<CefPostData> CefPostData::CreatePostData() {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
@@ -30,8 +29,7 @@ CefRefPtr<CefPostData> CefPostData::CreatePostData()
|
||||
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
size_t CefPostDataCToCpp::GetElementCount()
|
||||
{
|
||||
size_t CefPostDataCToCpp::GetElementCount() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_element_count))
|
||||
return 0;
|
||||
|
||||
@@ -44,8 +42,7 @@ size_t CefPostDataCToCpp::GetElementCount()
|
||||
return _retval;
|
||||
}
|
||||
|
||||
void CefPostDataCToCpp::GetElements(ElementVector& elements)
|
||||
{
|
||||
void CefPostDataCToCpp::GetElements(ElementVector& elements) {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_elements))
|
||||
return;
|
||||
|
||||
@@ -83,8 +80,7 @@ void CefPostDataCToCpp::GetElements(ElementVector& elements)
|
||||
}
|
||||
}
|
||||
|
||||
bool CefPostDataCToCpp::RemoveElement(CefRefPtr<CefPostDataElement> element)
|
||||
{
|
||||
bool CefPostDataCToCpp::RemoveElement(CefRefPtr<CefPostDataElement> element) {
|
||||
if (CEF_MEMBER_MISSING(struct_, remove_element))
|
||||
return false;
|
||||
|
||||
@@ -103,8 +99,7 @@ bool CefPostDataCToCpp::RemoveElement(CefRefPtr<CefPostDataElement> element)
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
bool CefPostDataCToCpp::AddElement(CefRefPtr<CefPostDataElement> element)
|
||||
{
|
||||
bool CefPostDataCToCpp::AddElement(CefRefPtr<CefPostDataElement> element) {
|
||||
if (CEF_MEMBER_MISSING(struct_, add_element))
|
||||
return false;
|
||||
|
||||
@@ -123,8 +118,7 @@ bool CefPostDataCToCpp::AddElement(CefRefPtr<CefPostDataElement> element)
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
void CefPostDataCToCpp::RemoveElements()
|
||||
{
|
||||
void CefPostDataCToCpp::RemoveElements() {
|
||||
if (CEF_MEMBER_MISSING(struct_, remove_elements))
|
||||
return;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _POSTDATA_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_POST_DATA_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_POST_DATA_CTOCPP_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.h"
|
||||
#include "include/capi/cef_request_capi.h"
|
||||
@@ -24,10 +25,9 @@
|
||||
// Wrap a C structure with a C++ class.
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefPostDataCToCpp
|
||||
: public CefCToCpp<CefPostDataCToCpp, CefPostData, cef_post_data_t>
|
||||
{
|
||||
public:
|
||||
CefPostDataCToCpp(cef_post_data_t* str)
|
||||
: public CefCToCpp<CefPostDataCToCpp, CefPostData, cef_post_data_t> {
|
||||
public:
|
||||
explicit CefPostDataCToCpp(cef_post_data_t* str)
|
||||
: CefCToCpp<CefPostDataCToCpp, CefPostData, cef_post_data_t>(str) {}
|
||||
virtual ~CefPostDataCToCpp() {}
|
||||
|
||||
@@ -39,6 +39,6 @@ public:
|
||||
virtual void RemoveElements() OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _POSTDATA_CTOCPP_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_POST_DATA_CTOCPP_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 @@
|
||||
|
||||
// STATIC METHODS - Body may be edited by hand.
|
||||
|
||||
CefRefPtr<CefPostDataElement> CefPostDataElement::CreatePostDataElement()
|
||||
{
|
||||
CefRefPtr<CefPostDataElement> CefPostDataElement::CreatePostDataElement() {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
@@ -29,8 +28,7 @@ CefRefPtr<CefPostDataElement> CefPostDataElement::CreatePostDataElement()
|
||||
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
void CefPostDataElementCToCpp::SetToEmpty()
|
||||
{
|
||||
void CefPostDataElementCToCpp::SetToEmpty() {
|
||||
if (CEF_MEMBER_MISSING(struct_, set_to_empty))
|
||||
return;
|
||||
|
||||
@@ -40,8 +38,7 @@ void CefPostDataElementCToCpp::SetToEmpty()
|
||||
struct_->set_to_empty(struct_);
|
||||
}
|
||||
|
||||
void CefPostDataElementCToCpp::SetToFile(const CefString& fileName)
|
||||
{
|
||||
void CefPostDataElementCToCpp::SetToFile(const CefString& fileName) {
|
||||
if (CEF_MEMBER_MISSING(struct_, set_to_file))
|
||||
return;
|
||||
|
||||
@@ -57,8 +54,7 @@ void CefPostDataElementCToCpp::SetToFile(const CefString& fileName)
|
||||
fileName.GetStruct());
|
||||
}
|
||||
|
||||
void CefPostDataElementCToCpp::SetToBytes(size_t size, const void* bytes)
|
||||
{
|
||||
void CefPostDataElementCToCpp::SetToBytes(size_t size, const void* bytes) {
|
||||
if (CEF_MEMBER_MISSING(struct_, set_to_bytes))
|
||||
return;
|
||||
|
||||
@@ -75,8 +71,7 @@ void CefPostDataElementCToCpp::SetToBytes(size_t size, const void* bytes)
|
||||
bytes);
|
||||
}
|
||||
|
||||
CefPostDataElement::Type CefPostDataElementCToCpp::GetType()
|
||||
{
|
||||
CefPostDataElement::Type CefPostDataElementCToCpp::GetType() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_type))
|
||||
return PDE_TYPE_EMPTY;
|
||||
|
||||
@@ -89,8 +84,7 @@ CefPostDataElement::Type CefPostDataElementCToCpp::GetType()
|
||||
return _retval;
|
||||
}
|
||||
|
||||
CefString CefPostDataElementCToCpp::GetFile()
|
||||
{
|
||||
CefString CefPostDataElementCToCpp::GetFile() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_file))
|
||||
return CefString();
|
||||
|
||||
@@ -105,8 +99,7 @@ CefString CefPostDataElementCToCpp::GetFile()
|
||||
return _retvalStr;
|
||||
}
|
||||
|
||||
size_t CefPostDataElementCToCpp::GetBytesCount()
|
||||
{
|
||||
size_t CefPostDataElementCToCpp::GetBytesCount() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_bytes_count))
|
||||
return 0;
|
||||
|
||||
@@ -119,8 +112,7 @@ size_t CefPostDataElementCToCpp::GetBytesCount()
|
||||
return _retval;
|
||||
}
|
||||
|
||||
size_t CefPostDataElementCToCpp::GetBytes(size_t size, void* bytes)
|
||||
{
|
||||
size_t CefPostDataElementCToCpp::GetBytes(size_t size, void* bytes) {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_bytes))
|
||||
return 0;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _POSTDATAELEMENT_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_POST_DATA_ELEMENT_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_POST_DATA_ELEMENT_CTOCPP_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.h"
|
||||
#include "include/capi/cef_request_capi.h"
|
||||
@@ -25,10 +26,9 @@
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefPostDataElementCToCpp
|
||||
: public CefCToCpp<CefPostDataElementCToCpp, CefPostDataElement,
|
||||
cef_post_data_element_t>
|
||||
{
|
||||
public:
|
||||
CefPostDataElementCToCpp(cef_post_data_element_t* str)
|
||||
cef_post_data_element_t> {
|
||||
public:
|
||||
explicit CefPostDataElementCToCpp(cef_post_data_element_t* str)
|
||||
: CefCToCpp<CefPostDataElementCToCpp, CefPostDataElement,
|
||||
cef_post_data_element_t>(str) {}
|
||||
virtual ~CefPostDataElementCToCpp() {}
|
||||
@@ -43,6 +43,6 @@ public:
|
||||
virtual size_t GetBytes(size_t size, void* bytes) OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _POSTDATAELEMENT_CTOCPP_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_POST_DATA_ELEMENT_CTOCPP_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 @@
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
bool CefPrintHandlerCToCpp::GetPrintOptions(CefRefPtr<CefBrowser> browser,
|
||||
CefPrintOptions& printOptions)
|
||||
{
|
||||
CefPrintOptions& printOptions) {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_print_options))
|
||||
return false;
|
||||
|
||||
@@ -44,8 +43,7 @@ bool CefPrintHandlerCToCpp::GetPrintHeaderFooter(CefRefPtr<CefBrowser> browser,
|
||||
const CefString& url, const CefString& title, int currentPage,
|
||||
int maxPages, CefString& topLeft, CefString& topCenter,
|
||||
CefString& topRight, CefString& bottomLeft, CefString& bottomCenter,
|
||||
CefString& bottomRight)
|
||||
{
|
||||
CefString& bottomRight) {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_print_header_footer))
|
||||
return false;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _PRINTHANDLER_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_PRINT_HANDLER_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_PRINT_HANDLER_CTOCPP_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_print_handler.h"
|
||||
#include "include/capi/cef_print_handler_capi.h"
|
||||
@@ -29,10 +30,9 @@
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefPrintHandlerCToCpp
|
||||
: public CefCToCpp<CefPrintHandlerCToCpp, CefPrintHandler,
|
||||
cef_print_handler_t>
|
||||
{
|
||||
public:
|
||||
CefPrintHandlerCToCpp(cef_print_handler_t* str)
|
||||
cef_print_handler_t> {
|
||||
public:
|
||||
explicit CefPrintHandlerCToCpp(cef_print_handler_t* str)
|
||||
: CefCToCpp<CefPrintHandlerCToCpp, CefPrintHandler, cef_print_handler_t>(
|
||||
str) {}
|
||||
virtual ~CefPrintHandlerCToCpp() {}
|
||||
@@ -48,6 +48,6 @@ public:
|
||||
CefString& bottomRight) OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _PRINTHANDLER_CTOCPP_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_PRINT_HANDLER_CTOCPP_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 @@
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
void CefProxyHandlerCToCpp::GetProxyForUrl(const CefString& url,
|
||||
CefProxyInfo& proxy_info)
|
||||
{
|
||||
CefProxyInfo& proxy_info) {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_proxy_for_url))
|
||||
return;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _PROXYHANDLER_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_PROXY_HANDLER_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_PROXY_HANDLER_CTOCPP_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_proxy_handler.h"
|
||||
#include "include/capi/cef_proxy_handler_capi.h"
|
||||
@@ -25,10 +26,9 @@
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefProxyHandlerCToCpp
|
||||
: public CefCToCpp<CefProxyHandlerCToCpp, CefProxyHandler,
|
||||
cef_proxy_handler_t>
|
||||
{
|
||||
public:
|
||||
CefProxyHandlerCToCpp(cef_proxy_handler_t* str)
|
||||
cef_proxy_handler_t> {
|
||||
public:
|
||||
explicit CefProxyHandlerCToCpp(cef_proxy_handler_t* str)
|
||||
: CefCToCpp<CefProxyHandlerCToCpp, CefProxyHandler, cef_proxy_handler_t>(
|
||||
str) {}
|
||||
virtual ~CefProxyHandlerCToCpp() {}
|
||||
@@ -38,6 +38,6 @@ public:
|
||||
CefProxyInfo& proxy_info) OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _PROXYHANDLER_CTOCPP_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_PROXY_HANDLER_CTOCPP_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 @@
|
||||
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
size_t CefReadHandlerCToCpp::Read(void* ptr, size_t size, size_t n)
|
||||
{
|
||||
size_t CefReadHandlerCToCpp::Read(void* ptr, size_t size, size_t n) {
|
||||
if (CEF_MEMBER_MISSING(struct_, read))
|
||||
return 0;
|
||||
|
||||
@@ -37,8 +36,7 @@ size_t CefReadHandlerCToCpp::Read(void* ptr, size_t size, size_t n)
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CefReadHandlerCToCpp::Seek(long offset, int whence)
|
||||
{
|
||||
int CefReadHandlerCToCpp::Seek(int64 offset, int whence) {
|
||||
if (CEF_MEMBER_MISSING(struct_, seek))
|
||||
return 0;
|
||||
|
||||
@@ -53,22 +51,20 @@ int CefReadHandlerCToCpp::Seek(long offset, int whence)
|
||||
return _retval;
|
||||
}
|
||||
|
||||
long CefReadHandlerCToCpp::Tell()
|
||||
{
|
||||
int64 CefReadHandlerCToCpp::Tell() {
|
||||
if (CEF_MEMBER_MISSING(struct_, tell))
|
||||
return 0;
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
long _retval = struct_->tell(struct_);
|
||||
int64 _retval = struct_->tell(struct_);
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CefReadHandlerCToCpp::Eof()
|
||||
{
|
||||
int CefReadHandlerCToCpp::Eof() {
|
||||
if (CEF_MEMBER_MISSING(struct_, eof))
|
||||
return 0;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _READHANDLER_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_READ_HANDLER_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_READ_HANDLER_CTOCPP_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"
|
||||
@@ -24,21 +25,21 @@
|
||||
// Wrap a C structure with a C++ class.
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefReadHandlerCToCpp
|
||||
: public CefCToCpp<CefReadHandlerCToCpp, CefReadHandler, cef_read_handler_t>
|
||||
{
|
||||
public:
|
||||
CefReadHandlerCToCpp(cef_read_handler_t* str)
|
||||
: public CefCToCpp<CefReadHandlerCToCpp, CefReadHandler,
|
||||
cef_read_handler_t> {
|
||||
public:
|
||||
explicit CefReadHandlerCToCpp(cef_read_handler_t* str)
|
||||
: CefCToCpp<CefReadHandlerCToCpp, CefReadHandler, cef_read_handler_t>(
|
||||
str) {}
|
||||
virtual ~CefReadHandlerCToCpp() {}
|
||||
|
||||
// CefReadHandler methods
|
||||
virtual size_t Read(void* ptr, size_t size, size_t n) OVERRIDE;
|
||||
virtual int Seek(long offset, int whence) OVERRIDE;
|
||||
virtual long Tell() OVERRIDE;
|
||||
virtual int Seek(int64 offset, int whence) OVERRIDE;
|
||||
virtual int64 Tell() OVERRIDE;
|
||||
virtual int Eof() OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _READHANDLER_CTOCPP_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_READ_HANDLER_CTOCPP_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 @@
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
bool CefRenderHandlerCToCpp::GetViewRect(CefRefPtr<CefBrowser> browser,
|
||||
CefRect& rect)
|
||||
{
|
||||
CefRect& rect) {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_view_rect))
|
||||
return false;
|
||||
|
||||
@@ -39,8 +38,7 @@ bool CefRenderHandlerCToCpp::GetViewRect(CefRefPtr<CefBrowser> browser,
|
||||
}
|
||||
|
||||
bool CefRenderHandlerCToCpp::GetScreenRect(CefRefPtr<CefBrowser> browser,
|
||||
CefRect& rect)
|
||||
{
|
||||
CefRect& rect) {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_screen_rect))
|
||||
return false;
|
||||
|
||||
@@ -61,8 +59,7 @@ bool CefRenderHandlerCToCpp::GetScreenRect(CefRefPtr<CefBrowser> browser,
|
||||
}
|
||||
|
||||
bool CefRenderHandlerCToCpp::GetScreenPoint(CefRefPtr<CefBrowser> browser,
|
||||
int viewX, int viewY, int& screenX, int& screenY)
|
||||
{
|
||||
int viewX, int viewY, int& screenX, int& screenY) {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_screen_point))
|
||||
return false;
|
||||
|
||||
@@ -86,8 +83,7 @@ bool CefRenderHandlerCToCpp::GetScreenPoint(CefRefPtr<CefBrowser> browser,
|
||||
}
|
||||
|
||||
void CefRenderHandlerCToCpp::OnPopupShow(CefRefPtr<CefBrowser> browser,
|
||||
bool show)
|
||||
{
|
||||
bool show) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_popup_show))
|
||||
return;
|
||||
|
||||
@@ -105,8 +101,7 @@ void CefRenderHandlerCToCpp::OnPopupShow(CefRefPtr<CefBrowser> browser,
|
||||
}
|
||||
|
||||
void CefRenderHandlerCToCpp::OnPopupSize(CefRefPtr<CefBrowser> browser,
|
||||
const CefRect& rect)
|
||||
{
|
||||
const CefRect& rect) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_popup_size))
|
||||
return;
|
||||
|
||||
@@ -124,8 +119,7 @@ void CefRenderHandlerCToCpp::OnPopupSize(CefRefPtr<CefBrowser> browser,
|
||||
}
|
||||
|
||||
void CefRenderHandlerCToCpp::OnPaint(CefRefPtr<CefBrowser> browser,
|
||||
PaintElementType type, const RectList& dirtyRects, const void* buffer)
|
||||
{
|
||||
PaintElementType type, const RectList& dirtyRects, const void* buffer) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_paint))
|
||||
return;
|
||||
|
||||
@@ -163,8 +157,7 @@ void CefRenderHandlerCToCpp::OnPaint(CefRefPtr<CefBrowser> browser,
|
||||
}
|
||||
|
||||
void CefRenderHandlerCToCpp::OnCursorChange(CefRefPtr<CefBrowser> browser,
|
||||
CefCursorHandle cursor)
|
||||
{
|
||||
CefCursorHandle cursor) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_cursor_change))
|
||||
return;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _RENDERHANDLER_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_RENDER_HANDLER_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_RENDER_HANDLER_CTOCPP_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_render_handler.h"
|
||||
#include "include/capi/cef_render_handler_capi.h"
|
||||
@@ -27,10 +28,9 @@
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefRenderHandlerCToCpp
|
||||
: public CefCToCpp<CefRenderHandlerCToCpp, CefRenderHandler,
|
||||
cef_render_handler_t>
|
||||
{
|
||||
public:
|
||||
CefRenderHandlerCToCpp(cef_render_handler_t* str)
|
||||
cef_render_handler_t> {
|
||||
public:
|
||||
explicit CefRenderHandlerCToCpp(cef_render_handler_t* str)
|
||||
: CefCToCpp<CefRenderHandlerCToCpp, CefRenderHandler,
|
||||
cef_render_handler_t>(str) {}
|
||||
virtual ~CefRenderHandlerCToCpp() {}
|
||||
@@ -51,6 +51,6 @@ public:
|
||||
CefCursorHandle cursor) OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _RENDERHANDLER_CTOCPP_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_RENDER_HANDLER_CTOCPP_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 @@
|
||||
|
||||
// STATIC METHODS - Body may be edited by hand.
|
||||
|
||||
CefRefPtr<CefRequest> CefRequest::CreateRequest()
|
||||
{
|
||||
CefRefPtr<CefRequest> CefRequest::CreateRequest() {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
@@ -31,8 +30,7 @@ CefRefPtr<CefRequest> CefRequest::CreateRequest()
|
||||
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
CefString CefRequestCToCpp::GetURL()
|
||||
{
|
||||
CefString CefRequestCToCpp::GetURL() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_url))
|
||||
return CefString();
|
||||
|
||||
@@ -47,8 +45,7 @@ CefString CefRequestCToCpp::GetURL()
|
||||
return _retvalStr;
|
||||
}
|
||||
|
||||
void CefRequestCToCpp::SetURL(const CefString& url)
|
||||
{
|
||||
void CefRequestCToCpp::SetURL(const CefString& url) {
|
||||
if (CEF_MEMBER_MISSING(struct_, set_url))
|
||||
return;
|
||||
|
||||
@@ -64,8 +61,7 @@ void CefRequestCToCpp::SetURL(const CefString& url)
|
||||
url.GetStruct());
|
||||
}
|
||||
|
||||
CefString CefRequestCToCpp::GetMethod()
|
||||
{
|
||||
CefString CefRequestCToCpp::GetMethod() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_method))
|
||||
return CefString();
|
||||
|
||||
@@ -80,8 +76,7 @@ CefString CefRequestCToCpp::GetMethod()
|
||||
return _retvalStr;
|
||||
}
|
||||
|
||||
void CefRequestCToCpp::SetMethod(const CefString& method)
|
||||
{
|
||||
void CefRequestCToCpp::SetMethod(const CefString& method) {
|
||||
if (CEF_MEMBER_MISSING(struct_, set_method))
|
||||
return;
|
||||
|
||||
@@ -97,8 +92,7 @@ void CefRequestCToCpp::SetMethod(const CefString& method)
|
||||
method.GetStruct());
|
||||
}
|
||||
|
||||
CefRefPtr<CefPostData> CefRequestCToCpp::GetPostData()
|
||||
{
|
||||
CefRefPtr<CefPostData> CefRequestCToCpp::GetPostData() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_post_data))
|
||||
return NULL;
|
||||
|
||||
@@ -111,8 +105,7 @@ CefRefPtr<CefPostData> CefRequestCToCpp::GetPostData()
|
||||
return CefPostDataCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
void CefRequestCToCpp::SetPostData(CefRefPtr<CefPostData> postData)
|
||||
{
|
||||
void CefRequestCToCpp::SetPostData(CefRefPtr<CefPostData> postData) {
|
||||
if (CEF_MEMBER_MISSING(struct_, set_post_data))
|
||||
return;
|
||||
|
||||
@@ -128,8 +121,7 @@ void CefRequestCToCpp::SetPostData(CefRefPtr<CefPostData> postData)
|
||||
CefPostDataCToCpp::Unwrap(postData));
|
||||
}
|
||||
|
||||
void CefRequestCToCpp::GetHeaderMap(HeaderMap& headerMap)
|
||||
{
|
||||
void CefRequestCToCpp::GetHeaderMap(HeaderMap& headerMap) {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_header_map))
|
||||
return;
|
||||
|
||||
@@ -153,8 +145,7 @@ void CefRequestCToCpp::GetHeaderMap(HeaderMap& headerMap)
|
||||
}
|
||||
}
|
||||
|
||||
void CefRequestCToCpp::SetHeaderMap(const HeaderMap& headerMap)
|
||||
{
|
||||
void CefRequestCToCpp::SetHeaderMap(const HeaderMap& headerMap) {
|
||||
if (CEF_MEMBER_MISSING(struct_, set_header_map))
|
||||
return;
|
||||
|
||||
@@ -176,8 +167,7 @@ void CefRequestCToCpp::SetHeaderMap(const HeaderMap& headerMap)
|
||||
}
|
||||
|
||||
void CefRequestCToCpp::Set(const CefString& url, const CefString& method,
|
||||
CefRefPtr<CefPostData> postData, const HeaderMap& headerMap)
|
||||
{
|
||||
CefRefPtr<CefPostData> postData, const HeaderMap& headerMap) {
|
||||
if (CEF_MEMBER_MISSING(struct_, set))
|
||||
return;
|
||||
|
||||
@@ -211,8 +201,7 @@ void CefRequestCToCpp::Set(const CefString& url, const CefString& method,
|
||||
cef_string_multimap_free(headerMapMultimap);
|
||||
}
|
||||
|
||||
CefRequest::RequestFlags CefRequestCToCpp::GetFlags()
|
||||
{
|
||||
CefRequest::RequestFlags CefRequestCToCpp::GetFlags() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_flags))
|
||||
return WUR_FLAG_NONE;
|
||||
|
||||
@@ -225,8 +214,7 @@ CefRequest::RequestFlags CefRequestCToCpp::GetFlags()
|
||||
return _retval;
|
||||
}
|
||||
|
||||
void CefRequestCToCpp::SetFlags(RequestFlags flags)
|
||||
{
|
||||
void CefRequestCToCpp::SetFlags(RequestFlags flags) {
|
||||
if (CEF_MEMBER_MISSING(struct_, set_flags))
|
||||
return;
|
||||
|
||||
@@ -237,8 +225,7 @@ void CefRequestCToCpp::SetFlags(RequestFlags flags)
|
||||
flags);
|
||||
}
|
||||
|
||||
CefString CefRequestCToCpp::GetFirstPartyForCookies()
|
||||
{
|
||||
CefString CefRequestCToCpp::GetFirstPartyForCookies() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_first_party_for_cookies))
|
||||
return CefString();
|
||||
|
||||
@@ -253,8 +240,7 @@ CefString CefRequestCToCpp::GetFirstPartyForCookies()
|
||||
return _retvalStr;
|
||||
}
|
||||
|
||||
void CefRequestCToCpp::SetFirstPartyForCookies(const CefString& url)
|
||||
{
|
||||
void CefRequestCToCpp::SetFirstPartyForCookies(const CefString& url) {
|
||||
if (CEF_MEMBER_MISSING(struct_, set_first_party_for_cookies))
|
||||
return;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _REQUEST_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_REQUEST_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_REQUEST_CTOCPP_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.h"
|
||||
#include "include/capi/cef_request_capi.h"
|
||||
@@ -24,10 +25,9 @@
|
||||
// Wrap a C structure with a C++ class.
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefRequestCToCpp
|
||||
: public CefCToCpp<CefRequestCToCpp, CefRequest, cef_request_t>
|
||||
{
|
||||
public:
|
||||
CefRequestCToCpp(cef_request_t* str)
|
||||
: public CefCToCpp<CefRequestCToCpp, CefRequest, cef_request_t> {
|
||||
public:
|
||||
explicit CefRequestCToCpp(cef_request_t* str)
|
||||
: CefCToCpp<CefRequestCToCpp, CefRequest, cef_request_t>(str) {}
|
||||
virtual ~CefRequestCToCpp() {}
|
||||
|
||||
@@ -48,6 +48,6 @@ public:
|
||||
virtual void SetFirstPartyForCookies(const CefString& url) OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _REQUEST_CTOCPP_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_REQUEST_CTOCPP_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.
|
||||
//
|
||||
@@ -24,8 +24,7 @@
|
||||
|
||||
bool CefRequestHandlerCToCpp::OnBeforeBrowse(CefRefPtr<CefBrowser> browser,
|
||||
CefRefPtr<CefFrame> frame, CefRefPtr<CefRequest> request, NavType navType,
|
||||
bool isRedirect)
|
||||
{
|
||||
bool isRedirect) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_before_browse))
|
||||
return false;
|
||||
|
||||
@@ -59,8 +58,7 @@ bool CefRequestHandlerCToCpp::OnBeforeBrowse(CefRefPtr<CefBrowser> browser,
|
||||
bool CefRequestHandlerCToCpp::OnBeforeResourceLoad(
|
||||
CefRefPtr<CefBrowser> browser, CefRefPtr<CefRequest> request,
|
||||
CefString& redirectUrl, CefRefPtr<CefStreamReader>& resourceStream,
|
||||
CefRefPtr<CefResponse> response, int loadFlags)
|
||||
{
|
||||
CefRefPtr<CefResponse> response, int loadFlags) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_before_resource_load))
|
||||
return false;
|
||||
|
||||
@@ -81,7 +79,7 @@ bool CefRequestHandlerCToCpp::OnBeforeResourceLoad(
|
||||
|
||||
// Translate param: resourceStream; type: refptr_diff_byref
|
||||
cef_stream_reader_t* resourceStreamStruct = NULL;
|
||||
if(resourceStream.get())
|
||||
if (resourceStream.get())
|
||||
resourceStreamStruct = CefStreamReaderCppToC::Wrap(resourceStream);
|
||||
cef_stream_reader_t* resourceStreamOrig = resourceStreamStruct;
|
||||
|
||||
@@ -108,8 +106,7 @@ bool CefRequestHandlerCToCpp::OnBeforeResourceLoad(
|
||||
}
|
||||
|
||||
void CefRequestHandlerCToCpp::OnResourceRedirect(CefRefPtr<CefBrowser> browser,
|
||||
const CefString& old_url, CefString& new_url)
|
||||
{
|
||||
const CefString& old_url, CefString& new_url) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_resource_redirect))
|
||||
return;
|
||||
|
||||
@@ -133,8 +130,7 @@ void CefRequestHandlerCToCpp::OnResourceRedirect(CefRefPtr<CefBrowser> browser,
|
||||
|
||||
void CefRequestHandlerCToCpp::OnResourceResponse(CefRefPtr<CefBrowser> browser,
|
||||
const CefString& url, CefRefPtr<CefResponse> response,
|
||||
CefRefPtr<CefContentFilter>& filter)
|
||||
{
|
||||
CefRefPtr<CefContentFilter>& filter) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_resource_response))
|
||||
return;
|
||||
|
||||
@@ -155,7 +151,7 @@ void CefRequestHandlerCToCpp::OnResourceResponse(CefRefPtr<CefBrowser> browser,
|
||||
|
||||
// Translate param: filter; type: refptr_same_byref
|
||||
cef_content_filter_t* filterStruct = NULL;
|
||||
if(filter.get())
|
||||
if (filter.get())
|
||||
filterStruct = CefContentFilterCToCpp::Unwrap(filter);
|
||||
cef_content_filter_t* filterOrig = filterStruct;
|
||||
|
||||
@@ -177,8 +173,7 @@ void CefRequestHandlerCToCpp::OnResourceResponse(CefRefPtr<CefBrowser> browser,
|
||||
}
|
||||
|
||||
bool CefRequestHandlerCToCpp::OnProtocolExecution(CefRefPtr<CefBrowser> browser,
|
||||
const CefString& url, bool& allowOSExecution)
|
||||
{
|
||||
const CefString& url, bool& allowOSExecution) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_protocol_execution))
|
||||
return false;
|
||||
|
||||
@@ -211,8 +206,7 @@ bool CefRequestHandlerCToCpp::OnProtocolExecution(CefRefPtr<CefBrowser> browser,
|
||||
|
||||
bool CefRequestHandlerCToCpp::GetDownloadHandler(CefRefPtr<CefBrowser> browser,
|
||||
const CefString& mimeType, const CefString& fileName, int64 contentLength,
|
||||
CefRefPtr<CefDownloadHandler>& handler)
|
||||
{
|
||||
CefRefPtr<CefDownloadHandler>& handler) {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_download_handler))
|
||||
return false;
|
||||
|
||||
@@ -233,7 +227,7 @@ bool CefRequestHandlerCToCpp::GetDownloadHandler(CefRefPtr<CefBrowser> browser,
|
||||
|
||||
// Translate param: handler; type: refptr_same_byref
|
||||
cef_download_handler_t* handlerStruct = NULL;
|
||||
if(handler.get())
|
||||
if (handler.get())
|
||||
handlerStruct = CefDownloadHandlerCToCpp::Unwrap(handler);
|
||||
cef_download_handler_t* handlerOrig = handlerStruct;
|
||||
|
||||
@@ -260,8 +254,7 @@ bool CefRequestHandlerCToCpp::GetDownloadHandler(CefRefPtr<CefBrowser> browser,
|
||||
|
||||
bool CefRequestHandlerCToCpp::GetAuthCredentials(CefRefPtr<CefBrowser> browser,
|
||||
bool isProxy, const CefString& host, int port, const CefString& realm,
|
||||
const CefString& scheme, CefString& username, CefString& password)
|
||||
{
|
||||
const CefString& scheme, CefString& username, CefString& password) {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_auth_credentials))
|
||||
return false;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _REQUESTHANDLER_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_REQUEST_HANDLER_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_REQUEST_HANDLER_CTOCPP_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_handler.h"
|
||||
#include "include/capi/cef_request_handler_capi.h"
|
||||
@@ -29,10 +30,9 @@
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefRequestHandlerCToCpp
|
||||
: public CefCToCpp<CefRequestHandlerCToCpp, CefRequestHandler,
|
||||
cef_request_handler_t>
|
||||
{
|
||||
public:
|
||||
CefRequestHandlerCToCpp(cef_request_handler_t* str)
|
||||
cef_request_handler_t> {
|
||||
public:
|
||||
explicit CefRequestHandlerCToCpp(cef_request_handler_t* str)
|
||||
: CefCToCpp<CefRequestHandlerCToCpp, CefRequestHandler,
|
||||
cef_request_handler_t>(str) {}
|
||||
virtual ~CefRequestHandlerCToCpp() {}
|
||||
@@ -61,6 +61,6 @@ public:
|
||||
CefString& password) OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _REQUESTHANDLER_CTOCPP_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_REQUEST_HANDLER_CTOCPP_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 @@
|
||||
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
int CefResponseCToCpp::GetStatus()
|
||||
{
|
||||
int CefResponseCToCpp::GetStatus() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_status))
|
||||
return 0;
|
||||
|
||||
@@ -30,8 +29,7 @@ int CefResponseCToCpp::GetStatus()
|
||||
return _retval;
|
||||
}
|
||||
|
||||
void CefResponseCToCpp::SetStatus(int status)
|
||||
{
|
||||
void CefResponseCToCpp::SetStatus(int status) {
|
||||
if (CEF_MEMBER_MISSING(struct_, set_status))
|
||||
return;
|
||||
|
||||
@@ -42,8 +40,7 @@ void CefResponseCToCpp::SetStatus(int status)
|
||||
status);
|
||||
}
|
||||
|
||||
CefString CefResponseCToCpp::GetStatusText()
|
||||
{
|
||||
CefString CefResponseCToCpp::GetStatusText() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_status_text))
|
||||
return CefString();
|
||||
|
||||
@@ -58,8 +55,7 @@ CefString CefResponseCToCpp::GetStatusText()
|
||||
return _retvalStr;
|
||||
}
|
||||
|
||||
void CefResponseCToCpp::SetStatusText(const CefString& statusText)
|
||||
{
|
||||
void CefResponseCToCpp::SetStatusText(const CefString& statusText) {
|
||||
if (CEF_MEMBER_MISSING(struct_, set_status_text))
|
||||
return;
|
||||
|
||||
@@ -75,8 +71,7 @@ void CefResponseCToCpp::SetStatusText(const CefString& statusText)
|
||||
statusText.GetStruct());
|
||||
}
|
||||
|
||||
CefString CefResponseCToCpp::GetMimeType()
|
||||
{
|
||||
CefString CefResponseCToCpp::GetMimeType() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_mime_type))
|
||||
return CefString();
|
||||
|
||||
@@ -91,8 +86,7 @@ CefString CefResponseCToCpp::GetMimeType()
|
||||
return _retvalStr;
|
||||
}
|
||||
|
||||
void CefResponseCToCpp::SetMimeType(const CefString& mimeType)
|
||||
{
|
||||
void CefResponseCToCpp::SetMimeType(const CefString& mimeType) {
|
||||
if (CEF_MEMBER_MISSING(struct_, set_mime_type))
|
||||
return;
|
||||
|
||||
@@ -108,8 +102,7 @@ void CefResponseCToCpp::SetMimeType(const CefString& mimeType)
|
||||
mimeType.GetStruct());
|
||||
}
|
||||
|
||||
CefString CefResponseCToCpp::GetHeader(const CefString& name)
|
||||
{
|
||||
CefString CefResponseCToCpp::GetHeader(const CefString& name) {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_header))
|
||||
return CefString();
|
||||
|
||||
@@ -130,8 +123,7 @@ CefString CefResponseCToCpp::GetHeader(const CefString& name)
|
||||
return _retvalStr;
|
||||
}
|
||||
|
||||
void CefResponseCToCpp::GetHeaderMap(HeaderMap& headerMap)
|
||||
{
|
||||
void CefResponseCToCpp::GetHeaderMap(HeaderMap& headerMap) {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_header_map))
|
||||
return;
|
||||
|
||||
@@ -155,8 +147,7 @@ void CefResponseCToCpp::GetHeaderMap(HeaderMap& headerMap)
|
||||
}
|
||||
}
|
||||
|
||||
void CefResponseCToCpp::SetHeaderMap(const HeaderMap& headerMap)
|
||||
{
|
||||
void CefResponseCToCpp::SetHeaderMap(const HeaderMap& headerMap) {
|
||||
if (CEF_MEMBER_MISSING(struct_, set_header_map))
|
||||
return;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _RESPONSE_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_RESPONSE_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_RESPONSE_CTOCPP_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_response.h"
|
||||
#include "include/capi/cef_response_capi.h"
|
||||
@@ -24,10 +25,9 @@
|
||||
// Wrap a C structure with a C++ class.
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefResponseCToCpp
|
||||
: public CefCToCpp<CefResponseCToCpp, CefResponse, cef_response_t>
|
||||
{
|
||||
public:
|
||||
CefResponseCToCpp(cef_response_t* str)
|
||||
: public CefCToCpp<CefResponseCToCpp, CefResponse, cef_response_t> {
|
||||
public:
|
||||
explicit CefResponseCToCpp(cef_response_t* str)
|
||||
: CefCToCpp<CefResponseCToCpp, CefResponse, cef_response_t>(str) {}
|
||||
virtual ~CefResponseCToCpp() {}
|
||||
|
||||
@@ -43,6 +43,6 @@ public:
|
||||
virtual void SetHeaderMap(const HeaderMap& headerMap) OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _RESPONSE_CTOCPP_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_RESPONSE_CTOCPP_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 @@
|
||||
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
void CefSchemeHandlerCallbackCToCpp::HeadersAvailable()
|
||||
{
|
||||
void CefSchemeHandlerCallbackCToCpp::HeadersAvailable() {
|
||||
if (CEF_MEMBER_MISSING(struct_, headers_available))
|
||||
return;
|
||||
|
||||
@@ -26,8 +25,7 @@ void CefSchemeHandlerCallbackCToCpp::HeadersAvailable()
|
||||
struct_->headers_available(struct_);
|
||||
}
|
||||
|
||||
void CefSchemeHandlerCallbackCToCpp::BytesAvailable()
|
||||
{
|
||||
void CefSchemeHandlerCallbackCToCpp::BytesAvailable() {
|
||||
if (CEF_MEMBER_MISSING(struct_, bytes_available))
|
||||
return;
|
||||
|
||||
@@ -37,8 +35,7 @@ void CefSchemeHandlerCallbackCToCpp::BytesAvailable()
|
||||
struct_->bytes_available(struct_);
|
||||
}
|
||||
|
||||
void CefSchemeHandlerCallbackCToCpp::Cancel()
|
||||
{
|
||||
void CefSchemeHandlerCallbackCToCpp::Cancel() {
|
||||
if (CEF_MEMBER_MISSING(struct_, cancel))
|
||||
return;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _SCHEMEHANDLERCALLBACK_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_SCHEME_HANDLER_CALLBACK_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_SCHEME_HANDLER_CALLBACK_CTOCPP_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,10 +32,9 @@
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefSchemeHandlerCallbackCToCpp
|
||||
: public CefCToCpp<CefSchemeHandlerCallbackCToCpp, CefSchemeHandlerCallback,
|
||||
cef_scheme_handler_callback_t>
|
||||
{
|
||||
public:
|
||||
CefSchemeHandlerCallbackCToCpp(cef_scheme_handler_callback_t* str)
|
||||
cef_scheme_handler_callback_t> {
|
||||
public:
|
||||
explicit CefSchemeHandlerCallbackCToCpp(cef_scheme_handler_callback_t* str)
|
||||
: CefCToCpp<CefSchemeHandlerCallbackCToCpp, CefSchemeHandlerCallback,
|
||||
cef_scheme_handler_callback_t>(str) {}
|
||||
virtual ~CefSchemeHandlerCallbackCToCpp() {}
|
||||
@@ -45,6 +45,6 @@ public:
|
||||
virtual void Cancel() OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _SCHEMEHANDLERCALLBACK_CTOCPP_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_SCHEME_HANDLER_CALLBACK_CTOCPP_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 @@
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
bool CefSchemeHandlerCToCpp::ProcessRequest(CefRefPtr<CefRequest> request,
|
||||
CefRefPtr<CefSchemeHandlerCallback> callback)
|
||||
{
|
||||
CefRefPtr<CefSchemeHandlerCallback> callback) {
|
||||
if (CEF_MEMBER_MISSING(struct_, process_request))
|
||||
return false;
|
||||
|
||||
@@ -45,8 +44,7 @@ bool CefSchemeHandlerCToCpp::ProcessRequest(CefRefPtr<CefRequest> request,
|
||||
}
|
||||
|
||||
void CefSchemeHandlerCToCpp::GetResponseHeaders(CefRefPtr<CefResponse> response,
|
||||
int64& response_length, CefString& redirectUrl)
|
||||
{
|
||||
int64& response_length, CefString& redirectUrl) {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_response_headers))
|
||||
return;
|
||||
|
||||
@@ -65,8 +63,7 @@ void CefSchemeHandlerCToCpp::GetResponseHeaders(CefRefPtr<CefResponse> response,
|
||||
}
|
||||
|
||||
bool CefSchemeHandlerCToCpp::ReadResponse(void* data_out, int bytes_to_read,
|
||||
int& bytes_read, CefRefPtr<CefSchemeHandlerCallback> callback)
|
||||
{
|
||||
int& bytes_read, CefRefPtr<CefSchemeHandlerCallback> callback) {
|
||||
if (CEF_MEMBER_MISSING(struct_, read_response))
|
||||
return false;
|
||||
|
||||
@@ -92,8 +89,7 @@ bool CefSchemeHandlerCToCpp::ReadResponse(void* data_out, int bytes_to_read,
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
void CefSchemeHandlerCToCpp::Cancel()
|
||||
{
|
||||
void CefSchemeHandlerCToCpp::Cancel() {
|
||||
if (CEF_MEMBER_MISSING(struct_, cancel))
|
||||
return;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _SCHEMEHANDLER_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_SCHEME_HANDLER_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_SCHEME_HANDLER_CTOCPP_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,10 +32,9 @@
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefSchemeHandlerCToCpp
|
||||
: public CefCToCpp<CefSchemeHandlerCToCpp, CefSchemeHandler,
|
||||
cef_scheme_handler_t>
|
||||
{
|
||||
public:
|
||||
CefSchemeHandlerCToCpp(cef_scheme_handler_t* str)
|
||||
cef_scheme_handler_t> {
|
||||
public:
|
||||
explicit CefSchemeHandlerCToCpp(cef_scheme_handler_t* str)
|
||||
: CefCToCpp<CefSchemeHandlerCToCpp, CefSchemeHandler,
|
||||
cef_scheme_handler_t>(str) {}
|
||||
virtual ~CefSchemeHandlerCToCpp() {}
|
||||
@@ -49,6 +49,6 @@ public:
|
||||
virtual void Cancel() OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _SCHEMEHANDLER_CTOCPP_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_SCHEME_HANDLER_CTOCPP_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 @@
|
||||
|
||||
CefRefPtr<CefSchemeHandler> CefSchemeHandlerFactoryCToCpp::Create(
|
||||
CefRefPtr<CefBrowser> browser, const CefString& scheme_name,
|
||||
CefRefPtr<CefRequest> request)
|
||||
{
|
||||
CefRefPtr<CefRequest> request) {
|
||||
if (CEF_MEMBER_MISSING(struct_, create))
|
||||
return NULL;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _SCHEMEHANDLERFACTORY_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_SCHEME_HANDLER_FACTORY_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_SCHEME_HANDLER_FACTORY_CTOCPP_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,10 +32,9 @@
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefSchemeHandlerFactoryCToCpp
|
||||
: public CefCToCpp<CefSchemeHandlerFactoryCToCpp, CefSchemeHandlerFactory,
|
||||
cef_scheme_handler_factory_t>
|
||||
{
|
||||
public:
|
||||
CefSchemeHandlerFactoryCToCpp(cef_scheme_handler_factory_t* str)
|
||||
cef_scheme_handler_factory_t> {
|
||||
public:
|
||||
explicit CefSchemeHandlerFactoryCToCpp(cef_scheme_handler_factory_t* str)
|
||||
: CefCToCpp<CefSchemeHandlerFactoryCToCpp, CefSchemeHandlerFactory,
|
||||
cef_scheme_handler_factory_t>(str) {}
|
||||
virtual ~CefSchemeHandlerFactoryCToCpp() {}
|
||||
@@ -44,6 +44,6 @@ public:
|
||||
const CefString& scheme_name, CefRefPtr<CefRequest> request) OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _SCHEMEHANDLERFACTORY_CTOCPP_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_SCHEME_HANDLER_FACTORY_CTOCPP_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 @@
|
||||
|
||||
bool CefStorageVisitorCToCpp::Visit(CefStorageType type,
|
||||
const CefString& origin, const CefString& key, const CefString& value,
|
||||
int count, int total, bool& deleteData)
|
||||
{
|
||||
int count, int total, bool& deleteData) {
|
||||
if (CEF_MEMBER_MISSING(struct_, visit))
|
||||
return false;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _STORAGEVISITOR_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_STORAGE_VISITOR_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_STORAGE_VISITOR_CTOCPP_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_storage.h"
|
||||
#include "include/capi/cef_storage_capi.h"
|
||||
@@ -25,10 +26,9 @@
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefStorageVisitorCToCpp
|
||||
: public CefCToCpp<CefStorageVisitorCToCpp, CefStorageVisitor,
|
||||
cef_storage_visitor_t>
|
||||
{
|
||||
public:
|
||||
CefStorageVisitorCToCpp(cef_storage_visitor_t* str)
|
||||
cef_storage_visitor_t> {
|
||||
public:
|
||||
explicit CefStorageVisitorCToCpp(cef_storage_visitor_t* str)
|
||||
: CefCToCpp<CefStorageVisitorCToCpp, CefStorageVisitor,
|
||||
cef_storage_visitor_t>(str) {}
|
||||
virtual ~CefStorageVisitorCToCpp() {}
|
||||
@@ -39,6 +39,6 @@ public:
|
||||
bool& deleteData) OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _STORAGEVISITOR_CTOCPP_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_STORAGE_VISITOR_CTOCPP_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 @@
|
||||
// STATIC METHODS - Body may be edited by hand.
|
||||
|
||||
CefRefPtr<CefStreamReader> CefStreamReader::CreateForFile(
|
||||
const CefString& fileName)
|
||||
{
|
||||
const CefString& fileName) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: fileName; type: string_byref_const
|
||||
@@ -35,8 +34,7 @@ CefRefPtr<CefStreamReader> CefStreamReader::CreateForFile(
|
||||
}
|
||||
|
||||
CefRefPtr<CefStreamReader> CefStreamReader::CreateForData(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 @@ CefRefPtr<CefStreamReader> CefStreamReader::CreateForData(void* data,
|
||||
}
|
||||
|
||||
CefRefPtr<CefStreamReader> CefStreamReader::CreateForHandler(
|
||||
CefRefPtr<CefReadHandler> handler)
|
||||
{
|
||||
CefRefPtr<CefReadHandler> handler) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: handler; type: refptr_diff
|
||||
@@ -74,8 +71,7 @@ CefRefPtr<CefStreamReader> CefStreamReader::CreateForHandler(
|
||||
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
size_t CefStreamReaderCToCpp::Read(void* ptr, size_t size, size_t n)
|
||||
{
|
||||
size_t CefStreamReaderCToCpp::Read(void* ptr, size_t size, size_t n) {
|
||||
if (CEF_MEMBER_MISSING(struct_, read))
|
||||
return 0;
|
||||
|
||||
@@ -96,8 +92,7 @@ size_t CefStreamReaderCToCpp::Read(void* ptr, size_t size, size_t n)
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CefStreamReaderCToCpp::Seek(long offset, int whence)
|
||||
{
|
||||
int CefStreamReaderCToCpp::Seek(int64 offset, int whence) {
|
||||
if (CEF_MEMBER_MISSING(struct_, seek))
|
||||
return 0;
|
||||
|
||||
@@ -112,22 +107,20 @@ int CefStreamReaderCToCpp::Seek(long offset, int whence)
|
||||
return _retval;
|
||||
}
|
||||
|
||||
long CefStreamReaderCToCpp::Tell()
|
||||
{
|
||||
int64 CefStreamReaderCToCpp::Tell() {
|
||||
if (CEF_MEMBER_MISSING(struct_, tell))
|
||||
return 0;
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
long _retval = struct_->tell(struct_);
|
||||
int64 _retval = struct_->tell(struct_);
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CefStreamReaderCToCpp::Eof()
|
||||
{
|
||||
int CefStreamReaderCToCpp::Eof() {
|
||||
if (CEF_MEMBER_MISSING(struct_, eof))
|
||||
return 0;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _STREAMREADER_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_STREAM_READER_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_STREAM_READER_CTOCPP_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,21 +26,20 @@
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefStreamReaderCToCpp
|
||||
: public CefCToCpp<CefStreamReaderCToCpp, CefStreamReader,
|
||||
cef_stream_reader_t>
|
||||
{
|
||||
public:
|
||||
CefStreamReaderCToCpp(cef_stream_reader_t* str)
|
||||
cef_stream_reader_t> {
|
||||
public:
|
||||
explicit CefStreamReaderCToCpp(cef_stream_reader_t* str)
|
||||
: CefCToCpp<CefStreamReaderCToCpp, CefStreamReader, cef_stream_reader_t>(
|
||||
str) {}
|
||||
virtual ~CefStreamReaderCToCpp() {}
|
||||
|
||||
// CefStreamReader methods
|
||||
virtual size_t Read(void* ptr, size_t size, size_t n) OVERRIDE;
|
||||
virtual int Seek(long offset, int whence) OVERRIDE;
|
||||
virtual long Tell() OVERRIDE;
|
||||
virtual int Seek(int64 offset, int whence) OVERRIDE;
|
||||
virtual int64 Tell() OVERRIDE;
|
||||
virtual int Eof() OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _STREAMREADER_CTOCPP_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_STREAM_READER_CTOCPP_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 @@
|
||||
// STATIC METHODS - Body may be edited by hand.
|
||||
|
||||
CefRefPtr<CefStreamWriter> CefStreamWriter::CreateForFile(
|
||||
const CefString& fileName)
|
||||
{
|
||||
const CefString& fileName) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: fileName; type: string_byref_const
|
||||
@@ -35,8 +34,7 @@ CefRefPtr<CefStreamWriter> CefStreamWriter::CreateForFile(
|
||||
}
|
||||
|
||||
CefRefPtr<CefStreamWriter> CefStreamWriter::CreateForHandler(
|
||||
CefRefPtr<CefWriteHandler> handler)
|
||||
{
|
||||
CefRefPtr<CefWriteHandler> handler) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: handler; type: refptr_diff
|
||||
@@ -55,8 +53,7 @@ CefRefPtr<CefStreamWriter> CefStreamWriter::CreateForHandler(
|
||||
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
size_t CefStreamWriterCToCpp::Write(const void* ptr, size_t size, size_t n)
|
||||
{
|
||||
size_t CefStreamWriterCToCpp::Write(const void* ptr, size_t size, size_t n) {
|
||||
if (CEF_MEMBER_MISSING(struct_, write))
|
||||
return 0;
|
||||
|
||||
@@ -77,8 +74,7 @@ size_t CefStreamWriterCToCpp::Write(const void* ptr, size_t size, size_t n)
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CefStreamWriterCToCpp::Seek(long offset, int whence)
|
||||
{
|
||||
int CefStreamWriterCToCpp::Seek(int64 offset, int whence) {
|
||||
if (CEF_MEMBER_MISSING(struct_, seek))
|
||||
return 0;
|
||||
|
||||
@@ -93,22 +89,20 @@ int CefStreamWriterCToCpp::Seek(long offset, int whence)
|
||||
return _retval;
|
||||
}
|
||||
|
||||
long CefStreamWriterCToCpp::Tell()
|
||||
{
|
||||
int64 CefStreamWriterCToCpp::Tell() {
|
||||
if (CEF_MEMBER_MISSING(struct_, tell))
|
||||
return 0;
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
long _retval = struct_->tell(struct_);
|
||||
int64 _retval = struct_->tell(struct_);
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CefStreamWriterCToCpp::Flush()
|
||||
{
|
||||
int CefStreamWriterCToCpp::Flush() {
|
||||
if (CEF_MEMBER_MISSING(struct_, flush))
|
||||
return 0;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _STREAMWRITER_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_STREAM_WRITER_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_STREAM_WRITER_CTOCPP_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,21 +26,20 @@
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefStreamWriterCToCpp
|
||||
: public CefCToCpp<CefStreamWriterCToCpp, CefStreamWriter,
|
||||
cef_stream_writer_t>
|
||||
{
|
||||
public:
|
||||
CefStreamWriterCToCpp(cef_stream_writer_t* str)
|
||||
cef_stream_writer_t> {
|
||||
public:
|
||||
explicit CefStreamWriterCToCpp(cef_stream_writer_t* str)
|
||||
: CefCToCpp<CefStreamWriterCToCpp, CefStreamWriter, cef_stream_writer_t>(
|
||||
str) {}
|
||||
virtual ~CefStreamWriterCToCpp() {}
|
||||
|
||||
// CefStreamWriter methods
|
||||
virtual size_t Write(const void* ptr, size_t size, size_t n) OVERRIDE;
|
||||
virtual int Seek(long offset, int whence) OVERRIDE;
|
||||
virtual long Tell() OVERRIDE;
|
||||
virtual int Seek(int64 offset, int whence) OVERRIDE;
|
||||
virtual int64 Tell() OVERRIDE;
|
||||
virtual int Flush() OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _STREAMWRITER_CTOCPP_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_STREAM_WRITER_CTOCPP_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 @@
|
||||
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
void CefTaskCToCpp::Execute(CefThreadId threadId)
|
||||
{
|
||||
void CefTaskCToCpp::Execute(CefThreadId threadId) {
|
||||
if (CEF_MEMBER_MISSING(struct_, execute))
|
||||
return;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _TASK_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_TASK_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_TASK_CTOCPP_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_task.h"
|
||||
#include "include/capi/cef_task_capi.h"
|
||||
@@ -24,10 +25,9 @@
|
||||
// Wrap a C structure with a C++ class.
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefTaskCToCpp
|
||||
: public CefCToCpp<CefTaskCToCpp, CefTask, cef_task_t>
|
||||
{
|
||||
public:
|
||||
CefTaskCToCpp(cef_task_t* str)
|
||||
: public CefCToCpp<CefTaskCToCpp, CefTask, cef_task_t> {
|
||||
public:
|
||||
explicit CefTaskCToCpp(cef_task_t* str)
|
||||
: CefCToCpp<CefTaskCToCpp, CefTask, cef_task_t>(str) {}
|
||||
virtual ~CefTaskCToCpp() {}
|
||||
|
||||
@@ -35,6 +35,6 @@ public:
|
||||
virtual void Execute(CefThreadId threadId) OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _TASK_CTOCPP_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_TASK_CTOCPP_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 @@
|
||||
|
||||
bool CefV8AccessorCToCpp::Get(const CefString& name,
|
||||
const CefRefPtr<CefV8Value> object, CefRefPtr<CefV8Value>& retval,
|
||||
CefString& exception)
|
||||
{
|
||||
CefString& exception) {
|
||||
if (CEF_MEMBER_MISSING(struct_, get))
|
||||
return false;
|
||||
|
||||
@@ -36,7 +35,7 @@ bool CefV8AccessorCToCpp::Get(const CefString& name,
|
||||
|
||||
// Translate param: retval; type: refptr_diff_byref
|
||||
cef_v8value_t* retvalStruct = NULL;
|
||||
if(retval.get())
|
||||
if (retval.get())
|
||||
retvalStruct = CefV8ValueCppToC::Wrap(retval);
|
||||
cef_v8value_t* retvalOrig = retvalStruct;
|
||||
|
||||
@@ -62,8 +61,7 @@ bool CefV8AccessorCToCpp::Get(const CefString& name,
|
||||
|
||||
bool CefV8AccessorCToCpp::Set(const CefString& name,
|
||||
const CefRefPtr<CefV8Value> object, const CefRefPtr<CefV8Value> value,
|
||||
CefString& exception)
|
||||
{
|
||||
CefString& exception) {
|
||||
if (CEF_MEMBER_MISSING(struct_, set))
|
||||
return false;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _V8ACCESSOR_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_V8ACCESSOR_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_V8ACCESSOR_CTOCPP_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,10 +29,9 @@
|
||||
// Wrap a C structure with a C++ class.
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefV8AccessorCToCpp
|
||||
: public CefCToCpp<CefV8AccessorCToCpp, CefV8Accessor, cef_v8accessor_t>
|
||||
{
|
||||
public:
|
||||
CefV8AccessorCToCpp(cef_v8accessor_t* str)
|
||||
: public CefCToCpp<CefV8AccessorCToCpp, CefV8Accessor, cef_v8accessor_t> {
|
||||
public:
|
||||
explicit CefV8AccessorCToCpp(cef_v8accessor_t* str)
|
||||
: CefCToCpp<CefV8AccessorCToCpp, CefV8Accessor, cef_v8accessor_t>(str) {}
|
||||
virtual ~CefV8AccessorCToCpp() {}
|
||||
|
||||
@@ -42,6 +42,6 @@ public:
|
||||
const CefRefPtr<CefV8Value> value, CefString& exception) OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _V8ACCESSOR_CTOCPP_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_V8ACCESSOR_CTOCPP_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 @@
|
||||
|
||||
// STATIC METHODS - Body may be edited by hand.
|
||||
|
||||
CefRefPtr<CefV8Context> CefV8Context::GetCurrentContext()
|
||||
{
|
||||
CefRefPtr<CefV8Context> CefV8Context::GetCurrentContext() {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
@@ -29,8 +28,7 @@ CefRefPtr<CefV8Context> CefV8Context::GetCurrentContext()
|
||||
return CefV8ContextCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
CefRefPtr<CefV8Context> CefV8Context::GetEnteredContext()
|
||||
{
|
||||
CefRefPtr<CefV8Context> CefV8Context::GetEnteredContext() {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
@@ -40,8 +38,7 @@ CefRefPtr<CefV8Context> CefV8Context::GetEnteredContext()
|
||||
return CefV8ContextCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
bool CefV8Context::InContext()
|
||||
{
|
||||
bool CefV8Context::InContext() {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
@@ -54,8 +51,7 @@ bool CefV8Context::InContext()
|
||||
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
CefRefPtr<CefBrowser> CefV8ContextCToCpp::GetBrowser()
|
||||
{
|
||||
CefRefPtr<CefBrowser> CefV8ContextCToCpp::GetBrowser() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_browser))
|
||||
return NULL;
|
||||
|
||||
@@ -68,8 +64,7 @@ CefRefPtr<CefBrowser> CefV8ContextCToCpp::GetBrowser()
|
||||
return CefBrowserCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
CefRefPtr<CefFrame> CefV8ContextCToCpp::GetFrame()
|
||||
{
|
||||
CefRefPtr<CefFrame> CefV8ContextCToCpp::GetFrame() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_frame))
|
||||
return NULL;
|
||||
|
||||
@@ -82,8 +77,7 @@ CefRefPtr<CefFrame> CefV8ContextCToCpp::GetFrame()
|
||||
return CefFrameCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
CefRefPtr<CefV8Value> CefV8ContextCToCpp::GetGlobal()
|
||||
{
|
||||
CefRefPtr<CefV8Value> CefV8ContextCToCpp::GetGlobal() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_global))
|
||||
return NULL;
|
||||
|
||||
@@ -96,8 +90,7 @@ CefRefPtr<CefV8Value> CefV8ContextCToCpp::GetGlobal()
|
||||
return CefV8ValueCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
bool CefV8ContextCToCpp::Enter()
|
||||
{
|
||||
bool CefV8ContextCToCpp::Enter() {
|
||||
if (CEF_MEMBER_MISSING(struct_, enter))
|
||||
return false;
|
||||
|
||||
@@ -110,8 +103,7 @@ bool CefV8ContextCToCpp::Enter()
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
bool CefV8ContextCToCpp::Exit()
|
||||
{
|
||||
bool CefV8ContextCToCpp::Exit() {
|
||||
if (CEF_MEMBER_MISSING(struct_, exit))
|
||||
return false;
|
||||
|
||||
@@ -124,8 +116,7 @@ bool CefV8ContextCToCpp::Exit()
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
bool CefV8ContextCToCpp::IsSame(CefRefPtr<CefV8Context> that)
|
||||
{
|
||||
bool CefV8ContextCToCpp::IsSame(CefRefPtr<CefV8Context> that) {
|
||||
if (CEF_MEMBER_MISSING(struct_, is_same))
|
||||
return false;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _V8CONTEXT_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_V8CONTEXT_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_V8CONTEXT_CTOCPP_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,10 +29,9 @@
|
||||
// Wrap a C structure with a C++ class.
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefV8ContextCToCpp
|
||||
: public CefCToCpp<CefV8ContextCToCpp, CefV8Context, cef_v8context_t>
|
||||
{
|
||||
public:
|
||||
CefV8ContextCToCpp(cef_v8context_t* str)
|
||||
: public CefCToCpp<CefV8ContextCToCpp, CefV8Context, cef_v8context_t> {
|
||||
public:
|
||||
explicit CefV8ContextCToCpp(cef_v8context_t* str)
|
||||
: CefCToCpp<CefV8ContextCToCpp, CefV8Context, cef_v8context_t>(str) {}
|
||||
virtual ~CefV8ContextCToCpp() {}
|
||||
|
||||
@@ -44,6 +44,6 @@ public:
|
||||
virtual bool IsSame(CefRefPtr<CefV8Context> that) OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _V8CONTEXT_CTOCPP_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_V8CONTEXT_CTOCPP_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 @@
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
void CefV8ContextHandlerCToCpp::OnContextCreated(CefRefPtr<CefBrowser> browser,
|
||||
CefRefPtr<CefFrame> frame, CefRefPtr<CefV8Context> context)
|
||||
{
|
||||
CefRefPtr<CefFrame> frame, CefRefPtr<CefV8Context> context) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_context_created))
|
||||
return;
|
||||
|
||||
@@ -47,8 +46,7 @@ void CefV8ContextHandlerCToCpp::OnContextCreated(CefRefPtr<CefBrowser> browser,
|
||||
}
|
||||
|
||||
void CefV8ContextHandlerCToCpp::OnContextReleased(CefRefPtr<CefBrowser> browser,
|
||||
CefRefPtr<CefFrame> frame, CefRefPtr<CefV8Context> context)
|
||||
{
|
||||
CefRefPtr<CefFrame> frame, CefRefPtr<CefV8Context> context) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_context_released))
|
||||
return;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _V8CONTEXTHANDLER_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_V8CONTEXT_HANDLER_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_V8CONTEXT_HANDLER_CTOCPP_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_v8context_handler.h"
|
||||
#include "include/capi/cef_v8context_handler_capi.h"
|
||||
@@ -29,10 +30,9 @@
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefV8ContextHandlerCToCpp
|
||||
: public CefCToCpp<CefV8ContextHandlerCToCpp, CefV8ContextHandler,
|
||||
cef_v8context_handler_t>
|
||||
{
|
||||
public:
|
||||
CefV8ContextHandlerCToCpp(cef_v8context_handler_t* str)
|
||||
cef_v8context_handler_t> {
|
||||
public:
|
||||
explicit CefV8ContextHandlerCToCpp(cef_v8context_handler_t* str)
|
||||
: CefCToCpp<CefV8ContextHandlerCToCpp, CefV8ContextHandler,
|
||||
cef_v8context_handler_t>(str) {}
|
||||
virtual ~CefV8ContextHandlerCToCpp() {}
|
||||
@@ -44,6 +44,6 @@ public:
|
||||
CefRefPtr<CefFrame> frame, CefRefPtr<CefV8Context> context) OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _V8CONTEXTHANDLER_CTOCPP_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_V8CONTEXT_HANDLER_CTOCPP_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 @@
|
||||
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
CefString CefV8ExceptionCToCpp::GetMessage()
|
||||
{
|
||||
CefString CefV8ExceptionCToCpp::GetMessage() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_message))
|
||||
return CefString();
|
||||
|
||||
@@ -31,8 +30,7 @@ CefString CefV8ExceptionCToCpp::GetMessage()
|
||||
return _retvalStr;
|
||||
}
|
||||
|
||||
CefString CefV8ExceptionCToCpp::GetSourceLine()
|
||||
{
|
||||
CefString CefV8ExceptionCToCpp::GetSourceLine() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_source_line))
|
||||
return CefString();
|
||||
|
||||
@@ -47,8 +45,7 @@ CefString CefV8ExceptionCToCpp::GetSourceLine()
|
||||
return _retvalStr;
|
||||
}
|
||||
|
||||
CefString CefV8ExceptionCToCpp::GetScriptResourceName()
|
||||
{
|
||||
CefString CefV8ExceptionCToCpp::GetScriptResourceName() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_script_resource_name))
|
||||
return CefString();
|
||||
|
||||
@@ -63,8 +60,7 @@ CefString CefV8ExceptionCToCpp::GetScriptResourceName()
|
||||
return _retvalStr;
|
||||
}
|
||||
|
||||
int CefV8ExceptionCToCpp::GetLineNumber()
|
||||
{
|
||||
int CefV8ExceptionCToCpp::GetLineNumber() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_line_number))
|
||||
return 0;
|
||||
|
||||
@@ -77,8 +73,7 @@ int CefV8ExceptionCToCpp::GetLineNumber()
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CefV8ExceptionCToCpp::GetStartPosition()
|
||||
{
|
||||
int CefV8ExceptionCToCpp::GetStartPosition() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_start_position))
|
||||
return 0;
|
||||
|
||||
@@ -91,8 +86,7 @@ int CefV8ExceptionCToCpp::GetStartPosition()
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CefV8ExceptionCToCpp::GetEndPosition()
|
||||
{
|
||||
int CefV8ExceptionCToCpp::GetEndPosition() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_end_position))
|
||||
return 0;
|
||||
|
||||
@@ -105,8 +99,7 @@ int CefV8ExceptionCToCpp::GetEndPosition()
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CefV8ExceptionCToCpp::GetStartColumn()
|
||||
{
|
||||
int CefV8ExceptionCToCpp::GetStartColumn() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_start_column))
|
||||
return 0;
|
||||
|
||||
@@ -119,8 +112,7 @@ int CefV8ExceptionCToCpp::GetStartColumn()
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CefV8ExceptionCToCpp::GetEndColumn()
|
||||
{
|
||||
int CefV8ExceptionCToCpp::GetEndColumn() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_end_column))
|
||||
return 0;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _V8EXCEPTION_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_V8EXCEPTION_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_V8EXCEPTION_CTOCPP_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,10 +29,10 @@
|
||||
// Wrap a C structure with a C++ class.
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefV8ExceptionCToCpp
|
||||
: public CefCToCpp<CefV8ExceptionCToCpp, CefV8Exception, cef_v8exception_t>
|
||||
{
|
||||
public:
|
||||
CefV8ExceptionCToCpp(cef_v8exception_t* str)
|
||||
: public CefCToCpp<CefV8ExceptionCToCpp, CefV8Exception,
|
||||
cef_v8exception_t> {
|
||||
public:
|
||||
explicit CefV8ExceptionCToCpp(cef_v8exception_t* str)
|
||||
: CefCToCpp<CefV8ExceptionCToCpp, CefV8Exception, cef_v8exception_t>(
|
||||
str) {}
|
||||
virtual ~CefV8ExceptionCToCpp() {}
|
||||
@@ -47,6 +48,6 @@ public:
|
||||
virtual int GetEndColumn() OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _V8EXCEPTION_CTOCPP_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_V8EXCEPTION_CTOCPP_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 @@
|
||||
|
||||
bool CefV8HandlerCToCpp::Execute(const CefString& name,
|
||||
CefRefPtr<CefV8Value> object, const CefV8ValueList& arguments,
|
||||
CefRefPtr<CefV8Value>& retval, CefString& exception)
|
||||
{
|
||||
CefRefPtr<CefV8Value>& retval, CefString& exception) {
|
||||
if (CEF_MEMBER_MISSING(struct_, execute))
|
||||
return false;
|
||||
|
||||
@@ -48,7 +47,7 @@ bool CefV8HandlerCToCpp::Execute(const CefString& name,
|
||||
}
|
||||
// Translate param: retval; type: refptr_diff_byref
|
||||
cef_v8value_t* retvalStruct = NULL;
|
||||
if(retval.get())
|
||||
if (retval.get())
|
||||
retvalStruct = CefV8ValueCppToC::Wrap(retval);
|
||||
cef_v8value_t* retvalOrig = retvalStruct;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _V8HANDLER_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_V8HANDLER_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_V8HANDLER_CTOCPP_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,10 +29,9 @@
|
||||
// Wrap a C structure with a C++ class.
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefV8HandlerCToCpp
|
||||
: public CefCToCpp<CefV8HandlerCToCpp, CefV8Handler, cef_v8handler_t>
|
||||
{
|
||||
public:
|
||||
CefV8HandlerCToCpp(cef_v8handler_t* str)
|
||||
: public CefCToCpp<CefV8HandlerCToCpp, CefV8Handler, cef_v8handler_t> {
|
||||
public:
|
||||
explicit CefV8HandlerCToCpp(cef_v8handler_t* str)
|
||||
: CefCToCpp<CefV8HandlerCToCpp, CefV8Handler, cef_v8handler_t>(str) {}
|
||||
virtual ~CefV8HandlerCToCpp() {}
|
||||
|
||||
@@ -41,6 +41,6 @@ public:
|
||||
CefString& exception) OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _V8HANDLER_CTOCPP_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_V8HANDLER_CTOCPP_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 @@
|
||||
|
||||
// STATIC METHODS - Body may be edited by hand.
|
||||
|
||||
CefRefPtr<CefV8Value> CefV8Value::CreateUndefined()
|
||||
{
|
||||
CefRefPtr<CefV8Value> CefV8Value::CreateUndefined() {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
@@ -32,8 +31,7 @@ CefRefPtr<CefV8Value> CefV8Value::CreateUndefined()
|
||||
return CefV8ValueCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
CefRefPtr<CefV8Value> CefV8Value::CreateNull()
|
||||
{
|
||||
CefRefPtr<CefV8Value> CefV8Value::CreateNull() {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
@@ -43,8 +41,7 @@ CefRefPtr<CefV8Value> CefV8Value::CreateNull()
|
||||
return CefV8ValueCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
CefRefPtr<CefV8Value> CefV8Value::CreateBool(bool value)
|
||||
{
|
||||
CefRefPtr<CefV8Value> CefV8Value::CreateBool(bool value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
@@ -55,8 +52,7 @@ CefRefPtr<CefV8Value> CefV8Value::CreateBool(bool value)
|
||||
return CefV8ValueCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
CefRefPtr<CefV8Value> CefV8Value::CreateInt(int value)
|
||||
{
|
||||
CefRefPtr<CefV8Value> CefV8Value::CreateInt(int value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
@@ -67,8 +63,7 @@ CefRefPtr<CefV8Value> CefV8Value::CreateInt(int value)
|
||||
return CefV8ValueCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
CefRefPtr<CefV8Value> CefV8Value::CreateDouble(double value)
|
||||
{
|
||||
CefRefPtr<CefV8Value> CefV8Value::CreateDouble(double value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
@@ -79,8 +74,7 @@ CefRefPtr<CefV8Value> CefV8Value::CreateDouble(double value)
|
||||
return CefV8ValueCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
CefRefPtr<CefV8Value> CefV8Value::CreateDate(const CefTime& date)
|
||||
{
|
||||
CefRefPtr<CefV8Value> CefV8Value::CreateDate(const CefTime& date) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
@@ -91,8 +85,7 @@ CefRefPtr<CefV8Value> CefV8Value::CreateDate(const CefTime& date)
|
||||
return CefV8ValueCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
CefRefPtr<CefV8Value> CefV8Value::CreateString(const CefString& value)
|
||||
{
|
||||
CefRefPtr<CefV8Value> CefV8Value::CreateString(const CefString& value) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Unverified params: value
|
||||
@@ -106,8 +99,7 @@ CefRefPtr<CefV8Value> CefV8Value::CreateString(const CefString& value)
|
||||
}
|
||||
|
||||
CefRefPtr<CefV8Value> CefV8Value::CreateObject(CefRefPtr<CefBase> user_data,
|
||||
CefRefPtr<CefV8Accessor> accessor)
|
||||
{
|
||||
CefRefPtr<CefV8Accessor> accessor) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Unverified params: user_data, accessor
|
||||
@@ -121,8 +113,7 @@ CefRefPtr<CefV8Value> CefV8Value::CreateObject(CefRefPtr<CefBase> user_data,
|
||||
return CefV8ValueCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
CefRefPtr<CefV8Value> CefV8Value::CreateArray()
|
||||
{
|
||||
CefRefPtr<CefV8Value> CefV8Value::CreateArray() {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
@@ -133,8 +124,7 @@ CefRefPtr<CefV8Value> CefV8Value::CreateArray()
|
||||
}
|
||||
|
||||
CefRefPtr<CefV8Value> CefV8Value::CreateFunction(const CefString& name,
|
||||
CefRefPtr<CefV8Handler> handler)
|
||||
{
|
||||
CefRefPtr<CefV8Handler> handler) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: name; type: string_byref_const
|
||||
@@ -158,8 +148,7 @@ CefRefPtr<CefV8Value> CefV8Value::CreateFunction(const CefString& name,
|
||||
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
bool CefV8ValueCToCpp::IsUndefined()
|
||||
{
|
||||
bool CefV8ValueCToCpp::IsUndefined() {
|
||||
if (CEF_MEMBER_MISSING(struct_, is_undefined))
|
||||
return false;
|
||||
|
||||
@@ -172,8 +161,7 @@ bool CefV8ValueCToCpp::IsUndefined()
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::IsNull()
|
||||
{
|
||||
bool CefV8ValueCToCpp::IsNull() {
|
||||
if (CEF_MEMBER_MISSING(struct_, is_null))
|
||||
return false;
|
||||
|
||||
@@ -186,8 +174,7 @@ bool CefV8ValueCToCpp::IsNull()
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::IsBool()
|
||||
{
|
||||
bool CefV8ValueCToCpp::IsBool() {
|
||||
if (CEF_MEMBER_MISSING(struct_, is_bool))
|
||||
return false;
|
||||
|
||||
@@ -200,8 +187,7 @@ bool CefV8ValueCToCpp::IsBool()
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::IsInt()
|
||||
{
|
||||
bool CefV8ValueCToCpp::IsInt() {
|
||||
if (CEF_MEMBER_MISSING(struct_, is_int))
|
||||
return false;
|
||||
|
||||
@@ -214,8 +200,7 @@ bool CefV8ValueCToCpp::IsInt()
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::IsDouble()
|
||||
{
|
||||
bool CefV8ValueCToCpp::IsDouble() {
|
||||
if (CEF_MEMBER_MISSING(struct_, is_double))
|
||||
return false;
|
||||
|
||||
@@ -228,8 +213,7 @@ bool CefV8ValueCToCpp::IsDouble()
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::IsDate()
|
||||
{
|
||||
bool CefV8ValueCToCpp::IsDate() {
|
||||
if (CEF_MEMBER_MISSING(struct_, is_date))
|
||||
return false;
|
||||
|
||||
@@ -242,8 +226,7 @@ bool CefV8ValueCToCpp::IsDate()
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::IsString()
|
||||
{
|
||||
bool CefV8ValueCToCpp::IsString() {
|
||||
if (CEF_MEMBER_MISSING(struct_, is_string))
|
||||
return false;
|
||||
|
||||
@@ -256,8 +239,7 @@ bool CefV8ValueCToCpp::IsString()
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::IsObject()
|
||||
{
|
||||
bool CefV8ValueCToCpp::IsObject() {
|
||||
if (CEF_MEMBER_MISSING(struct_, is_object))
|
||||
return false;
|
||||
|
||||
@@ -270,8 +252,7 @@ bool CefV8ValueCToCpp::IsObject()
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::IsArray()
|
||||
{
|
||||
bool CefV8ValueCToCpp::IsArray() {
|
||||
if (CEF_MEMBER_MISSING(struct_, is_array))
|
||||
return false;
|
||||
|
||||
@@ -284,8 +265,7 @@ bool CefV8ValueCToCpp::IsArray()
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::IsFunction()
|
||||
{
|
||||
bool CefV8ValueCToCpp::IsFunction() {
|
||||
if (CEF_MEMBER_MISSING(struct_, is_function))
|
||||
return false;
|
||||
|
||||
@@ -298,8 +278,7 @@ bool CefV8ValueCToCpp::IsFunction()
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::IsSame(CefRefPtr<CefV8Value> that)
|
||||
{
|
||||
bool CefV8ValueCToCpp::IsSame(CefRefPtr<CefV8Value> that) {
|
||||
if (CEF_MEMBER_MISSING(struct_, is_same))
|
||||
return false;
|
||||
|
||||
@@ -318,8 +297,7 @@ bool CefV8ValueCToCpp::IsSame(CefRefPtr<CefV8Value> that)
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::GetBoolValue()
|
||||
{
|
||||
bool CefV8ValueCToCpp::GetBoolValue() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_bool_value))
|
||||
return false;
|
||||
|
||||
@@ -332,8 +310,7 @@ bool CefV8ValueCToCpp::GetBoolValue()
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
int CefV8ValueCToCpp::GetIntValue()
|
||||
{
|
||||
int CefV8ValueCToCpp::GetIntValue() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_int_value))
|
||||
return 0;
|
||||
|
||||
@@ -346,8 +323,7 @@ int CefV8ValueCToCpp::GetIntValue()
|
||||
return _retval;
|
||||
}
|
||||
|
||||
double CefV8ValueCToCpp::GetDoubleValue()
|
||||
{
|
||||
double CefV8ValueCToCpp::GetDoubleValue() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_double_value))
|
||||
return 0;
|
||||
|
||||
@@ -360,8 +336,7 @@ double CefV8ValueCToCpp::GetDoubleValue()
|
||||
return _retval;
|
||||
}
|
||||
|
||||
CefTime CefV8ValueCToCpp::GetDateValue()
|
||||
{
|
||||
CefTime CefV8ValueCToCpp::GetDateValue() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_date_value))
|
||||
return CefTime();
|
||||
|
||||
@@ -374,8 +349,7 @@ CefTime CefV8ValueCToCpp::GetDateValue()
|
||||
return _retval;
|
||||
}
|
||||
|
||||
CefString CefV8ValueCToCpp::GetStringValue()
|
||||
{
|
||||
CefString CefV8ValueCToCpp::GetStringValue() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_string_value))
|
||||
return CefString();
|
||||
|
||||
@@ -390,8 +364,7 @@ CefString CefV8ValueCToCpp::GetStringValue()
|
||||
return _retvalStr;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::HasValue(const CefString& key)
|
||||
{
|
||||
bool CefV8ValueCToCpp::HasValue(const CefString& key) {
|
||||
if (CEF_MEMBER_MISSING(struct_, has_value_bykey))
|
||||
return false;
|
||||
|
||||
@@ -410,15 +383,14 @@ bool CefV8ValueCToCpp::HasValue(const CefString& key)
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::HasValue(int index)
|
||||
{
|
||||
bool CefV8ValueCToCpp::HasValue(int index) {
|
||||
if (CEF_MEMBER_MISSING(struct_, has_value_byindex))
|
||||
return false;
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: index; type: simple_byval
|
||||
DCHECK(index >= 0);
|
||||
DCHECK_GE(index, 0);
|
||||
if (index < 0)
|
||||
return false;
|
||||
|
||||
@@ -430,8 +402,7 @@ bool CefV8ValueCToCpp::HasValue(int index)
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::DeleteValue(const CefString& key)
|
||||
{
|
||||
bool CefV8ValueCToCpp::DeleteValue(const CefString& key) {
|
||||
if (CEF_MEMBER_MISSING(struct_, delete_value_bykey))
|
||||
return false;
|
||||
|
||||
@@ -450,15 +421,14 @@ bool CefV8ValueCToCpp::DeleteValue(const CefString& key)
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::DeleteValue(int index)
|
||||
{
|
||||
bool CefV8ValueCToCpp::DeleteValue(int index) {
|
||||
if (CEF_MEMBER_MISSING(struct_, delete_value_byindex))
|
||||
return false;
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: index; type: simple_byval
|
||||
DCHECK(index >= 0);
|
||||
DCHECK_GE(index, 0);
|
||||
if (index < 0)
|
||||
return false;
|
||||
|
||||
@@ -470,8 +440,7 @@ bool CefV8ValueCToCpp::DeleteValue(int index)
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
CefRefPtr<CefV8Value> CefV8ValueCToCpp::GetValue(const CefString& key)
|
||||
{
|
||||
CefRefPtr<CefV8Value> CefV8ValueCToCpp::GetValue(const CefString& key) {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_value_bykey))
|
||||
return NULL;
|
||||
|
||||
@@ -490,15 +459,14 @@ CefRefPtr<CefV8Value> CefV8ValueCToCpp::GetValue(const CefString& key)
|
||||
return CefV8ValueCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
CefRefPtr<CefV8Value> CefV8ValueCToCpp::GetValue(int index)
|
||||
{
|
||||
CefRefPtr<CefV8Value> CefV8ValueCToCpp::GetValue(int index) {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_value_byindex))
|
||||
return NULL;
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: index; type: simple_byval
|
||||
DCHECK(index >= 0);
|
||||
DCHECK_GE(index, 0);
|
||||
if (index < 0)
|
||||
return NULL;
|
||||
|
||||
@@ -511,8 +479,7 @@ CefRefPtr<CefV8Value> CefV8ValueCToCpp::GetValue(int index)
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::SetValue(const CefString& key,
|
||||
CefRefPtr<CefV8Value> value, PropertyAttribute attribute)
|
||||
{
|
||||
CefRefPtr<CefV8Value> value, PropertyAttribute attribute) {
|
||||
if (CEF_MEMBER_MISSING(struct_, set_value_bykey))
|
||||
return false;
|
||||
|
||||
@@ -537,15 +504,14 @@ bool CefV8ValueCToCpp::SetValue(const CefString& key,
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::SetValue(int index, CefRefPtr<CefV8Value> value)
|
||||
{
|
||||
bool CefV8ValueCToCpp::SetValue(int index, CefRefPtr<CefV8Value> value) {
|
||||
if (CEF_MEMBER_MISSING(struct_, set_value_byindex))
|
||||
return false;
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: index; type: simple_byval
|
||||
DCHECK(index >= 0);
|
||||
DCHECK_GE(index, 0);
|
||||
if (index < 0)
|
||||
return false;
|
||||
// Verify param: value; type: refptr_same
|
||||
@@ -563,8 +529,7 @@ bool CefV8ValueCToCpp::SetValue(int index, CefRefPtr<CefV8Value> value)
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::SetValue(const CefString& key, AccessControl settings,
|
||||
PropertyAttribute attribute)
|
||||
{
|
||||
PropertyAttribute attribute) {
|
||||
if (CEF_MEMBER_MISSING(struct_, set_value_byaccessor))
|
||||
return false;
|
||||
|
||||
@@ -585,8 +550,7 @@ bool CefV8ValueCToCpp::SetValue(const CefString& key, AccessControl settings,
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
bool CefV8ValueCToCpp::GetKeys(std::vector<CefString>& keys)
|
||||
{
|
||||
bool CefV8ValueCToCpp::GetKeys(std::vector<CefString>& keys) {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_keys))
|
||||
return false;
|
||||
|
||||
@@ -613,8 +577,7 @@ bool CefV8ValueCToCpp::GetKeys(std::vector<CefString>& keys)
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
CefRefPtr<CefBase> CefV8ValueCToCpp::GetUserData()
|
||||
{
|
||||
CefRefPtr<CefBase> CefV8ValueCToCpp::GetUserData() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_user_data))
|
||||
return NULL;
|
||||
|
||||
@@ -627,8 +590,7 @@ CefRefPtr<CefBase> CefV8ValueCToCpp::GetUserData()
|
||||
return CefBaseCppToC::Unwrap(_retval);
|
||||
}
|
||||
|
||||
int CefV8ValueCToCpp::GetArrayLength()
|
||||
{
|
||||
int CefV8ValueCToCpp::GetArrayLength() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_array_length))
|
||||
return 0;
|
||||
|
||||
@@ -641,8 +603,7 @@ int CefV8ValueCToCpp::GetArrayLength()
|
||||
return _retval;
|
||||
}
|
||||
|
||||
CefString CefV8ValueCToCpp::GetFunctionName()
|
||||
{
|
||||
CefString CefV8ValueCToCpp::GetFunctionName() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_function_name))
|
||||
return CefString();
|
||||
|
||||
@@ -657,8 +618,7 @@ CefString CefV8ValueCToCpp::GetFunctionName()
|
||||
return _retvalStr;
|
||||
}
|
||||
|
||||
CefRefPtr<CefV8Handler> CefV8ValueCToCpp::GetFunctionHandler()
|
||||
{
|
||||
CefRefPtr<CefV8Handler> CefV8ValueCToCpp::GetFunctionHandler() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_function_handler))
|
||||
return NULL;
|
||||
|
||||
@@ -673,8 +633,7 @@ CefRefPtr<CefV8Handler> CefV8ValueCToCpp::GetFunctionHandler()
|
||||
|
||||
bool CefV8ValueCToCpp::ExecuteFunction(CefRefPtr<CefV8Value> object,
|
||||
const CefV8ValueList& arguments, CefRefPtr<CefV8Value>& retval,
|
||||
CefRefPtr<CefV8Exception>& exception, bool rethrow_exception)
|
||||
{
|
||||
CefRefPtr<CefV8Exception>& exception, bool rethrow_exception) {
|
||||
if (CEF_MEMBER_MISSING(struct_, execute_function))
|
||||
return false;
|
||||
|
||||
@@ -696,12 +655,12 @@ bool CefV8ValueCToCpp::ExecuteFunction(CefRefPtr<CefV8Value> object,
|
||||
}
|
||||
// Translate param: retval; type: refptr_same_byref
|
||||
cef_v8value_t* retvalStruct = NULL;
|
||||
if(retval.get())
|
||||
if (retval.get())
|
||||
retvalStruct = CefV8ValueCToCpp::Unwrap(retval);
|
||||
cef_v8value_t* retvalOrig = retvalStruct;
|
||||
// Translate param: exception; type: refptr_same_byref
|
||||
cef_v8exception_t* exceptionStruct = NULL;
|
||||
if(exception.get())
|
||||
if (exception.get())
|
||||
exceptionStruct = CefV8ExceptionCToCpp::Unwrap(exception);
|
||||
cef_v8exception_t* exceptionOrig = exceptionStruct;
|
||||
|
||||
@@ -738,8 +697,7 @@ bool CefV8ValueCToCpp::ExecuteFunction(CefRefPtr<CefV8Value> object,
|
||||
bool CefV8ValueCToCpp::ExecuteFunctionWithContext(
|
||||
CefRefPtr<CefV8Context> context, CefRefPtr<CefV8Value> object,
|
||||
const CefV8ValueList& arguments, CefRefPtr<CefV8Value>& retval,
|
||||
CefRefPtr<CefV8Exception>& exception, bool rethrow_exception)
|
||||
{
|
||||
CefRefPtr<CefV8Exception>& exception, bool rethrow_exception) {
|
||||
if (CEF_MEMBER_MISSING(struct_, execute_function_with_context))
|
||||
return false;
|
||||
|
||||
@@ -765,12 +723,12 @@ bool CefV8ValueCToCpp::ExecuteFunctionWithContext(
|
||||
}
|
||||
// Translate param: retval; type: refptr_same_byref
|
||||
cef_v8value_t* retvalStruct = NULL;
|
||||
if(retval.get())
|
||||
if (retval.get())
|
||||
retvalStruct = CefV8ValueCToCpp::Unwrap(retval);
|
||||
cef_v8value_t* retvalOrig = retvalStruct;
|
||||
// Translate param: exception; type: refptr_same_byref
|
||||
cef_v8exception_t* exceptionStruct = NULL;
|
||||
if(exception.get())
|
||||
if (exception.get())
|
||||
exceptionStruct = CefV8ExceptionCToCpp::Unwrap(exception);
|
||||
cef_v8exception_t* exceptionOrig = exceptionStruct;
|
||||
|
||||
|
@@ -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,13 +10,15 @@
|
||||
// for more information.
|
||||
//
|
||||
|
||||
#ifndef _V8VALUE_CTOCPP_H
|
||||
#define _V8VALUE_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_V8VALUE_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_V8VALUE_CTOCPP_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 <vector>
|
||||
#include "include/cef_v8.h"
|
||||
#include "include/capi/cef_v8_capi.h"
|
||||
#include "include/cef_browser.h"
|
||||
@@ -28,10 +30,9 @@
|
||||
// Wrap a C structure with a C++ class.
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefV8ValueCToCpp
|
||||
: public CefCToCpp<CefV8ValueCToCpp, CefV8Value, cef_v8value_t>
|
||||
{
|
||||
public:
|
||||
CefV8ValueCToCpp(cef_v8value_t* str)
|
||||
: public CefCToCpp<CefV8ValueCToCpp, CefV8Value, cef_v8value_t> {
|
||||
public:
|
||||
explicit CefV8ValueCToCpp(cef_v8value_t* str)
|
||||
: CefCToCpp<CefV8ValueCToCpp, CefV8Value, cef_v8value_t>(str) {}
|
||||
virtual ~CefV8ValueCToCpp() {}
|
||||
|
||||
@@ -77,6 +78,6 @@ public:
|
||||
bool rethrow_exception) OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _V8VALUE_CTOCPP_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_V8VALUE_CTOCPP_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 @@
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
void CefWebURLRequestClientCToCpp::OnStateChange(
|
||||
CefRefPtr<CefWebURLRequest> requester, RequestState state)
|
||||
{
|
||||
CefRefPtr<CefWebURLRequest> requester, RequestState state) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_state_change))
|
||||
return;
|
||||
|
||||
@@ -39,8 +38,7 @@ void CefWebURLRequestClientCToCpp::OnStateChange(
|
||||
|
||||
void CefWebURLRequestClientCToCpp::OnRedirect(
|
||||
CefRefPtr<CefWebURLRequest> requester, CefRefPtr<CefRequest> request,
|
||||
CefRefPtr<CefResponse> response)
|
||||
{
|
||||
CefRefPtr<CefResponse> response) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_redirect))
|
||||
return;
|
||||
|
||||
@@ -67,8 +65,7 @@ void CefWebURLRequestClientCToCpp::OnRedirect(
|
||||
}
|
||||
|
||||
void CefWebURLRequestClientCToCpp::OnHeadersReceived(
|
||||
CefRefPtr<CefWebURLRequest> requester, CefRefPtr<CefResponse> response)
|
||||
{
|
||||
CefRefPtr<CefWebURLRequest> requester, CefRefPtr<CefResponse> response) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_headers_received))
|
||||
return;
|
||||
|
||||
@@ -91,8 +88,7 @@ void CefWebURLRequestClientCToCpp::OnHeadersReceived(
|
||||
|
||||
void CefWebURLRequestClientCToCpp::OnProgress(
|
||||
CefRefPtr<CefWebURLRequest> requester, uint64 bytesSent,
|
||||
uint64 totalBytesToBeSent)
|
||||
{
|
||||
uint64 totalBytesToBeSent) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_progress))
|
||||
return;
|
||||
|
||||
@@ -111,8 +107,7 @@ void CefWebURLRequestClientCToCpp::OnProgress(
|
||||
}
|
||||
|
||||
void CefWebURLRequestClientCToCpp::OnData(CefRefPtr<CefWebURLRequest> requester,
|
||||
const void* data, int dataLength)
|
||||
{
|
||||
const void* data, int dataLength) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_data))
|
||||
return;
|
||||
|
||||
@@ -135,8 +130,7 @@ void CefWebURLRequestClientCToCpp::OnData(CefRefPtr<CefWebURLRequest> requester,
|
||||
}
|
||||
|
||||
void CefWebURLRequestClientCToCpp::OnError(
|
||||
CefRefPtr<CefWebURLRequest> requester, ErrorCode errorCode)
|
||||
{
|
||||
CefRefPtr<CefWebURLRequest> requester, ErrorCode errorCode) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_error))
|
||||
return;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _WEBURLREQUESTCLIENT_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_WEB_URLREQUEST_CLIENT_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_WEB_URLREQUEST_CLIENT_CTOCPP_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,10 +30,9 @@
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefWebURLRequestClientCToCpp
|
||||
: public CefCToCpp<CefWebURLRequestClientCToCpp, CefWebURLRequestClient,
|
||||
cef_web_urlrequest_client_t>
|
||||
{
|
||||
public:
|
||||
CefWebURLRequestClientCToCpp(cef_web_urlrequest_client_t* str)
|
||||
cef_web_urlrequest_client_t> {
|
||||
public:
|
||||
explicit CefWebURLRequestClientCToCpp(cef_web_urlrequest_client_t* str)
|
||||
: CefCToCpp<CefWebURLRequestClientCToCpp, CefWebURLRequestClient,
|
||||
cef_web_urlrequest_client_t>(str) {}
|
||||
virtual ~CefWebURLRequestClientCToCpp() {}
|
||||
@@ -53,6 +53,6 @@ public:
|
||||
ErrorCode errorCode) OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _WEBURLREQUESTCLIENT_CTOCPP_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_WEB_URLREQUEST_CLIENT_CTOCPP_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 @@
|
||||
// STATIC METHODS - Body may be edited by hand.
|
||||
|
||||
CefRefPtr<CefWebURLRequest> CefWebURLRequest::CreateWebURLRequest(
|
||||
CefRefPtr<CefRequest> request, CefRefPtr<CefWebURLRequestClient> client)
|
||||
{
|
||||
CefRefPtr<CefRequest> request, CefRefPtr<CefWebURLRequestClient> client) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: request; type: refptr_same
|
||||
@@ -43,8 +42,7 @@ CefRefPtr<CefWebURLRequest> CefWebURLRequest::CreateWebURLRequest(
|
||||
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
void CefWebURLRequestCToCpp::Cancel()
|
||||
{
|
||||
void CefWebURLRequestCToCpp::Cancel() {
|
||||
if (CEF_MEMBER_MISSING(struct_, cancel))
|
||||
return;
|
||||
|
||||
@@ -54,8 +52,7 @@ void CefWebURLRequestCToCpp::Cancel()
|
||||
struct_->cancel(struct_);
|
||||
}
|
||||
|
||||
CefWebURLRequest::RequestState CefWebURLRequestCToCpp::GetState()
|
||||
{
|
||||
CefWebURLRequest::RequestState CefWebURLRequestCToCpp::GetState() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_state))
|
||||
return WUR_STATE_UNSENT;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _WEBURLREQUEST_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_WEB_URLREQUEST_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_WEB_URLREQUEST_CTOCPP_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,10 +30,9 @@
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefWebURLRequestCToCpp
|
||||
: public CefCToCpp<CefWebURLRequestCToCpp, CefWebURLRequest,
|
||||
cef_web_urlrequest_t>
|
||||
{
|
||||
public:
|
||||
CefWebURLRequestCToCpp(cef_web_urlrequest_t* str)
|
||||
cef_web_urlrequest_t> {
|
||||
public:
|
||||
explicit CefWebURLRequestCToCpp(cef_web_urlrequest_t* str)
|
||||
: CefCToCpp<CefWebURLRequestCToCpp, CefWebURLRequest,
|
||||
cef_web_urlrequest_t>(str) {}
|
||||
virtual ~CefWebURLRequestCToCpp() {}
|
||||
@@ -42,6 +42,6 @@ public:
|
||||
virtual RequestState GetState() OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // _WEBURLREQUEST_CTOCPP_H
|
||||
#endif // USING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_WEB_URLREQUEST_CTOCPP_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 @@
|
||||
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
size_t CefWriteHandlerCToCpp::Write(const void* ptr, size_t size, size_t n)
|
||||
{
|
||||
size_t CefWriteHandlerCToCpp::Write(const void* ptr, size_t size, size_t n) {
|
||||
if (CEF_MEMBER_MISSING(struct_, write))
|
||||
return 0;
|
||||
|
||||
@@ -37,8 +36,7 @@ size_t CefWriteHandlerCToCpp::Write(const void* ptr, size_t size, size_t n)
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CefWriteHandlerCToCpp::Seek(long offset, int whence)
|
||||
{
|
||||
int CefWriteHandlerCToCpp::Seek(int64 offset, int whence) {
|
||||
if (CEF_MEMBER_MISSING(struct_, seek))
|
||||
return 0;
|
||||
|
||||
@@ -53,22 +51,20 @@ int CefWriteHandlerCToCpp::Seek(long offset, int whence)
|
||||
return _retval;
|
||||
}
|
||||
|
||||
long CefWriteHandlerCToCpp::Tell()
|
||||
{
|
||||
int64 CefWriteHandlerCToCpp::Tell() {
|
||||
if (CEF_MEMBER_MISSING(struct_, tell))
|
||||
return 0;
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
long _retval = struct_->tell(struct_);
|
||||
int64 _retval = struct_->tell(struct_);
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CefWriteHandlerCToCpp::Flush()
|
||||
{
|
||||
int CefWriteHandlerCToCpp::Flush() {
|
||||
if (CEF_MEMBER_MISSING(struct_, flush))
|
||||
return 0;
|
||||
|
||||
|
@@ -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_CTOCPP_H
|
||||
#define _WRITEHANDLER_CTOCPP_H
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_WRITE_HANDLER_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_WRITE_HANDLER_CTOCPP_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,21 +26,20 @@
|
||||
// This class may be instantiated and accessed DLL-side only.
|
||||
class CefWriteHandlerCToCpp
|
||||
: public CefCToCpp<CefWriteHandlerCToCpp, CefWriteHandler,
|
||||
cef_write_handler_t>
|
||||
{
|
||||
public:
|
||||
CefWriteHandlerCToCpp(cef_write_handler_t* str)
|
||||
cef_write_handler_t> {
|
||||
public:
|
||||
explicit CefWriteHandlerCToCpp(cef_write_handler_t* str)
|
||||
: CefCToCpp<CefWriteHandlerCToCpp, CefWriteHandler, cef_write_handler_t>(
|
||||
str) {}
|
||||
virtual ~CefWriteHandlerCToCpp() {}
|
||||
|
||||
// CefWriteHandler methods
|
||||
virtual size_t Write(const void* ptr, size_t size, size_t n) OVERRIDE;
|
||||
virtual int Seek(long offset, int whence) OVERRIDE;
|
||||
virtual long Tell() OVERRIDE;
|
||||
virtual int Seek(int64 offset, int whence) OVERRIDE;
|
||||
virtual int64 Tell() OVERRIDE;
|
||||
virtual int Flush() OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // _WRITEHANDLER_CTOCPP_H
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
#endif // CEF_LIBCEF_DLL_CTOCPP_WRITE_HANDLER_CTOCPP_H_
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user