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
40 lines (31 loc) · 1.31 KB
/
cef_app.pxd
File metadata and controls
40 lines (31 loc) · 1.31 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
# Copyright (c) 2012 CEF Python, see the Authors file.
# All rights reserved. Licensed under BSD 3-clause license.
# Project website: https://github.com/cztomczak/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 cimport CefSettings
from cef_ptr cimport CefRefPtr
from libcpp cimport bool as cpp_bool
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:
pass
cdef int CefExecuteProcess(CefMainArgs& args,
CefRefPtr[CefApp] application,
void* windows_sandbox_info
) nogil
cdef cpp_bool CefInitialize(CefMainArgs&,
CefSettings&, CefRefPtr[CefApp],
void* windows_sandbox_info
) nogil
cdef void CefRunMessageLoop() nogil
cdef void CefDoMessageLoopWork() nogil
cdef void CefQuitMessageLoop() nogil
cdef void CefShutdown() nogil
cdef void CefSetOSModalLoop(cpp_bool osModalLoop) nogil