Repository navigation
Expand file tree
/
Copy pathimports.pyx
More file actions
106 lines (83 loc) · 3.03 KB
/
Copy pathimports.pyx
File metadata and controls
106 lines (83 loc) · 3.03 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# Copyright (c) 2012 CefPython Authors. All rights reserved.
# License: New BSD License.
# Website: http://code.google.com/p/cefpython/
import os
import sys
import cython
import platform
import traceback
import time
import types
import re
import copy
import inspect # used by JavascriptBindings.__SetObjectMethods()
if sys.version_info.major == 2:
from urllib import pathname2url as urllib_pathname2url
else:
from urllib.request import pathname2url as urllib_pathname2url
# We should allow multiple string types: str, unicode, bytes.
# PyToCefString() can handle them all.
ctypedef object py_string
# You can't use "void" along with cpdef function returning None, it is planned to be
# added to Cython in the future, creating this virtual type temporarily. If you
# change it later to "void" then don't forget to add "except *".
ctypedef object py_void
# TODO: use WindowHandle type instead of int.
IF UNAME_SYSNAME == "Windows":
ctypedef int WindowHandle
ELSE:
pass
from cpython cimport bool as py_bool
from libcpp cimport bool as cpp_bool
from libcpp.map cimport map as cpp_map
from multimap cimport multimap as cpp_multimap
from libcpp.pair cimport pair as cpp_pair
from libcpp.vector cimport vector as cpp_vector
from libcpp.string cimport string as std_string
from wstring cimport wstring as std_wstring
from libc.string cimport strlen
from libc.string cimport memcpy
# preincrement and dereference must be "as" otherwise not seen.
from cython.operator cimport preincrement as preinc, dereference as deref
# from cython.operator cimport address as addr # Address of an c++ object?
from libc.stdlib cimport calloc, malloc, free
from libc.stdlib cimport atoi
# When pyx file cimports * from a pxd file and that pxd cimports * from another pxd
# then these names will be visible in pyx file.
# Circular imports are allowed in form "cimport ...", but won't work if you do
# "from ... cimport *", this is important to know in pxd files.
IF UNAME_SYSNAME == "Windows":
from windows cimport *
from cpp_utils cimport *
from cef_string cimport *
from cef_types_wrappers cimport *
from cef_task cimport *
IF UNAME_SYSNAME == "Windows":
from cef_win cimport *
from cef_ptr cimport *
from cef_app cimport *
from cef_browser cimport *
cimport cef_browser_static
from cef_client cimport *
from client_handler cimport *
from cef_frame cimport *
# cannot cimport *, that would cause name conflicts with constants.
cimport cef_types
ctypedef cef_types.cef_paint_element_type_t PaintElementType
IF UNAME_SYSNAME == "Windows":
cimport cef_types_win # cannot cimport *, name conflicts
IF CEF_VERSION == 1:
from cef_v8 cimport *
cimport cef_v8_static
cimport cef_v8_stack_trace
from v8function_handler cimport *
from cef_request cimport *
from cef_response cimport *
from cef_stream cimport *
from cef_content_filter cimport *
from cef_download_handler cimport *
from cef_cookie cimport *
from cef_render_handler cimport *
IF UNAME_SYSNAME == "Windows":
IF CEF_VERSION == 1:
from http_authentication cimport *