File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -607,10 +607,10 @@ class MyApp : public CefApp,
607
607
608
608
#### <a name =" cefclient " ></a >CefClient
609
609
610
- CefClient提供访问browser-instance-specific的回调接口。单实例CefClient可以共数任意数量的浏览器进程 。以下为几个重要的回调:
610
+ CefClient提供访问Browser实例的回调接口。一个CefClient实现可以在任意数量的Browser进程中共享 。以下为几个重要的回调:
611
611
612
612
- 比如处理Browser的生命周期,右键菜单,对话框,通知显示, 拖曳事件,焦点事件,键盘事件等等。如果没有对某个特定的处理接口进行实现会造成什么影响,请查看cef_client.h文件中相关说明。
613
- - ** OnProcessMessageReceived** 在Render进程收到进程间消息时被调用 。更多细节,请参考[ Inter-Process Communication] ( inter-process-communication ) 一节。
613
+ - ** OnProcessMessageReceived** 在Browser收到Render进程的消息时被调用 。更多细节,请参考[ Inter-Process Communication] ( inter-process-communication ) 一节。
614
614
615
615
CefClient子类的例子:
616
616
@@ -1139,7 +1139,6 @@ var request_id = window.cefQuery({
1139
1139
window.cefQueryCancel(request_id);
1140
1140
```
1141
1141
1142
- The C++ handler looks like this:
1143
1142
对应的C++ Handler代码如下:
1144
1143
1145
1144
```
@@ -1388,7 +1387,6 @@ class MyRequestClient : public CefURLRequestClient {
1388
1387
};
1389
1388
```
1390
1389
1391
- To send the request:
1392
1390
下面的代码发送一个请求:
1393
1391
1394
1392
```
You can’t perform that action at this time.
0 commit comments