forked from cztomczak/cefpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcef_browser.pxd
More file actions
89 lines (77 loc) · 3.25 KB
/
cef_browser.pxd
File metadata and controls
89 lines (77 loc) · 3.25 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
# 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_string cimport CefString
from cef_client cimport CefClient
from libcpp cimport bool as cpp_bool
from libcpp.vector cimport vector as cpp_vector
from cef_frame cimport CefFrame
cimport cef_types
from cef_types cimport int64
from cef_types cimport CefBrowserSettings, CefPoint
from cef_process_message cimport CefProcessMessage, CefProcessId
IF UNAME_SYSNAME == "Windows":
from cef_win cimport CefWindowHandle, CefWindowInfo
ELIF UNAME_SYSNAME == "Linux":
from cef_linux cimport CefWindowHandle, CefWindowInfo
ELIF UNAME_SYSNAME == "Darwin":
from cef_mac cimport CefWindowHandle, CefWindowInfo
cdef extern from "include/cef_browser.h":
cdef cppclass CefBrowserHost:
void CloseBrowser(cpp_bool force_close)
CefRefPtr[CefBrowser] GetBrowser()
void SetFocus(cpp_bool enable)
CefWindowHandle GetWindowHandle()
CefWindowHandle GetOpenerWindowHandle()
double GetZoomLevel()
void SetZoomLevel(double zoomLevel)
void StartDownload(const CefString& url)
void SetMouseCursorChangeDisabled(cpp_bool disabled)
cpp_bool IsMouseCursorChangeDisabled()
cpp_bool IsWindowRenderingDisabled()
void WasResized()
void WasHidden(cpp_bool hidden)
void NotifyScreenInfoChanged()
void NotifyMoveOrResizeStarted()
void SendKeyEvent(cef_types.CefKeyEvent)
void SendMouseClickEvent(cef_types.CefMouseEvent,
cef_types.cef_mouse_button_type_t mbtype,
cpp_bool mouseUp, int clickCount)
void SendMouseMoveEvent(cef_types.CefMouseEvent,
cpp_bool mouseLeave)
void SendMouseWheelEvent(cef_types.CefMouseEvent, int deltaX,
int deltaY)
void SendFocusEvent(cpp_bool setFocus)
void SendCaptureLostEvent()
void ShowDevTools(const CefWindowInfo& windowInfo,
CefRefPtr[CefClient] client,
const CefBrowserSettings& settings,
const CefPoint& inspect_element_at)
void CloseDevTools()
void Find(int identifier, const CefString& searchText, cpp_bool forward,
cpp_bool matchCase, cpp_bool findNext)
void StopFinding(cpp_bool clearSelection)
void Print()
cpp_bool TryCloseBrowser()
cdef cppclass CefBrowser:
CefRefPtr[CefBrowserHost] GetHost()
cpp_bool CanGoBack()
cpp_bool CanGoForward()
CefRefPtr[CefFrame] GetFocusedFrame()
CefRefPtr[CefFrame] GetFrame(CefString& name)
CefRefPtr[CefFrame] GetFrame(int64 identifier)
void GetFrameNames(cpp_vector[CefString]& names)
CefRefPtr[CefFrame] GetMainFrame()
void GoBack()
void GoForward()
cpp_bool HasDocument()
cpp_bool IsPopup()
void Reload()
void ReloadIgnoreCache()
void StopLoad()
cpp_bool IsLoading()
int GetIdentifier()
cpp_bool SendProcessMessage(CefProcessId target_process,
CefRefPtr[CefProcessMessage] message)