xlang v5.1 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
QCefView类 参考
类 QCefView 继承关系图:
Inheritance graph
QCefView 的协作图:
Collaboration graph

结构体

enum  CefWindowOpenDisposition
 
class  onCefListener
 

Public 成员函数

静态 Public 成员函数

Private 属性

额外继承的成员函数

详细描述

在文件 QCefView.x82 行定义.

构造及析构函数说明

◆ QCefView() [1/2]

QCefView ( )

在文件 QCefView.x137 行定义.

137 {
138
139 }

◆ QCefView() [2/2]

QCefView ( long  handle)

在文件 QCefView.x141 行定义.

141 {
142 super(handle);
143 }

成员函数说明

◆ addLocalFolderResource()

void addLocalFolderResource ( String  url,
String  local 
)

在文件 QCefView.x149 行定义.

149 {
150 Qt.QtXnl.long_string2(nativehandle, Constant.CEF_DADDLOCALRES, local, url);
151 }
long cdecl long_string2(long handle,int proid, String v1, String v2)
Definition QCefQuery.x:3

引用了 QtXnl.long_string2().

函数调用图:

◆ addLocalResourceDir()

static void addLocalResourceDir ( String  url,
String  local 
)
static

在文件 QCefView.x145 行定义.

145 {
146 Qt.QtXnl.long_string2(0, Constant.CEF_ADDLOCALRES, local, url);
147 }

引用了 QtXnl.long_string2().

函数调用图:

◆ addressChanged()

void addressChanged ( long  frameId,
String  url 
)

在文件 QCefView.x230 行定义.

230 {
231 if (_ceflistener != nilptr){
232 _ceflistener.addressChanged(this, frameId, url);
233 }
234 }
void addressChanged(QCefView view, long frameId, String url)
Definition QCefView.x:93
onCefListener _ceflistener
Definition QCefView.x:118

◆ cefQueryRequest()

void cefQueryRequest ( int  browserId,
long  frameId,
long  query 
)

在文件 QCefView.x261 行定义.

261 {
262 QCefQuery _query = new QCefQuery(query);
263 if (_ceflistener != nilptr){
264 _ceflistener.cefQueryRequest(this, browserId, frameId, _query);
265 }
266 }
void cefQueryRequest(QCefView view, int browserId, long frameId, QCefQuery query)
Definition QCefView.x:99

◆ consoleMessage()

void consoleMessage ( String  message,
int  level 
)

在文件 QCefView.x251 行定义.

251 {
252 if (_ceflistener != nilptr){
253 _ceflistener.consoleMessage(this, message, level);
254 }
255 }
void consoleMessage(QCefView view, String message, int level)
Definition QCefView.x:97

◆ create() [1/4]

bool create ( @NotNilptr QWidget  parent)
override

重载 QWidget .

在文件 QCefView.x169 行定义.

169 {
170 nativehandle = Qt.QtXnl.createQSObject(Qt.QType.qtCefView, this, parent.nativehandle, nilptr);
171 if (nativehandle == 0){
172 return false;
173 }
174 return true;
175 }
long nativehandle
Definition QNative.xcsm:92
static const int qtCefView
Definition QTypes.xcsm:101
long cdecl createQSObject(int type, Object xobj, long parent, String param)

引用了 QtXnl.createQSObject() , 以及 QType.qtCefView.

函数调用图:

◆ create() [2/4]

bool create ( @NotNilptr String  url,
@NotNilptr QWidget  parent 
)

在文件 QCefView.x177 行定义.

177 {
178 nativehandle = Qt.QtXnl.createQSObject(Qt.QType.qtCefView, this, parent.nativehandle, url);
179 if (nativehandle == 0){
180 return false;
181 }
182 return true;
183 }

引用了 QtXnl.createQSObject() , 以及 QType.qtCefView.

函数调用图:

◆ create() [3/4]

bool create ( QCefSetting  setting,
@NotNilptr QWidget  parent 
)

在文件 QCefView.x186 行定义.

186 {
187 nativehandle = Qt.QtXnl.createQLLSObject(Qt.QType.qtCefView, this, parent.nativehandle, setting.nativehandle, nilptr);
188 if (nativehandle == 0){
189 return false;
190 }
191 return true;
192 }
long cdecl createQLLSObject(int type, Object xobj, long parent, long lparam, String param)

引用了 QtXnl.createQLLSObject() , 以及 QType.qtCefView.

函数调用图:

◆ create() [4/4]

bool create ( QCefSetting  setting,
@NotNilptr String  url,
@NotNilptr QWidget  parent 
)

在文件 QCefView.x194 行定义.

194 {
195 nativehandle = Qt.QtXnl.createQLLSObject(Qt.QType.qtCefView, this, parent.nativehandle, setting.nativehandle, url);
196 if (nativehandle == 0){
197 return false;
198 }
199 return true;
200 }

引用了 QtXnl.createQLLSObject() , 以及 QType.qtCefView.

函数调用图:

◆ fullscreenModeChanged()

void fullscreenModeChanged ( bool  fullscreen)

在文件 QCefView.x241 行定义.

241 {
242 if (_ceflistener != nilptr){
243 _ceflistener.fullscreenModeChanged(this, fullscreen);
244 }
245 }
void fullscreenModeChanged(QCefView view, bool fullscreen)
Definition QCefView.x:95

◆ invokeMethod()

void invokeMethod ( int  browserId,
long  frameId,
String  method,
String []  arguments 
)

在文件 QCefView.x267 行定义.

267 {
268 if (_ceflistener != nilptr){
269 _ceflistener.invokeMethod(this, browserId, frameId, method, arguments);
270 }
271 }
void invokeMethod(QCefView view, int browserId, long frameId, String method, String [] arguments)
Definition QCefView.x:100

◆ loadEnd()

void loadEnd ( int  browserId,
long  frameId,
bool  isMainFrame,
int  httpStatusCode 
)

在文件 QCefView.x212 行定义.

212 {
213 if (_ceflistener != nilptr){
214 _ceflistener.loadEnd(this, browserId, frameId, isMainFrame, httpStatusCode);
215 }
216 }
void loadEnd(QCefView view, int browserId, long frameId, bool isMainFrame, int httpStatusCode)
Definition QCefView.x:86

◆ loadError()

void loadError ( int  browserId,
long  frameId,
bool  isMainFrame,
int  errorCode,
String  errorMsg,
String  failedUrl 
)

在文件 QCefView.x217 行定义.

223 {
224 if (_ceflistener != nilptr){
225 _ceflistener.loadError(this, browserId,frameId,isMainFrame,errorCode,errorMsg,failedUrl);
226 }
227 }
void loadError(QCefView view, int browserId, long frameId, bool isMainFrame, int errorCode, String errorMsg, String failedUrl)
Definition QCefView.x:87

◆ loadingProgressChanged()

void loadingProgressChanged ( double  progress)

在文件 QCefView.x256 行定义.

256 {
257 if (_ceflistener != nilptr){
258 _ceflistener.loadingProgressChanged(this, progress);
259 }
260 }
void loadingProgressChanged(QCefView view, double progress)
Definition QCefView.x:98

◆ loadingStateChanged()

void loadingStateChanged ( int  browserId,
bool  isLoading,
bool  canGoBack,
bool  canGoForward 
)

在文件 QCefView.x202 行定义.

202 {
203 if (_ceflistener != nilptr){
204 _ceflistener.loadingStateChanged(this, browserId, isLoading, canGoBack, canGoForward);
205 }
206 }
void loadingStateChanged(QCefView view, int browserId, bool isLoading, bool canGoBack, bool canGoForward)
Definition QCefView.x:84

◆ loadStart()

void loadStart ( int  browserId,
long  frameId,
bool  isMainFrame,
int  transition_type 
)

在文件 QCefView.x207 行定义.

207 {
208 if (_ceflistener != nilptr){
209 _ceflistener.loadStart(this, browserId, frameId, isMainFrame, transition_type);
210 }
211 }
void loadStart(QCefView view, int browserId, long frameId, bool isMainFrame, int transition_type)
Definition QCefView.x:85

◆ navigateToString()

void navigateToString ( String  content)

在文件 QCefView.x165 行定义.

165 {
166 Qt.QtXnl.widget_slot_string(nativehandle, Constant.CEF_NAVIGATETOSTRING, content);
167 }
void cdecl widget_slot_string(long h, int proid, String value)

引用了 QtXnl.widget_slot_string().

函数调用图:

◆ navigateToUrl()

void navigateToUrl ( String  url)

在文件 QCefView.x153 行定义.

153 {
154 Qt.QtXnl.widget_slot_string(nativehandle, Constant.CEF_NAVIGATETOURL, url);
155 }

引用了 QtXnl.widget_slot_string().

函数调用图:

◆ onBeforePopup()

bool onBeforePopup ( long  frameId,
String  targetUrl,
String  targetFrameName,
int  targetDisposition,
long  settings,
bool []  DisableJavascriptAccess 
)

在文件 QCefView.x297 行定义.

303 {
304 QCefSetting setting = new QCefSetting(settings);
305 if (_ceflistener != nilptr){
306 return _ceflistener.onBeforePopup(this, frameId, targetUrl, targetFrameName, targetDisposition, setting, DisableJavascriptAccess);
307 }
308 return false;
309 }
bool onBeforePopup(QCefView view, long frameId, String targetUrl, String targetFrameName, int targetDisposition, QCefSetting settings, bool [] DisableJavascriptAccess)
Definition QCefView.x:105

◆ onBrowserCoreCreated()

void onBrowserCoreCreated ( QWindow  win)

在文件 QCefView.x277 行定义.

277 {
278 if (_ceflistener != nilptr){
280 }
281 }
void onBrowserCoreCreated(QCefView view, QWindow win)
Definition QCefView.x:103

◆ onBrowserWindowCreated()

void onBrowserWindowCreated ( QWindow  win)

在文件 QCefView.x290 行定义.

290 {
291 if (_ceflistener != nilptr){
293 }
294 }
void onBrowserWindowCreated(QCefView view, QWindow win)
Definition QCefView.x:102

◆ onPopupCreated()

void onPopupCreated ( QWindow  wnd)

在文件 QCefView.x311 行定义.

311 {
312 if (_ceflistener != nilptr){
313 _ceflistener.onPopupCreated(this, wnd);
314 }
315 }
void onPopupCreated(QCefView view, QWindow wnd)
Definition QCefView.x:115

◆ onSchemeTrigged()

bool onSchemeTrigged ( String  scheme,
String  url,
String  domain,
String  param 
)

在文件 QCefView.x283 行定义.

283 {
284 if (_ceflistener != nilptr){
285 return _ceflistener.onSchemeTrigged(this, scheme, url, domain, param);
286 }
287 return false;
288 }
bool onSchemeTrigged(QCefView view, String scheme, String url, String domain, String param)
Definition QCefView.x:104

◆ registryScheme()

void registryScheme ( String  scheme,
String  domain 
)

在文件 QCefView.x157 行定义.

157 {
158 Qt.QtXnl.long_string2(nativehandle, Constant.CEF_REGISTRYSCHEME, scheme, domain);
159 }

引用了 QtXnl.long_string2().

函数调用图:

◆ reportJavascriptResult()

void reportJavascriptResult ( int  browserId,
long  frameId,
long  context,
String  result 
)

在文件 QCefView.x272 行定义.

272 {
273 if (_ceflistener != nilptr){
274 _ceflistener.reportJavascriptResult(this, browserId, frameId, context, result);
275 }
276 }
void reportJavascriptResult(QCefView view, int browserId, long frameId, long context, String result)
Definition QCefView.x:101

◆ sendEvent()

void sendEvent ( String  name,
String  value 
)

在文件 QCefView.x161 行定义.

161 {
162 Qt.QtXnl.long_string2(nativehandle, Constant.CEF_BOARDCAST, name, value);
163 }

引用了 QtXnl.long_string2().

函数调用图:

◆ setOnCefListener()

void setOnCefListener ( onCefListener  _l)

在文件 QCefView.x120 行定义.

120 {
121 _ceflistener = _l;
122 }

◆ statusMessage()

void statusMessage ( String  message)

在文件 QCefView.x246 行定义.

246 {
247 if (_ceflistener != nilptr){
248 _ceflistener.statusMessage(this, message);
249 }
250 }
void statusMessage(QCefView view, String message)
Definition QCefView.x:96

◆ titleChanged()

void titleChanged ( String  title)

在文件 QCefView.x235 行定义.

235 {
236 if (_ceflistener != nilptr){
237 _ceflistener.titleChanged(this, title);
238 }
239 }
void titleChanged(QCefView view, String title)
Definition QCefView.x:94

结构体成员变量说明

◆ _ceflistener

onCefListener _ceflistener = nilptr
private

在文件 QCefView.x118 行定义.