基于WebKit的嵌入式浏览器移植和扩展技术
发布时间:2019-01-03 14:26
【摘要】:嵌入式设备与网络通讯的紧密结合,使得嵌入式浏览器在嵌入式设备中发挥着举足轻重的作用。由于嵌入式平台具有需求多样性、硬件资源有限等特点,嵌入式浏览器需要具有良好的移植性、可扩展性、占用内存少等特点。 在研究了嵌入式浏览器的发展现状和相关技术的基础上,设计实现了一款功能丰富的嵌入式浏览器,并拓宽了浏览器在嵌入式设备中的应用领域。首先,结合嵌入式终端需求和目前市场上的浏览器引擎的特性,选用了渲染速度快、占用内存少的轻量级开源浏览器引擎WebKit。根据终端的软硬件环境提供WebKit平台适配层,实现WebKit引擎在嵌入式图形平台Clutter图形库下的移植,提供Clutter下的网页浏览组件和一组应用程序编程接口,分析了外部输入事件和系统事件结构与WebKit内核事件的转换与传递,,并实现了一个简易的浏览器图形界面,支持多标签页浏览。其次,提供了嵌入式浏览器的一些辅助功能扩展的实现。网址过滤采用黑白名单控制方式实现;广告智能屏蔽扩展能够阻拦独立广告网址,并采用元素隐藏方式屏蔽网页内部广告,还可以通过用户反馈方式分析广告内容完善屏蔽功能;采用D-Bus消息机制实现了浏览器行为控制方式,包括消息对象接口和广播信号的发射,用以控制嵌入式浏览器行为和主动汇报浏览器执行结果。然后,实现了嵌入式浏览器自定义标记扩充功能,构造嵌入式终端上的基于嵌入式浏览器的应用快速开发平台。利用嵌入式浏览器的文档解析、布局排版功能,实现自定义Clutter标记与图形控件的绑定,并扩展自定义标记对应的JavaScript对象。 嵌入式浏览器不仅能够提供网页浏览基本功能,实施一些辅助功能扩展,而且可作为嵌入式终端上的核心基础软件实现一种应用程序快速开发技术。终端业务体系可以采用Web开发方式实现,并可通过JavaScript脚本实现动态交互,应用部署更方便、快速。
[Abstract]:The close combination of embedded devices and network communication makes embedded browsers play an important role in embedded devices. Because the embedded platform has the characteristics of diverse requirements and limited hardware resources, embedded browsers need to have good portability, scalability, less memory and so on. Based on the research of the current situation and related technology of embedded browser, a rich embedded browser is designed and implemented, and the application field of browser in embedded device is broadened. First of all, combining the demand of embedded terminal and the characteristics of browser engine in the current market, WebKit., a lightweight open source browser engine with high rendering speed and less memory, is selected. According to the hardware and software environment of the terminal, the WebKit platform adaptation layer is provided, the WebKit engine is transplanted under the embedded graphics platform Clutter graphics library, the web browsing component under Clutter and a set of application programming interfaces are provided. The transformation and transfer of external input events, system event structures and WebKit kernel events are analyzed, and a simple browser graphical interface is implemented to support multi-tab browsing. Secondly, it provides the implementation of some auxiliary function extension of embedded browser. Web site filtering is realized by black-and-white list control. The expansion of advertising intelligent shielding can block the independent advertising web site, and use the element hiding way to block the internal advertisement of the web page, and can also analyze the content of the advertisement through user feedback to perfect the shielding function. The behavior control mode of browser is realized by using D-Bus message mechanism, including message object interface and broadcast signal transmission, which is used to control the behavior of embedded browser and report the result of browser execution. Then, the embedded browser custom tag expansion function is implemented, and the application rapid development platform based on embedded browser is constructed on the embedded terminal. With the function of document parsing and layout of embedded browser, the binding of custom Clutter tag and graphic control is realized, and the corresponding JavaScript object of custom tag is extended. Embedded browser can not only provide the basic function of web browsing and implement some auxiliary function extensions, but also can be used as the core software of embedded terminal to realize a rapid development technology of application program. Terminal business system can be implemented by Web, and dynamic interaction can be realized by JavaScript script. The application deployment is more convenient and rapid.
【学位授予单位】:华中科技大学
【学位级别】:硕士
【学位授予年份】:2013
【分类号】:TP393.092
本文编号:2399502
[Abstract]:The close combination of embedded devices and network communication makes embedded browsers play an important role in embedded devices. Because the embedded platform has the characteristics of diverse requirements and limited hardware resources, embedded browsers need to have good portability, scalability, less memory and so on. Based on the research of the current situation and related technology of embedded browser, a rich embedded browser is designed and implemented, and the application field of browser in embedded device is broadened. First of all, combining the demand of embedded terminal and the characteristics of browser engine in the current market, WebKit., a lightweight open source browser engine with high rendering speed and less memory, is selected. According to the hardware and software environment of the terminal, the WebKit platform adaptation layer is provided, the WebKit engine is transplanted under the embedded graphics platform Clutter graphics library, the web browsing component under Clutter and a set of application programming interfaces are provided. The transformation and transfer of external input events, system event structures and WebKit kernel events are analyzed, and a simple browser graphical interface is implemented to support multi-tab browsing. Secondly, it provides the implementation of some auxiliary function extension of embedded browser. Web site filtering is realized by black-and-white list control. The expansion of advertising intelligent shielding can block the independent advertising web site, and use the element hiding way to block the internal advertisement of the web page, and can also analyze the content of the advertisement through user feedback to perfect the shielding function. The behavior control mode of browser is realized by using D-Bus message mechanism, including message object interface and broadcast signal transmission, which is used to control the behavior of embedded browser and report the result of browser execution. Then, the embedded browser custom tag expansion function is implemented, and the application rapid development platform based on embedded browser is constructed on the embedded terminal. With the function of document parsing and layout of embedded browser, the binding of custom Clutter tag and graphic control is realized, and the corresponding JavaScript object of custom tag is extended. Embedded browser can not only provide the basic function of web browsing and implement some auxiliary function extensions, but also can be used as the core software of embedded terminal to realize a rapid development technology of application program. Terminal business system can be implemented by Web, and dynamic interaction can be realized by JavaScript script. The application deployment is more convenient and rapid.
【学位授予单位】:华中科技大学
【学位级别】:硕士
【学位授予年份】:2013
【分类号】:TP393.092
【参考文献】
相关期刊论文 前10条
1 沈可;使用嵌入式Linux操作系统进行软件开发的特点及优势[J];电脑开发与应用;2001年07期
2 于小亮;;嵌入式系统应用现状及发展趋势概述[J];电脑知识与技术;2008年28期
3 肖炳坤;吕锟;郭琳晶;;基于WebKit浏览器的中间件系统架构[J];电脑知识与技术;2011年07期
4 刘撑乾,陈晓,王劲林;一种嵌入式浏览器在数字机顶盒中的实现[J];电视技术;2004年05期
5 刘小卫;何海洋;;基于WebKit的数字电视终端软件[J];中国数字电视;2011年09期
6 陈玲;;Clutter在嵌入式Linux中的研究与应用[J];电脑编程技巧与维护;2012年16期
7 唐云;;一种嵌入式浏览器中的HTML解析器的设计[J];湖南科技学院学报;2008年08期
8 解超,李善平;基于LINUX的嵌入式GUI[J];计算机工程与应用;2003年09期
9 李庆诚;彭洁;宫晓利;刘嘉欣;;嵌入式HTML文档解析器的设计与实现[J];计算机工程;2009年09期
10 涂刚,阳富民,胡贯荣;嵌入式操作系统综述[J];计算机应用研究;2000年11期
本文编号:2399502
本文链接:https://www.wllwen.com/wenyilunwen/guanggaoshejilunwen/2399502.html