FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cefpython/cefpython/cython_includes/cef_runnable.pxd at cefpython31 · jumpmanjay/cefpython · GitHub
jumpmanjay
cefpython
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cefpython
/
cefpython
/
cython_includes
/
cef_runnable.pxd
Copy path
More file actions
More file actions
Latest commit
History
History
History
39 lines (34 loc) · 1.54 KB
Breadcrumbs
cefpython
/
cefpython
/
cython_includes
/
cef_runnable.pxd
Copy path
File metadata and controls
39 lines (34 loc) · 1.54 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
# Copyright (c) 2012-2014 The CEF Python authors. All rights reserved.
# License: New BSD License.
# Website: http://code.google.com/p/cefpython/
include "compile_time_constants.pxi"
from cef_ptr cimport CefRefPtr
from cef_task cimport CefTask
from cef_string cimport CefString
IF CEF_VERSION == 1:
from cef_cookie_cef1 cimport CefCookie, CefCookieManager
ELIF CEF_VERSION == 3:
from cef_cookie_cef3 cimport CefCookie, CefCookieManager
from libcpp cimport bool as cpp_bool
cdef extern from "include/cef_runnable.h":
# Cython 0.19.1 does not allow template functions, only template
# classes are supported, thus we need to wrap each type of call
# to NewCefRunnableMethod(). There is a CefRunnableMethod template
# class that could be wrapped, but it depends on MakeTuple()
# template function.
# Wrapping NewCefRunnableMethod() for CefCookieManager.SetCookie().
ctypedef cpp_bool (*SetCookie_type)(const CefString& url,
const CefCookie& cookie)
cdef CefRefPtr[CefTask] NewCefRunnableMethod(
CefCookieManager* obj,
SetCookie_type method,
const CefString& url,
const CefCookie& cookie)
# Wrapping NewCefRunnableMethod() for CefCookieManager.DeleteCookies().
ctypedef cpp_bool (*DeleteCookies_type)(const CefString& url,
const CefString& cookie_name)
cdef CefRefPtr[CefTask] NewCefRunnableMethod(
CefCookieManager* obj,
DeleteCookies_type method,
const CefString& url,
const CefString& cookie_name)
Back
|
FazBrowse Home
|
New Git URL