mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Replace JSBindingHandler with a new V8ContextHandler interface that contains callbacks for V8 context creation and release (issue #359).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@392 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -104,6 +104,18 @@ int CEF_CALLBACK v8context_exit(struct _cef_v8context_t* self)
|
||||
return contextPtr->Exit();
|
||||
}
|
||||
|
||||
int CEF_CALLBACK v8context_is_same(struct _cef_v8context_t* self,
|
||||
struct _cef_v8context_t* that)
|
||||
{
|
||||
DCHECK(self);
|
||||
DCHECK(that);
|
||||
if (!self || !that)
|
||||
return false;
|
||||
|
||||
return CefV8ContextCppToC::Get(self)->IsSame(
|
||||
CefV8ContextCppToC::Unwrap(that));
|
||||
}
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
@ -115,6 +127,7 @@ CefV8ContextCppToC::CefV8ContextCppToC(CefV8Context* cls)
|
||||
struct_.struct_.get_global = v8context_get_global;
|
||||
struct_.struct_.enter = v8context_enter;
|
||||
struct_.struct_.exit = v8context_exit;
|
||||
struct_.struct_.is_same = v8context_is_same;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
|
Reference in New Issue
Block a user