Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cordova-plugin-tbs-webview
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenProject
cordova-plugin-tbs-webview
Commits
21639421
Commit
21639421
authored
Aug 17, 2019
by
mergen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【文字说明】调整代码注释。。。增加2个类的使用方式。。。
parent
8ef14f1f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
33 deletions
+18
-33
platforms/android/src/org/apache/cordova/x5engine/X5ExposedJsApi.java
+3
-16
platforms/android/src/org/apache/cordova/x5engine/X5WebView.java
+15
-17
No files found.
platforms/android/src/org/apache/cordova/x5engine/X5ExposedJsApi.java
View file @
21639421
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
javascript 引擎桥。
用于cordova.js与系统cordova.jar通讯用的工具类,
此工具类从X5WebViewEngine实现调用
*/
package
org
.
apache
.
cordova
.
x5engine
;
...
...
platforms/android/src/org/apache/cordova/x5engine/X5WebView.java
View file @
21639421
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
/**
*
* cordova使用webview层。。。
* 在这个层面不需要设置x5引擎的相关参数...
*
* 1、用于暴露init方法。
* 2、暴露init的方法的目的可能是 X5WebViewEngine的init方法cordova层面去调用,在这个层面去进行webview的init
* init方法的其他作用是判断两个client是否为空,如果为空,初始化一个新的,复制进去
* 3、暴露的其他办法有
* getCordovaWebView 用于从系统层面获取cordova的webview
*
* 一个webview有两个client,分别是webclient和chromewebclient
* setWebViewClient 给webview设置webviewclient
* setWebChromeClient 给webview设置webchromeclient
*/
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
*/
package
org
.
apache
.
cordova
.
x5engine
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment