forked from cztomczak/cefpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcallback.pyx
More file actions
20 lines (15 loc) · 586 Bytes
/
callback.pyx
File metadata and controls
20 lines (15 loc) · 586 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Copyright (c) 2012-2014 The CEF Python authors. All rights reserved.
# License: New BSD License.
# Website: http://code.google.com/p/cefpython/
include "cefpython.pyx"
cdef PyCallback CreatePyCallback(
CefRefPtr[CefCallback] cefCallback):
cdef PyCallback pyCallback = PyCallback()
pyCallback.cefCallback = cefCallback
return pyCallback
cdef class PyCallback:
cdef CefRefPtr[CefCallback] cefCallback
cpdef py_void Continue(self):
self.cefCallback.get().Continue()
cpdef py_void Cancel(self):
self.cefCallback.get().Cancel()