Skip to content

Commit

Permalink
update to cef r291
Browse files Browse the repository at this point in the history
  • Loading branch information
ataranto committed Sep 20, 2011
1 parent 0350f11 commit dbe9d0f
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 15 deletions.
2 changes: 1 addition & 1 deletion CefSharp/CefSharp.h
Expand Up @@ -49,7 +49,7 @@ namespace CefSharp
{
String^ get()
{
return "trunk r286";
return "trunk r291";
}
}

Expand Down
6 changes: 4 additions & 2 deletions include/cef.h
Expand Up @@ -2249,7 +2249,8 @@ class CefV8Accessor : public virtual CefBase
/*--cef()--*/
virtual bool Get(const CefString& name,
const CefRefPtr<CefV8Value> object,
CefRefPtr<CefV8Value>& retval) =0;
CefRefPtr<CefV8Value>& retval,
CefString& exception) =0;

///
// Called to set an accessor value. |name| is the name of the property being
Expand All @@ -2260,7 +2261,8 @@ class CefV8Accessor : public virtual CefBase
/*--cef()--*/
virtual bool Set(const CefString& name,
const CefRefPtr<CefV8Value> object,
const CefRefPtr<CefV8Value> value) =0;
const CefRefPtr<CefV8Value> value,
CefString& exception) =0;
};


Expand Down
2 changes: 1 addition & 1 deletion include/internal/cef_string.h
Expand Up @@ -74,7 +74,7 @@ typedef cef_string_userfree_utf8_t cef_string_userfree_t;
#define cef_string_to_wide cef_string_utf8_to_wide
#define cef_string_from_wide cef_string_wide_to_utf8
#elif defined(CEF_STRING_TYPE_UTF16)
typedef char16_t cef_char_t;
typedef char16 cef_char_t;
typedef cef_string_userfree_utf16_t cef_string_userfree_t;
typedef cef_string_utf16_t cef_string_t;
#define cef_string_set cef_string_utf16_set
Expand Down
16 changes: 8 additions & 8 deletions include/internal/cef_string_types.h
Expand Up @@ -43,13 +43,13 @@ extern "C" {
#include "cef_export.h"
#include <stddef.h>

// CEF character type definitions. wchat_t is 2 bytes on Windows and 4 bytes on
// CEF character type definitions. wchar_t is 2 bytes on Windows and 4 bytes on
// most other platforms.

#if defined(OS_WIN)
typedef wchar_t char16_t;
typedef wchar_t char16;
#else // !OS_WIN
typedef unsigned short char16_t;
typedef unsigned short char16;
#ifndef WCHAR_T_IS_UTF32
#define WCHAR_T_IS_UTF32
#endif // WCHAR_T_IS_UTF32
Expand All @@ -76,9 +76,9 @@ typedef struct _cef_string_utf8_t {
} cef_string_utf8_t;

typedef struct _cef_string_utf16_t {
char16_t* str;
char16* str;
size_t length;
void (*dtor)(char16_t* str);
void (*dtor)(char16* str);
} cef_string_utf16_t;


Expand All @@ -92,7 +92,7 @@ CEF_EXPORT int cef_string_wide_set(const wchar_t* src, size_t src_len,
cef_string_wide_t* output, int copy);
CEF_EXPORT int cef_string_utf8_set(const char* src, size_t src_len,
cef_string_utf8_t* output, int copy);
CEF_EXPORT int cef_string_utf16_set(const char16_t* src, size_t src_len,
CEF_EXPORT int cef_string_utf16_set(const char16* src, size_t src_len,
cef_string_utf16_t* output, int copy);


Expand Down Expand Up @@ -143,12 +143,12 @@ CEF_EXPORT int cef_string_utf8_to_wide(const char* src, size_t src_len,

CEF_EXPORT int cef_string_wide_to_utf16(const wchar_t* src, size_t src_len,
cef_string_utf16_t* output);
CEF_EXPORT int cef_string_utf16_to_wide(const char16_t* src, size_t src_len,
CEF_EXPORT int cef_string_utf16_to_wide(const char16* src, size_t src_len,
cef_string_wide_t* output);

CEF_EXPORT int cef_string_utf8_to_utf16(const char* src, size_t src_len,
cef_string_utf16_t* output);
CEF_EXPORT int cef_string_utf16_to_utf8(const char16_t* src, size_t src_len,
CEF_EXPORT int cef_string_utf16_to_utf8(const char16* src, size_t src_len,
cef_string_utf8_t* output);


Expand Down
6 changes: 3 additions & 3 deletions include/internal/cef_string_wrappers.h
Expand Up @@ -188,7 +188,7 @@ struct CefStringTraitsUTF8 {
// Traits implementation for utf16 character strings.
///
struct CefStringTraitsUTF16 {
typedef char16_t char_type;
typedef char16 char_type;
typedef cef_string_utf16_t struct_type;
typedef cef_string_userfree_utf16_t userfree_struct_type;

Expand Down Expand Up @@ -339,7 +339,7 @@ class CefStringBase {
///
CefStringBase(const string16& src) : string_(NULL), owner_(false)
{ FromString16(src); }
CefStringBase(const char16_t* src) : string_(NULL), owner_(false)
CefStringBase(const char16* src) : string_(NULL), owner_(false)
{ FromString16(string16(src)); }
#endif // BUILDING_CEF_SHARED && WCHAR_T_IS_UTF32

Expand Down Expand Up @@ -667,7 +667,7 @@ class CefStringBase {
operator string16() const { return ToString16(); }
CefStringBase& operator=(const string16& str)
{ FromString16(str); return *this; }
CefStringBase& operator=(const char16_t* str)
CefStringBase& operator=(const char16* str)
{ FromString16(string16(str)); return *this; }
#endif // BUILDING_CEF_SHARED && WCHAR_T_IS_UTF32

Expand Down
Binary file modified libs/Debug/libcef.lib
Binary file not shown.
Binary file modified libs/Debug/libcef_dll_wrapper.lib
Binary file not shown.
Binary file modified libs/Release/libcef.lib
Binary file not shown.
Binary file modified libs/Release/libcef_dll_wrapper.lib
Binary file not shown.

0 comments on commit dbe9d0f

Please sign in to comment.