- Add CefValue for wrapping various value types in a single object (issue #1607).

- Add IsSame() and IsEqual() methods for comparing CefValue* types.
- Improve CefValue* documentation.
This commit is contained in:
Marshall Greenblatt
2015-04-15 15:45:30 +02:00
parent 740ad72f90
commit 0369063810
23 changed files with 3281 additions and 185 deletions

View File

@ -64,6 +64,46 @@ int CEF_CALLBACK binary_value_is_owned(struct _cef_binary_value_t* self) {
return _retval;
}
int CEF_CALLBACK binary_value_is_same(struct _cef_binary_value_t* self,
struct _cef_binary_value_t* that) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return 0;
// Verify param: that; type: refptr_same
DCHECK(that);
if (!that)
return 0;
// Execute
bool _retval = CefBinaryValueCppToC::Get(self)->IsSame(
CefBinaryValueCppToC::Unwrap(that));
// Return type: bool
return _retval;
}
int CEF_CALLBACK binary_value_is_equal(struct _cef_binary_value_t* self,
struct _cef_binary_value_t* that) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return 0;
// Verify param: that; type: refptr_same
DCHECK(that);
if (!that)
return 0;
// Execute
bool _retval = CefBinaryValueCppToC::Get(self)->IsEqual(
CefBinaryValueCppToC::Unwrap(that));
// Return type: bool
return _retval;
}
struct _cef_binary_value_t* CEF_CALLBACK binary_value_copy(
struct _cef_binary_value_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
@ -122,6 +162,8 @@ CefBinaryValueCppToC::CefBinaryValueCppToC(CefBinaryValue* cls)
: CefCppToC<CefBinaryValueCppToC, CefBinaryValue, cef_binary_value_t>(cls) {
struct_.struct_.is_valid = binary_value_is_valid;
struct_.struct_.is_owned = binary_value_is_owned;
struct_.struct_.is_same = binary_value_is_same;
struct_.struct_.is_equal = binary_value_is_equal;
struct_.struct_.copy = binary_value_copy;
struct_.struct_.get_size = binary_value_get_size;
struct_.struct_.get_data = binary_value_get_data;

View File

@ -13,6 +13,7 @@
#include "libcef_dll/cpptoc/binary_value_cpptoc.h"
#include "libcef_dll/cpptoc/dictionary_value_cpptoc.h"
#include "libcef_dll/cpptoc/list_value_cpptoc.h"
#include "libcef_dll/cpptoc/value_cpptoc.h"
#include "libcef_dll/transfer_util.h"
@ -76,6 +77,46 @@ int CEF_CALLBACK dictionary_value_is_read_only(
return _retval;
}
int CEF_CALLBACK dictionary_value_is_same(struct _cef_dictionary_value_t* self,
struct _cef_dictionary_value_t* that) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return 0;
// Verify param: that; type: refptr_same
DCHECK(that);
if (!that)
return 0;
// Execute
bool _retval = CefDictionaryValueCppToC::Get(self)->IsSame(
CefDictionaryValueCppToC::Unwrap(that));
// Return type: bool
return _retval;
}
int CEF_CALLBACK dictionary_value_is_equal(struct _cef_dictionary_value_t* self,
struct _cef_dictionary_value_t* that) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return 0;
// Verify param: that; type: refptr_same
DCHECK(that);
if (!that)
return 0;
// Execute
bool _retval = CefDictionaryValueCppToC::Get(self)->IsEqual(
CefDictionaryValueCppToC::Unwrap(that));
// Return type: bool
return _retval;
}
struct _cef_dictionary_value_t* CEF_CALLBACK dictionary_value_copy(
struct _cef_dictionary_value_t* self, int exclude_empty_children) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
@ -210,6 +251,26 @@ cef_value_type_t CEF_CALLBACK dictionary_value_get_type(
return _retval;
}
cef_value_t* CEF_CALLBACK dictionary_value_get_value(
struct _cef_dictionary_value_t* self, const cef_string_t* key) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return NULL;
// Verify param: key; type: string_byref_const
DCHECK(key);
if (!key)
return NULL;
// Execute
CefRefPtr<CefValue> _retval = CefDictionaryValueCppToC::Get(self)->GetValue(
CefString(key));
// Return type: refptr_same
return CefValueCppToC::Wrap(_retval);
}
int CEF_CALLBACK dictionary_value_get_bool(struct _cef_dictionary_value_t* self,
const cef_string_t* key) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
@ -353,6 +414,32 @@ struct _cef_list_value_t* CEF_CALLBACK dictionary_value_get_list(
return CefListValueCppToC::Wrap(_retval);
}
int CEF_CALLBACK dictionary_value_set_value(
struct _cef_dictionary_value_t* self, const cef_string_t* key,
cef_value_t* value) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return 0;
// Verify param: key; type: string_byref_const
DCHECK(key);
if (!key)
return 0;
// Verify param: value; type: refptr_same
DCHECK(value);
if (!value)
return 0;
// Execute
bool _retval = CefDictionaryValueCppToC::Get(self)->SetValue(
CefString(key),
CefValueCppToC::Unwrap(value));
// Return type: bool
return _retval;
}
int CEF_CALLBACK dictionary_value_set_null(struct _cef_dictionary_value_t* self,
const cef_string_t* key) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
@ -546,6 +633,8 @@ CefDictionaryValueCppToC::CefDictionaryValueCppToC(CefDictionaryValue* cls)
struct_.struct_.is_valid = dictionary_value_is_valid;
struct_.struct_.is_owned = dictionary_value_is_owned;
struct_.struct_.is_read_only = dictionary_value_is_read_only;
struct_.struct_.is_same = dictionary_value_is_same;
struct_.struct_.is_equal = dictionary_value_is_equal;
struct_.struct_.copy = dictionary_value_copy;
struct_.struct_.get_size = dictionary_value_get_size;
struct_.struct_.clear = dictionary_value_clear;
@ -553,6 +642,7 @@ CefDictionaryValueCppToC::CefDictionaryValueCppToC(CefDictionaryValue* cls)
struct_.struct_.get_keys = dictionary_value_get_keys;
struct_.struct_.remove = dictionary_value_remove;
struct_.struct_.get_type = dictionary_value_get_type;
struct_.struct_.get_value = dictionary_value_get_value;
struct_.struct_.get_bool = dictionary_value_get_bool;
struct_.struct_.get_int = dictionary_value_get_int;
struct_.struct_.get_double = dictionary_value_get_double;
@ -560,6 +650,7 @@ CefDictionaryValueCppToC::CefDictionaryValueCppToC(CefDictionaryValue* cls)
struct_.struct_.get_binary = dictionary_value_get_binary;
struct_.struct_.get_dictionary = dictionary_value_get_dictionary;
struct_.struct_.get_list = dictionary_value_get_list;
struct_.struct_.set_value = dictionary_value_set_value;
struct_.struct_.set_null = dictionary_value_set_null;
struct_.struct_.set_bool = dictionary_value_set_bool;
struct_.struct_.set_int = dictionary_value_set_int;

View File

@ -13,6 +13,7 @@
#include "libcef_dll/cpptoc/binary_value_cpptoc.h"
#include "libcef_dll/cpptoc/dictionary_value_cpptoc.h"
#include "libcef_dll/cpptoc/list_value_cpptoc.h"
#include "libcef_dll/cpptoc/value_cpptoc.h"
// GLOBAL FUNCTIONS - Body may be edited by hand.
@ -72,6 +73,46 @@ int CEF_CALLBACK list_value_is_read_only(struct _cef_list_value_t* self) {
return _retval;
}
int CEF_CALLBACK list_value_is_same(struct _cef_list_value_t* self,
struct _cef_list_value_t* that) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return 0;
// Verify param: that; type: refptr_same
DCHECK(that);
if (!that)
return 0;
// Execute
bool _retval = CefListValueCppToC::Get(self)->IsSame(
CefListValueCppToC::Unwrap(that));
// Return type: bool
return _retval;
}
int CEF_CALLBACK list_value_is_equal(struct _cef_list_value_t* self,
struct _cef_list_value_t* that) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return 0;
// Verify param: that; type: refptr_same
DCHECK(that);
if (!that)
return 0;
// Execute
bool _retval = CefListValueCppToC::Get(self)->IsEqual(
CefListValueCppToC::Unwrap(that));
// Return type: bool
return _retval;
}
struct _cef_list_value_t* CEF_CALLBACK list_value_copy(
struct _cef_list_value_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
@ -170,6 +211,26 @@ cef_value_type_t CEF_CALLBACK list_value_get_type(
return _retval;
}
cef_value_t* CEF_CALLBACK list_value_get_value(struct _cef_list_value_t* self,
int index) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return NULL;
// Verify param: index; type: simple_byval
DCHECK_GE(index, 0);
if (index < 0)
return NULL;
// Execute
CefRefPtr<CefValue> _retval = CefListValueCppToC::Get(self)->GetValue(
index);
// Return type: refptr_same
return CefValueCppToC::Wrap(_retval);
}
int CEF_CALLBACK list_value_get_bool(struct _cef_list_value_t* self,
int index) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
@ -310,6 +371,31 @@ struct _cef_list_value_t* CEF_CALLBACK list_value_get_list(
return CefListValueCppToC::Wrap(_retval);
}
int CEF_CALLBACK list_value_set_value(struct _cef_list_value_t* self, int index,
cef_value_t* value) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return 0;
// Verify param: index; type: simple_byval
DCHECK_GE(index, 0);
if (index < 0)
return 0;
// Verify param: value; type: refptr_same
DCHECK(value);
if (!value)
return 0;
// Execute
bool _retval = CefListValueCppToC::Get(self)->SetValue(
index,
CefValueCppToC::Unwrap(value));
// Return type: bool
return _retval;
}
int CEF_CALLBACK list_value_set_null(struct _cef_list_value_t* self,
int index) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
@ -498,12 +584,15 @@ CefListValueCppToC::CefListValueCppToC(CefListValue* cls)
struct_.struct_.is_valid = list_value_is_valid;
struct_.struct_.is_owned = list_value_is_owned;
struct_.struct_.is_read_only = list_value_is_read_only;
struct_.struct_.is_same = list_value_is_same;
struct_.struct_.is_equal = list_value_is_equal;
struct_.struct_.copy = list_value_copy;
struct_.struct_.set_size = list_value_set_size;
struct_.struct_.get_size = list_value_get_size;
struct_.struct_.clear = list_value_clear;
struct_.struct_.remove = list_value_remove;
struct_.struct_.get_type = list_value_get_type;
struct_.struct_.get_value = list_value_get_value;
struct_.struct_.get_bool = list_value_get_bool;
struct_.struct_.get_int = list_value_get_int;
struct_.struct_.get_double = list_value_get_double;
@ -511,6 +600,7 @@ CefListValueCppToC::CefListValueCppToC(CefListValue* cls)
struct_.struct_.get_binary = list_value_get_binary;
struct_.struct_.get_dictionary = list_value_get_dictionary;
struct_.struct_.get_list = list_value_get_list;
struct_.struct_.set_value = list_value_set_value;
struct_.struct_.set_null = list_value_set_null;
struct_.struct_.set_bool = list_value_set_bool;
struct_.struct_.set_int = list_value_set_int;

View File

@ -0,0 +1,415 @@
// Copyright (c) 2015 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.
//
// ---------------------------------------------------------------------------
//
// This file was generated by the CEF translator tool. If making changes by
// hand only do so within the body of existing method and function
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
#include "libcef_dll/cpptoc/binary_value_cpptoc.h"
#include "libcef_dll/cpptoc/dictionary_value_cpptoc.h"
#include "libcef_dll/cpptoc/list_value_cpptoc.h"
#include "libcef_dll/cpptoc/value_cpptoc.h"
// GLOBAL FUNCTIONS - Body may be edited by hand.
CEF_EXPORT cef_value_t* cef_value_create() {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
// Execute
CefRefPtr<CefValue> _retval = CefValue::Create();
// Return type: refptr_same
return CefValueCppToC::Wrap(_retval);
}
// MEMBER FUNCTIONS - Body may be edited by hand.
int CEF_CALLBACK value_is_valid(struct _cef_value_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return 0;
// Execute
bool _retval = CefValueCppToC::Get(self)->IsValid();
// Return type: bool
return _retval;
}
int CEF_CALLBACK value_is_owned(struct _cef_value_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return 0;
// Execute
bool _retval = CefValueCppToC::Get(self)->IsOwned();
// Return type: bool
return _retval;
}
int CEF_CALLBACK value_is_read_only(struct _cef_value_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return 0;
// Execute
bool _retval = CefValueCppToC::Get(self)->IsReadOnly();
// Return type: bool
return _retval;
}
int CEF_CALLBACK value_is_same(struct _cef_value_t* self,
struct _cef_value_t* that) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return 0;
// Verify param: that; type: refptr_same
DCHECK(that);
if (!that)
return 0;
// Execute
bool _retval = CefValueCppToC::Get(self)->IsSame(
CefValueCppToC::Unwrap(that));
// Return type: bool
return _retval;
}
int CEF_CALLBACK value_is_equal(struct _cef_value_t* self,
struct _cef_value_t* that) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return 0;
// Verify param: that; type: refptr_same
DCHECK(that);
if (!that)
return 0;
// Execute
bool _retval = CefValueCppToC::Get(self)->IsEqual(
CefValueCppToC::Unwrap(that));
// Return type: bool
return _retval;
}
struct _cef_value_t* CEF_CALLBACK value_copy(struct _cef_value_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return NULL;
// Execute
CefRefPtr<CefValue> _retval = CefValueCppToC::Get(self)->Copy();
// Return type: refptr_same
return CefValueCppToC::Wrap(_retval);
}
cef_value_type_t CEF_CALLBACK value_get_type(struct _cef_value_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return VTYPE_INVALID;
// Execute
cef_value_type_t _retval = CefValueCppToC::Get(self)->GetType();
// Return type: simple
return _retval;
}
int CEF_CALLBACK value_get_bool(struct _cef_value_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return 0;
// Execute
bool _retval = CefValueCppToC::Get(self)->GetBool();
// Return type: bool
return _retval;
}
int CEF_CALLBACK value_get_int(struct _cef_value_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return 0;
// Execute
int _retval = CefValueCppToC::Get(self)->GetInt();
// Return type: simple
return _retval;
}
double CEF_CALLBACK value_get_double(struct _cef_value_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return 0;
// Execute
double _retval = CefValueCppToC::Get(self)->GetDouble();
// Return type: simple
return _retval;
}
cef_string_userfree_t CEF_CALLBACK value_get_string(struct _cef_value_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return NULL;
// Execute
CefString _retval = CefValueCppToC::Get(self)->GetString();
// Return type: string
return _retval.DetachToUserFree();
}
struct _cef_binary_value_t* CEF_CALLBACK value_get_binary(
struct _cef_value_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return NULL;
// Execute
CefRefPtr<CefBinaryValue> _retval = CefValueCppToC::Get(self)->GetBinary();
// Return type: refptr_same
return CefBinaryValueCppToC::Wrap(_retval);
}
struct _cef_dictionary_value_t* CEF_CALLBACK value_get_dictionary(
struct _cef_value_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return NULL;
// Execute
CefRefPtr<CefDictionaryValue> _retval = CefValueCppToC::Get(
self)->GetDictionary();
// Return type: refptr_same
return CefDictionaryValueCppToC::Wrap(_retval);
}
struct _cef_list_value_t* CEF_CALLBACK value_get_list(
struct _cef_value_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return NULL;
// Execute
CefRefPtr<CefListValue> _retval = CefValueCppToC::Get(self)->GetList();
// Return type: refptr_same
return CefListValueCppToC::Wrap(_retval);
}
int CEF_CALLBACK value_set_null(struct _cef_value_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return 0;
// Execute
bool _retval = CefValueCppToC::Get(self)->SetNull();
// Return type: bool
return _retval;
}
int CEF_CALLBACK value_set_bool(struct _cef_value_t* self, int value) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return 0;
// Execute
bool _retval = CefValueCppToC::Get(self)->SetBool(
value?true:false);
// Return type: bool
return _retval;
}
int CEF_CALLBACK value_set_int(struct _cef_value_t* self, int value) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return 0;
// Execute
bool _retval = CefValueCppToC::Get(self)->SetInt(
value);
// Return type: bool
return _retval;
}
int CEF_CALLBACK value_set_double(struct _cef_value_t* self, double value) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return 0;
// Execute
bool _retval = CefValueCppToC::Get(self)->SetDouble(
value);
// Return type: bool
return _retval;
}
int CEF_CALLBACK value_set_string(struct _cef_value_t* self,
const cef_string_t* value) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return 0;
// Unverified params: value
// Execute
bool _retval = CefValueCppToC::Get(self)->SetString(
CefString(value));
// Return type: bool
return _retval;
}
int CEF_CALLBACK value_set_binary(struct _cef_value_t* self,
struct _cef_binary_value_t* value) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return 0;
// Verify param: value; type: refptr_same
DCHECK(value);
if (!value)
return 0;
// Execute
bool _retval = CefValueCppToC::Get(self)->SetBinary(
CefBinaryValueCppToC::Unwrap(value));
// Return type: bool
return _retval;
}
int CEF_CALLBACK value_set_dictionary(struct _cef_value_t* self,
struct _cef_dictionary_value_t* value) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return 0;
// Verify param: value; type: refptr_same
DCHECK(value);
if (!value)
return 0;
// Execute
bool _retval = CefValueCppToC::Get(self)->SetDictionary(
CefDictionaryValueCppToC::Unwrap(value));
// Return type: bool
return _retval;
}
int CEF_CALLBACK value_set_list(struct _cef_value_t* self,
struct _cef_list_value_t* value) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return 0;
// Verify param: value; type: refptr_same
DCHECK(value);
if (!value)
return 0;
// Execute
bool _retval = CefValueCppToC::Get(self)->SetList(
CefListValueCppToC::Unwrap(value));
// Return type: bool
return _retval;
}
// CONSTRUCTOR - Do not edit by hand.
CefValueCppToC::CefValueCppToC(CefValue* cls)
: CefCppToC<CefValueCppToC, CefValue, cef_value_t>(cls) {
struct_.struct_.is_valid = value_is_valid;
struct_.struct_.is_owned = value_is_owned;
struct_.struct_.is_read_only = value_is_read_only;
struct_.struct_.is_same = value_is_same;
struct_.struct_.is_equal = value_is_equal;
struct_.struct_.copy = value_copy;
struct_.struct_.get_type = value_get_type;
struct_.struct_.get_bool = value_get_bool;
struct_.struct_.get_int = value_get_int;
struct_.struct_.get_double = value_get_double;
struct_.struct_.get_string = value_get_string;
struct_.struct_.get_binary = value_get_binary;
struct_.struct_.get_dictionary = value_get_dictionary;
struct_.struct_.get_list = value_get_list;
struct_.struct_.set_null = value_set_null;
struct_.struct_.set_bool = value_set_bool;
struct_.struct_.set_int = value_set_int;
struct_.struct_.set_double = value_set_double;
struct_.struct_.set_string = value_set_string;
struct_.struct_.set_binary = value_set_binary;
struct_.struct_.set_dictionary = value_set_dictionary;
struct_.struct_.set_list = value_set_list;
}
#ifndef NDEBUG
template<> base::AtomicRefCount CefCppToC<CefValueCppToC, CefValue,
cef_value_t>::DebugObjCt = 0;
#endif

View File

@ -0,0 +1,35 @@
// Copyright (c) 2015 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.
//
// ---------------------------------------------------------------------------
//
// This file was generated by the CEF translator tool. If making changes by
// hand only do so within the body of existing method and function
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
#ifndef CEF_LIBCEF_DLL_CPPTOC_VALUE_CPPTOC_H_
#define CEF_LIBCEF_DLL_CPPTOC_VALUE_CPPTOC_H_
#pragma once
#ifndef BUILDING_CEF_SHARED
#pragma message("Warning: "__FILE__" may be accessed DLL-side only")
#else // BUILDING_CEF_SHARED
#include "include/cef_values.h"
#include "include/capi/cef_values_capi.h"
#include "libcef_dll/cpptoc/cpptoc.h"
// Wrap a C++ class with a C structure.
// This class may be instantiated and accessed DLL-side only.
class CefValueCppToC
: public CefCppToC<CefValueCppToC, CefValue, cef_value_t> {
public:
explicit CefValueCppToC(CefValue* cls);
};
#endif // BUILDING_CEF_SHARED
#endif // CEF_LIBCEF_DLL_CPPTOC_VALUE_CPPTOC_H_