forked from cztomczak/cefpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcef_browser_static.pxd
More file actions
31 lines (27 loc) · 1.07 KB
/
cef_browser_static.pxd
File metadata and controls
31 lines (27 loc) · 1.07 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
# 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
include "compile_time_constants.pxi"
from cef_ptr cimport CefRefPtr
IF UNAME_SYSNAME == "Windows":
from cef_win cimport CefWindowInfo
ELIF UNAME_SYSNAME == "Linux":
from cef_linux cimport CefWindowInfo
ELIF UNAME_SYSNAME == "Darwin":
from cef_mac cimport CefWindowInfo
# noinspection PyUnresolvedReferences
from cef_client cimport CefClient
from cef_types cimport CefBrowserSettings
# noinspection PyUnresolvedReferences
from cef_request_context cimport CefRequestContext
# noinspection PyUnresolvedReferences
from cef_browser cimport CefBrowser
from cef_string cimport CefString
# Specifying namespace allows to import a static method.
cdef extern from "include/cef_browser.h" namespace "CefBrowserHost":
cdef CefRefPtr[CefBrowser] CreateBrowserSync(
CefWindowInfo&,
CefRefPtr[CefClient],
CefString&,
CefBrowserSettings&,
CefRefPtr[CefRequestContext]) nogil