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
107 lines (92 loc) · 4.07 KB
/
cef_browser.pxd
File metadata and controls
107 lines (92 loc) · 4.07 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
107
# Copyright (c) 2012 CEF Python, see the Authors file.
# All rights reserved. Licensed under BSD 3-clause license.
# Project website: https://github.com/cztomczak/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_drag_data cimport CefDragData
from cef_types cimport CefMouseEvent
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()
# Drag & drop OSR
void DragTargetDragEnter(CefRefPtr[CefDragData] drag_data,
const CefMouseEvent& event,
cef_types.cef_drag_operations_mask_t allowed_ops)
void DragTargetDragOver(const CefMouseEvent& event,
cef_types.cef_drag_operations_mask_t allowed_ops)
void DragTargetDragLeave()
void DragTargetDrop(const CefMouseEvent& event)
void DragSourceEndedAt(int x, int y, cef_types.cef_drag_operations_mask_t op)
void DragSourceSystemDragEnded()
# Spell checking
void ReplaceMisspelling(const CefString& word)
void AddWordToDictionary(const CefString& word)
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)