forked from cztomczak/cefpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcef_app.pxd
More file actions
43 lines (32 loc) · 1.32 KB
/
cef_app.pxd
File metadata and controls
43 lines (32 loc) · 1.32 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
# Copyright (c) 2012-2014 The CEF Python authors. All rights reserved.
# License: New BSD License.
# Website: http://code.google.com/p/cefpython/
# Circular imports are allowed in form "cimport ...",
# but won't work if you do "from ... cimport *".
include "compile_time_constants.pxi"
from cef_types_wrappers cimport CefSettings
from cef_ptr cimport CefRefPtr
from cef_base cimport CefBase
from libcpp cimport bool as cpp_bool
IF CEF_VERSION == 3:
IF UNAME_SYSNAME == "Windows":
from cef_win cimport CefMainArgs
ELIF UNAME_SYSNAME == "Linux":
from cef_linux cimport CefMainArgs
ELIF UNAME_SYSNAME == "Darwin":
from cef_mac cimport CefMainArgs
cdef extern from "include/cef_app.h":
cdef cppclass CefApp(CefBase):
pass
IF CEF_VERSION == 3:
cdef int CefExecuteProcess(CefMainArgs& args, CefRefPtr[CefApp] application) nogil
IF CEF_VERSION == 1:
cdef cpp_bool CefInitialize(CefSettings&, CefRefPtr[CefApp]) nogil
ELIF CEF_VERSION == 3:
cdef cpp_bool CefInitialize(CefMainArgs&, CefSettings&, CefRefPtr[CefApp]) nogil
cdef void CefRunMessageLoop() nogil
cdef void CefDoMessageLoopWork() nogil
cdef void CefQuitMessageLoop() nogil
cdef void CefShutdown() nogil
IF CEF_VERSION == 3:
cdef void CefSetOSModalLoop(cpp_bool osModalLoop) nogil