forked from cztomczak/cefpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathv8function_handler.pxd
More file actions
30 lines (25 loc) · 969 Bytes
/
v8function_handler.pxd
File metadata and controls
30 lines (25 loc) · 969 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Copyright (c) 2012-2014 The CEF Python authors. All rights reserved.
# License: New BSD License.
# Website: http://code.google.com/p/cefpython/
from cef_string cimport CefString
from cef_ptr cimport CefRefPtr
from cef_v8 cimport CefV8Value
from cef_v8 cimport CefV8ValueList
from cef_ptr cimport CefRefPtr
from cef_v8 cimport CefV8Context
cdef extern from "v8function_handler/v8function_handler.h":
# DelPythonCallbac() type.
ctypedef void (*RemovePythonCallback_type)(
int callbackID
)
cdef cppclass CefV8Handler:
pass
# V8FunctionHandler class.
cdef cppclass V8FunctionHandler(CefV8Handler):
# V8FunctionHandler callbacks.
void SetCallback_V8Execute(V8Execute_type)
void SetCallback_RemovePythonCallback(RemovePythonCallback_type)
# Context.
void SetContext(CefRefPtr[CefV8Context])
void SetPythonCallbackID(int callbackID)
CefRefPtr[CefV8Context] GetContext()