forked from cztomczak/cefpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathweb_plugin_info_cef3.pyx
More file actions
24 lines (18 loc) · 832 Bytes
/
web_plugin_info_cef3.pyx
File metadata and controls
24 lines (18 loc) · 832 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Copyright (c) 2012-2014 The CEF Python authors. All rights reserved.
# License: New BSD License.
# Website: http://code.google.com/p/cefpython/
cdef PyWebPluginInfo CreatePyWebPluginInfo(
CefRefPtr[CefWebPluginInfo] cefPlugin):
cdef PyWebPluginInfo pyPlugin = PyWebPluginInfo()
pyPlugin.cefPlugin = cefPlugin
return pyPlugin
cdef class PyWebPluginInfo:
cdef CefRefPtr[CefWebPluginInfo] cefPlugin
cpdef py_string GetName(self):
return CefToPyString(self.cefPlugin.get().GetName())
cpdef py_string GetPath(self):
return CefToPyString(self.cefPlugin.get().GetPath())
cpdef py_string GetVersion(self):
return CefToPyString(self.cefPlugin.get().GetVersion())
cpdef py_string GetDescription(self):
return CefToPyString(self.cefPlugin.get().GetDescription())