[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/2php/cefpython/cefpython31/cefpython/cython_includes/cef_app.pxd [Back]  [Original]

# 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


Web Proxy Viewer  |  New URL  |  Original Page