FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cefpython/cefpython/drag_data.pyx at cefpython31 · 2php/cefpython · GitHub
2php
cefpython
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cefpython
/
cefpython
/
drag_data.pyx
Copy path
More file actions
More file actions
Latest commit
History
History
History
57 lines (44 loc) · 1.85 KB
Breadcrumbs
cefpython
/
cefpython
/
drag_data.pyx
Copy path
File metadata and controls
57 lines (44 loc) · 1.85 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#
Copyright (c) 2012-2014 The CEF Python authors. All rights reserved.
#
License: New BSD License.
#
Website: http://code.google.com/p/cefpython/
cdef PyDragData CreatePyDragData(CefRefPtr[CefDragData] cefDragData):
cdef PyDragData pyDragData
=
PyDragData()
pyDragData.cefDragData
=
cefDragData
return
pyDragData
cdef
class
PyDragData:
cdef CefRefPtr[CefDragData] cefDragData
cpdef py_bool IsLink(
self
):
return
self
.cefDragData.get().IsLink()
cpdef py_bool IsFragment(
self
):
return
self
.cefDragData.get().IsFragment()
cpdef py_bool IsFile(
self
):
return
self
.cefDragData.get().IsFile()
cpdef
str
GetLinkUrl(
self
):
return
CefToPyString(
self
.cefDragData.get().GetLinkURL())
cpdef
str
GetLinkTitle(
self
):
return
CefToPyString(
self
.cefDragData.get().GetLinkTitle())
cpdef
str
GetLinkMetadata(
self
):
return
CefToPyString(
self
.cefDragData.get().GetLinkMetadata())
cpdef
str
GetFragmentText(
self
):
return
CefToPyString(
self
.cefDragData.get().GetFragmentText())
cpdef
str
GetFragmentHtml(
self
):
return
CefToPyString(
self
.cefDragData.get().GetFragmentHtml())
cpdef
str
GetFragmentBaseUrl(
self
):
return
CefToPyString(
self
.cefDragData.get().GetFragmentBaseURL())
cpdef
str
GetFile(
self
):
return
CefToPyString(
self
.cefDragData.get().GetFileName())
cpdef
list
GetFiles(
self
):
cdef cpp_vector[CefString] files
cdef cpp_vector[CefString].iterator it
cdef cpp_bool succeeded
=
self
.cefDragData.get().GetFileNames(files)
cdef CefString value
cdef
list
ret
=
[]
if
succeeded:
it
=
files.begin()
while
it !
=
files.end():
value
=
deref(it)
ret.append(CefToPyString(value))
preinc(it)
return
ret
else
:
return
[]
Back
|
FazBrowse Home
|
New Git URL