[go: up one dir, main page]

CN103646028B - Highlight regions acquisition methods and equipment - Google Patents

Highlight regions acquisition methods and equipment Download PDF

Info

Publication number
CN103646028B
CN103646028B CN201310536019.3A CN201310536019A CN103646028B CN 103646028 B CN103646028 B CN 103646028B CN 201310536019 A CN201310536019 A CN 201310536019A CN 103646028 B CN103646028 B CN 103646028B
Authority
CN
China
Prior art keywords
area
highlight regions
highlighted
present
highlighted area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310536019.3A
Other languages
Chinese (zh)
Other versions
CN103646028A (en
Inventor
张炅轩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201310536019.3A priority Critical patent/CN103646028B/en
Publication of CN103646028A publication Critical patent/CN103646028A/en
Application granted granted Critical
Publication of CN103646028B publication Critical patent/CN103646028B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a kind of highlight regions acquisition methods and equipment.Wherein, highlight regions acquisition methods include:Search the accessible area of web page interlinkage;The trigger range of accessible area is obtained, and trigger range is arranged to highlight regions;Display high-brightness region, identified so that user triggers in highlight regions.Can be reached using the embodiment of the present invention needs to obtain highlight regions according to user, and then the more efficient and rational beneficial effect that web page interlinkage is carried out using highlight regions.

Description

高亮区域获取方法及设备Method and device for obtaining highlighted area

技术领域technical field

本发明涉及互联网应用领域,特别是涉及一种高亮区域获取方法及设备。The invention relates to the field of Internet applications, in particular to a method and device for acquiring a highlighted area.

背景技术Background technique

随着互联网领域的迅猛发展,如何在互联网方面的产品中增加更多人性化的设置开始受到越来越多的重视。而浏览器的相关设置中高亮区域的设置与修改一直是比较难调整的部分。高亮区域的范围通常是固定的,当手指或鼠标对着高亮部分按下去时,高亮区域的范围也不会有变动。With the rapid development of the Internet field, more and more attention has been paid to how to add more humanized settings to Internet products. The setting and modification of the highlighted area in the relevant settings of the browser has always been a difficult part to adjust. The range of the highlighted area is usually fixed, and when the finger or the mouse is pressed on the highlighted area, the range of the highlighted area will not change.

高亮区域的范围部分较难调整,主要是由于许多浏览器控件(如网络浏览(WebView)控件)是不支持高亮区域的调整的,除非重新定制浏览器内核(如 WebKit内核)。或者,使用网页设计者的权限进行高亮区域部分的调整,也即,只有设计该网页的作者且符合特定的设备才可指定其区域大小,从客户端实现上是难以调整的。The range of the highlighted area is difficult to adjust, mainly because many browser controls (such as web browsing (WebView) controls) do not support the adjustment of the highlighted area unless the browser kernel (such as the WebKit kernel) is re-customized. Alternatively, use the authority of the web page designer to adjust the highlighted area, that is, only the author who designed the web page and meets the specific equipment can specify the size of the area, which is difficult to adjust from the client side.

综上可知,现有技术对于高亮区域的部分并不能对用户实现个性化定制,而是固定的、预设置好的。若预设置的高亮区域不利于用户点击,用户也无法直接修改。To sum up, it can be seen that in the prior art, the part of the highlighted area cannot be customized for the user, but is fixed and preset. If the preset highlighted area is not conducive to user clicking, the user cannot directly modify it.

发明内容Contents of the invention

鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的高亮区域获取方法及相应的高亮区域获取设备。In view of the above problems, the present invention is proposed to provide a highlight region acquisition method and a corresponding highlight region acquisition device that overcome the above problems or at least partially solve the above problems.

依据本发明的一个方面,提供了一种高亮区域获取方法,包括:查找网页链接的可访问区域;获取所述可访问区域的触发范围,并将所述触发范围设置为高亮区域;显示所述高亮区域,以便用户在所述高亮区域触发所述标识。According to one aspect of the present invention, a method for obtaining a highlighted area is provided, including: searching for an accessible area of a web page link; obtaining a trigger range of the accessible area, and setting the trigger range as the highlighted area; displaying The highlighted area, so that the user can trigger the identification in the highlighted area.

可选地,所述可访问区域包括:所述网页链接的内容显示区;或者能够对所述网页链接执行操作的标识。Optionally, the accessible area includes: a content display area of the webpage link; or an identification capable of performing operations on the webpage link.

可选地,所述网页链接包括:文字链接、图片链接或视频链接。Optionally, the web page link includes: a text link, a picture link or a video link.

可选地,将所述触发范围设置为高亮区域之前,包括:反射获取所述触发范围对应的高亮区域;将所述高亮区域设置为可访问的公开域。Optionally, before setting the trigger range as a highlighted area, the method includes: reflectively acquiring a highlighted area corresponding to the triggered range; and setting the highlighted area as an accessible public domain.

可选地,将所述高亮区域设置为可访问的公开域,包括:将所述高亮区域的setAccessible参数修改为true。Optionally, setting the highlighted area as an accessible public domain includes: modifying the setAccessible parameter of the highlighted area to true.

可选地,所述方法适用于安卓系统。Optionally, the method is applicable to the Android system.

依据本发明的另一个方面,还提供了一种高亮区域获取设备,包括:查找模块,配置为查找网页链接的可访问区域;设置模块,配置为获取所述可访问区域的触发范围,并将所述触发范围设置为高亮区域;显示模块,配置为显示所述高亮区域,以便用户在所述高亮区域触发所述标识。According to another aspect of the present invention, there is also provided a device for acquiring a highlighted area, including: a search module configured to find an accessible area of a webpage link; a setting module configured to acquire a trigger range of the accessible area, and The trigger range is set as a highlighted area; the display module is configured to display the highlighted area, so that the user can trigger the mark in the highlighted area.

可选地,所述可访问区域包括:所述网页链接的内容显示区;或者能够对所述网页链接执行操作的标识。Optionally, the accessible area includes: a content display area of the webpage link; or an identification capable of performing operations on the webpage link.

可选地,所述设置模块还配置为:Optionally, the setting module is also configured to:

将所述触发范围设置为高亮区域之前,反射获取所述触发范围对应的高亮区域;以及Before setting the trigger range as the highlight area, reflection acquires the highlight area corresponding to the trigger range; and

将所述高亮区域设置为可访问的公开域。The highlighted area is set as an accessible public domain.

可选地,所述设置模块还配置为:Optionally, the setting module is also configured to:

将所述高亮区域的setAccessible参数修改为true。Modify the setAccessible parameter of the highlighted area to true.

依据本发明实施例,首先查找到网页链接的可访问区域,并获取可访问区域的触发范围,其次将触发范围设置为高亮区域,以便用户在该高亮区域触发标识。采用本发明实施例能够解决现有技术中提及的仅网页设计者具有权限调整高亮区域,导致无法根据用户意愿对高亮区域进行个性化定制的问题。另外,依据本发明实施例,能够根据用户输入的修改消息对高亮区域进行修改及设置,解决了现有技术中提及的从客户端上难以调整高亮区域大小的问题。采用本发明实施例能够达到根据用户需要对高亮区域进行个性化设置与修改,进而更加高效合理利用高亮区域所显示的可访问区域的触发范围进行网页链接的有益效果。According to the embodiment of the present invention, firstly, the accessible area of the web page link is found, and the trigger range of the accessible area is obtained, and secondly, the trigger range is set as a highlighted area, so that the user can trigger the logo in the highlighted area. Adopting the embodiment of the present invention can solve the problem mentioned in the prior art that only the web page designer has the authority to adjust the highlighted area, resulting in the inability to personalize the highlighted area according to the user's wishes. In addition, according to the embodiment of the present invention, the highlighted area can be modified and set according to the modification message input by the user, which solves the problem in the prior art that it is difficult to adjust the size of the highlighted area from the client. By adopting the embodiments of the present invention, it is possible to personalize and modify the highlighted area according to the user's needs, and then more efficiently and rationally use the trigger range of the accessible area displayed in the highlighted area to link the webpage.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.

根据下文结合附图对本发明具体实施例的详细描述,本领域技术人员将会更加明了本发明的上述以及其他目的、优点和特征。Those skilled in the art will be more aware of the above and other objects, advantages and features of the present invention according to the following detailed description of specific embodiments of the present invention in conjunction with the accompanying drawings.

附图说明Description of drawings

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same components. In the attached picture:

图1示出了根据本发明一个实施例的高亮区域获取方法的处理流程图;FIG. 1 shows a processing flowchart of a method for obtaining a highlighted region according to an embodiment of the present invention;

图2示出了根据本发明一个实施例的高亮区域修改方法的处理流程图;FIG. 2 shows a processing flowchart of a method for modifying a highlighted region according to an embodiment of the present invention;

图3示出了根据本发明一个实施例的高亮区域设置方法的处理流程图;Fig. 3 shows a processing flowchart of a method for setting a highlighted area according to an embodiment of the present invention;

图4示出了根据本发明一个优选实施例的高亮区域获取方法的处理流程图;FIG. 4 shows a processing flowchart of a method for obtaining a highlighted region according to a preferred embodiment of the present invention;

图5示出了根据本发明一个优选实施例的高亮区域修改方法的处理流程图;FIG. 5 shows a processing flowchart of a method for modifying a highlighted region according to a preferred embodiment of the present invention;

图6示出了根据本发明一个优选实施例的高亮区域设置方法的处理流程图;FIG. 6 shows a processing flowchart of a method for setting a highlighted area according to a preferred embodiment of the present invention;

图7示出了根据本发明一个优选实施例的高亮区域获取、修改及设置的界面图;Fig. 7 shows an interface diagram of obtaining, modifying and setting a highlighted area according to a preferred embodiment of the present invention;

图8示出了根据本发明一个实施例的高亮区域获取设备的结构示意图;Fig. 8 shows a schematic structural diagram of a device for obtaining a highlighted region according to an embodiment of the present invention;

图9示出了根据本发明一个实施例的高亮区域修改设备的结构示意图;以及FIG. 9 shows a schematic structural diagram of a highlight region modifying device according to an embodiment of the present invention; and

图10示出了根据本发明一个实施例的高亮区域设置设备的结构示意图。Fig. 10 shows a schematic structural diagram of a highlight area setting device according to an embodiment of the present invention.

具体实施方式detailed description

在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other device. Various generic systems can also be used with the teachings based on this. The structure required to construct such a system is apparent from the above description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.

随着移动设备的普及,网页浏览器正逐渐向移动设备的方向发展。然而,由于移动设备屏幕尺寸较小,使得对移动设备屏幕的触摸点击不能足够准确。例如,用户在移动设备上用手指轻触一个网页链接时,如果链接的可访问区域比较大,则不会被误按,反之,若链接的可访问区域比较小,用户轻触网页链接,网页链接无法反应,则需要用户仔细寻找可触摸的点,无法快捷高效地点开选中的链接。With the popularization of mobile devices, web browsers are gradually developing towards mobile devices. However, due to the small screen size of the mobile device, the touch and click on the screen of the mobile device cannot be accurate enough. For example, when a user touches a webpage link with a finger on a mobile device, if the accessible area of the link is relatively large, it will not be pressed by mistake; If the link cannot respond, the user needs to carefully look for the touchable point, and the selected link cannot be opened quickly and efficiently.

现有技术中提供了一种高亮区域进行修改的方法,该方法通过修改内核达到对高亮区域进行修改的目的。在具体实施时,这一方法通常由个别定制的 WebKit控件的浏览器所用,也即通过修改浏览器内核组件,在内核中修改高亮区域范围,然后将其捆绑到应用程序安装包中实现。采用现有技术提供的高亮区域进行修改的方法虽然可以在多数设备上实现修改“高亮区域”的功能,但在实际的产品体验上,会存在应用程序安装包较大(通常比没有采用修改定制WebKit组件的浏览器要多占用5MB到6MB的存储空间)、无法运用更新的系统(例如安卓(Android))的新特征等问题。A method for modifying a highlighted area is provided in the prior art, and the method achieves the purpose of modifying the highlighted area by modifying a kernel. In actual implementation, this method is usually used by individual customized WebKit control browsers, that is, by modifying the browser kernel components, modifying the range of the highlighted area in the kernel, and then bundling it into the application installation package. Although the method of modifying the highlighted area provided by the existing technology can realize the function of modifying the "highlighted area" on most devices, in the actual product experience, there will be a larger application installation package (usually larger than that without using Modifying the browser of the custom WebKit component will take up 5MB to 6MB of storage space), the inability to use the new features of the updated system (such as Android (Android)), etc.

以Android为例对现有技术提供的高亮区域的修改方法进行说明。在本实施例中,通过提取Android的WebKit组件,然后修改、重新编译、捆绑等方式实现内核修改,从底层实现了修改高亮区域范围的功能。其具体执行过程包括:Taking Android as an example, the method for modifying the highlighted area provided by the prior art is described. In this embodiment, the kernel modification is realized by extracting the WebKit component of Android, and then modifying, recompiling, bundling, etc., realizing the function of modifying the range of the highlighted area from the bottom layer. Its specific implementation process includes:

步骤1、下载对应Android版本的WebKit组件的完整源代码;Step 1. Download the complete source code of the WebKit component corresponding to the Android version;

步骤2、应用实现(或部分实现)修改内核的算法来修改WebKit组件;Step 2. The application implements (or partially implements) the algorithm for modifying the kernel to modify the WebKit component;

步骤3、重新编译修改后的WebKit组件,生成Android动态链接库文件,通常该文件大小为10MB;Step 3, recompile the modified WebKit component to generate the Android dynamic link library file, usually the file size is 10MB;

步骤4、下载对应Android版本的WebView控件的完整源代码;Step 4. Download the complete source code of the WebView control corresponding to the Android version;

步骤5、应用实现(或部分实现)修改内核的算法来修改WebView控件;Step 5, the application implements (or partially implements) the algorithm of modifying the kernel to modify the WebView control;

步骤6、将步骤5修改后的WebView控件与在先的步骤2修改后的WebKit 组件进行关联;Step 6, associating the WebView control modified in step 5 with the WebKit component modified in previous step 2;

步骤7、将修改后的WebKit组件加入到该应用程序的安装包中。Step 7, adding the modified WebKit component into the installation package of the application program.

虽然修改内核这一方法适用于各个平台,但在Android平台上(不排除其它平台)需“修改WebKit组件”才得以实现,其主要原因正如相关技术所述, WebView控件本身不支持高亮区域范围的调整,除非绕过WebView控件重新修改WebKit组件。而浏览器内核组件通常为操作系统的内核之一,为了兼容较旧的Android操作系统版本,必须要使用能够支持最旧的Android版本所对应的Webkit(浏览器内核组件的一个产品,下同)的版本,就必须放弃或以适配等方式来实现更高的Android版本的功能。Although the method of modifying the kernel is applicable to all platforms, on the Android platform (not excluding other platforms), it needs to be realized by "modifying the WebKit component". The main reason is that the WebView control itself does not support the range of the highlighted area as described in related technologies. adjustments, unless the WebKit component is reworked by bypassing the WebView control. The browser kernel component is usually one of the kernels of the operating system. In order to be compatible with older Android operating system versions, it is necessary to use Webkit (a product of the browser kernel component, the same below) that can support the oldest Android version. version, you must give up or adapt to achieve a higher version of the Android function.

由上述分析可知,修改内核这一方式的缺点主要有:From the above analysis, we can see that the main disadvantages of modifying the kernel are:

1、无法充分运用新的系统(例如Android)版本的特性,影响用户体验;1. Unable to make full use of the features of the new system (such as Android) version, which affects the user experience;

2、手机浏览器的安装包会增大很多,一般为5MB到6MB字节不等,不利于其网络的流通,且因安装包较大,安装过程较慢;2. The installation package of the mobile browser will increase a lot, generally ranging from 5MB to 6MB bytes, which is not conducive to the circulation of its network, and because the installation package is large, the installation process is slow;

3、修改浏览器内核组件存在一定的风险,加大开发和适配的难度,有可能导致浏览器崩溃而难以查出具体原因。3. There are certain risks in modifying the browser kernel components, increasing the difficulty of development and adaptation, which may cause the browser to crash and it is difficult to find out the specific reason.

基于现有技术存在的上述问题,本发明实施例实现了一种不修改浏览器内核的前提下,实现获取并修改“高亮区域”的功能,不仅性能上不受任何影响,开发较为简易,且支持大多数平台或系统或设备(例如Android)。由于修改高亮区域为个性化功能中较为重要的一环,该发明实施例可应用的范围也较为宽广,任何具备高亮功能的器件或设备或终端或系统等均可使用。Based on the above-mentioned problems existing in the prior art, the embodiment of the present invention implements a function of acquiring and modifying the "highlight area" without modifying the browser kernel, which not only does not affect performance, but also facilitates development. And supports most platforms or systems or devices (such as Android). Since modifying the highlighted area is a relatively important part of the personalized function, the scope of application of this embodiment of the invention is relatively wide, and any device or device or terminal or system with a highlighted function can be used.

基于上述发明构思,本发明实施例提供了一种高亮区域获取方法。图1示出了根据本发明一个实施例的高亮区域获取方法的处理流程图。如图1所示,该流程至少包括步骤S102至步骤S106。Based on the above inventive concept, an embodiment of the present invention provides a method for acquiring a highlighted region. Fig. 1 shows a processing flowchart of a method for acquiring a highlighted region according to an embodiment of the present invention. As shown in FIG. 1, the process includes at least step S102 to step S106.

步骤S102、查找网页链接的可访问区域。Step S102, searching the accessible area of the web page link.

步骤S104、获取步骤S102中查找到的可访问区域的触发范围,并将该触发范围设置为高亮区域。Step S104, acquiring the trigger range of the accessible area found in step S102, and setting the trigger range as the highlighted area.

步骤S106、显示步骤S104中设置的高亮区域,以便用户在该高亮区域触发标识。Step S106 , displaying the highlighted area set in step S104 , so that the user can trigger a marker in the highlighted area.

依据本发明实施例,首先查找到网页链接的可访问区域,并获取可访问区域的触发范围,其次将触发范围设置为高亮区域,以便用户在该高亮区域触发标识。采用本发明实施例能够解决现有技术中提及的仅网页设计者具有权限调整高亮区域,导致无法根据用户意愿对高亮区域进行个性化定制的问题。另外,在本发明实施例中,将可访问区域的触发范围以高亮区域显示,能够让用户轻松获取可访问区域提供的信息,并在此基础上能够显而易见地让用户明确获知可触发范围,避免因触发范围不确定导致的用户操作不准确的问题。According to the embodiment of the present invention, firstly, the accessible area of the web page link is found, and the trigger range of the accessible area is obtained, and secondly, the trigger range is set as a highlighted area, so that the user can trigger the logo in the highlighted area. Adopting the embodiment of the present invention can solve the problem mentioned in the prior art that only the web page designer has the authority to adjust the highlighted area, resulting in the inability to personalize the highlighted area according to the user's wishes. In addition, in the embodiment of the present invention, the trigger range of the accessible area is displayed as a highlighted area, so that the user can easily obtain the information provided by the accessible area, and on this basis, the user can clearly know the triggerable range, Avoid the problem of inaccurate user operations caused by uncertain trigger ranges.

图1中的步骤S102提及需要查找网页链接的可访问区域,具体地,在本发明实施例中,步骤S102中提及网页链接可以是任意链接,例如可以是文字链接,也可以是图片链接或者视频链接等其他网页链接,本发明实施例并不对此加以限定。在本发明实施例中,可访问区域可以是网页链接的内容显示区域,也可以是能够对网页链接执行操作的标识等能够提示用户能够对当前网页链接进行开启或关闭或其他操作的标识,例如网页链接右上角的关闭标识,通常以×的形式存在,用户点击该关闭标识后,网页链接关闭。Step S102 in Fig. 1 mentioned that it is necessary to find the accessible area of the webpage link, specifically, in the embodiment of the present invention, the webpage link mentioned in step S102 can be any link, for example, it can be a text link or a picture link Or other webpage links such as video links, which are not limited in this embodiment of the present invention. In this embodiment of the present invention, the accessible area may be the content display area of the web page link, or an identification that can perform operations on the web page link, etc., that can prompt the user to open or close the current web page link or perform other operations, for example The closing sign in the upper right corner of the webpage link usually exists in the form of an X. After the user clicks on the closing sign, the webpage link is closed.

查找到可访问区域之后,本发明实施例反射获取触发范围对应的高亮区域,并将该高亮区域设置为可访问的公开域。优选地,本发明实施例中,通过将高亮区域的setAccessible参数修改为true,将高亮区域设置为可访问的公开域。After the accessible area is found, the embodiment of the present invention reflectively acquires the highlighted area corresponding to the trigger range, and sets the highlighted area as an accessible public domain. Preferably, in the embodiment of the present invention, the highlighted area is set as an accessible public domain by modifying the setAccessible parameter of the highlighted area to true.

上述操作执行完毕之后,本发明实施例继续执行如图1所示的步骤S104,获取可访问区域的触发范围,并将该触发范围设置为高亮区域。设置高亮区域完毕之后,执行如图1所示的步骤S106,显示高亮区域,以便用户在高亮区域触发标识。另外,由于Android系统为目前大多数智能手机的系统,采用 Android系统为本发明的优选实施例更易于理解本发明实施例,进一步能够将本发明实施例阐述得更加清楚简洁,优选的,本发明实施例适用于Android系统。但本发明实施例所提供的方法不仅仅适用于Android系统,同样适用于其他需要进行高亮颜色调整的系统,例如ios系统、塞班系统、windows系统等等。After the above operations are performed, the embodiment of the present invention continues to execute step S104 as shown in FIG. 1 to obtain the trigger range of the accessible area, and set the trigger range as the highlighted area. After the highlight area is set, step S106 shown in FIG. 1 is executed to display the highlight area so that the user can trigger a sign in the highlight area. In addition, since the Android system is the system of most smart phones at present, it is easier to understand the embodiment of the present invention by using the Android system as the preferred embodiment of the present invention, and it can further explain the embodiment of the present invention more clearly and concisely. Preferably, the present invention The embodiment is applicable to the Android system. However, the method provided by the embodiment of the present invention is not only applicable to the Android system, but also applicable to other systems requiring highlight color adjustment, such as ios system, Symbian system, windows system and so on.

依据本发明实施例提供的高亮区域获取方法,能够帮助用户更加快速便捷地分辨网页链接的可访问区域。但是,部分网页链接的可访问区域过小,导致用户准确进行点击较为困难。另外,在实际应用中还存在部分网页链接的可访问区域过大,用户可能会在无意识的情况下触发网页链接的可访问区域,对网页链接执行相应操作。这些问题严重影响用户体验,导致用户体验下降。The method for obtaining a highlighted region provided by an embodiment of the present invention can help users to identify accessible regions of webpage links more quickly and conveniently. However, the accessible area of some webpage links is too small, making it difficult for users to click accurately. In addition, in practical applications, the accessible area of some webpage links is too large, and the user may unknowingly trigger the accessible area of the webpage link and perform corresponding operations on the webpage link. These problems seriously affect the user experience, resulting in a decline in user experience.

为解决上述技术问题,本发明还提供了一种高亮区域修改方法。图2示出了根据本发明一个实施例的高亮区域修改方法的处理流程图。如图2所示,该流程至少包括步骤S202至步骤S206。In order to solve the above technical problems, the present invention also provides a method for modifying a highlighted area. Fig. 2 shows a processing flowchart of a method for modifying a highlighted area according to an embodiment of the present invention. As shown in FIG. 2, the process includes at least step S202 to step S206.

步骤S202、获取高亮区域范围的边界参数。Step S202, acquiring boundary parameters of the highlighted region range.

步骤S204、接收用户输入的修改消息,其中,上述修改消息中携带有边界参数的修改参数。Step S204, receiving a modification message input by the user, wherein the modification message carries modification parameters of boundary parameters.

步骤S206、根据修改参数对边界参数进行修改,生成修改后的高亮区域并显示。Step S206, modifying the boundary parameters according to the modification parameters, generating and displaying a modified highlighted area.

依据本发明实施例,获取高亮区域范围的边界参数,并根据用户输入的修改参数对边界参数进行修改。即,在本发明实施例中,高亮区域范围能够根据用户需求进行修改,例如,若网页链接的可访问区域过小,用户操作不变,则可以将覆盖可访问区域的高亮区域部分增大,使得用户能够方便操作;再例如,若网页链接的可访问区域过大,容易误操作,则可以将覆盖可访问区域的高亮区域范围缩小,从而避免被用户进行其他操作时误触摸。因此,本发明实施例能够达到修改高亮区域范围的目的,从而提升用户体验。According to the embodiment of the present invention, the boundary parameters of the highlighted area range are obtained, and the boundary parameters are modified according to the modification parameters input by the user. That is, in the embodiment of the present invention, the range of the highlighted area can be modified according to the needs of the user. For example, if the accessible area of the web page link is too small and the user operation remains unchanged, the highlighted area that covers the accessible area can be enlarged. For example, if the accessible area of a webpage link is too large and it is easy to misuse, the highlighted area covering the accessible area can be narrowed to avoid being accidentally touched by the user when performing other operations. Therefore, the embodiment of the present invention can achieve the purpose of modifying the range of the highlighted area, thereby improving user experience.

需要说明地是,执行如图2所示的步骤之前,首先反射获取高亮区域。其次,将高亮区域设置为可访问的公开域。优选地,本发明实施例中,通过将高亮区域的setAccessible参数修改为true的方式将高亮区域设置为可访问的公开域。如图2所示,获取到网页链接的高亮区域之后,执行步骤S202,获取高亮区域范围的边界参数。高亮区域的边界参数获取完毕之后,根据步骤S204,接收用户输入的携带有边界参数的修改消息,根据用户输入的修改消息对高亮区域进行修改。It should be noted that, before performing the steps shown in FIG. 2 , the highlight region is acquired by reflection first. Second, set the highlighted region as an accessible public domain. Preferably, in the embodiment of the present invention, the highlighted area is set as an accessible public domain by modifying the setAccessible parameter of the highlighted area to true. As shown in FIG. 2 , after the highlighted area of the web page link is acquired, step S202 is executed to acquire boundary parameters of the highlighted area range. After the boundary parameters of the highlighted area are acquired, according to step S204, the modification message carrying the boundary parameters input by the user is received, and the highlighted area is modified according to the modification message input by the user.

本发明实施例中,根据用户输入的修改消息对高亮区域进行修改时,至少修改边界参数中的一个。具体地,当高亮区域为矩形时,边界参数包括左边框参数、右边框参数、上边框参数以及下边框参数中的任意一个或多个。当针对矩形高亮区域的边界参数进行修改时,选择上下左右四个边框中的至少一个,对其进行扩大边界参数或者缩小边界参数的操作以修改高亮区域范围。当然,高亮区域本身除矩形也还可以是其他任意形状,例如圆形、正方形、梯形、五边形、六边形、不规则图形等,根据具体情况选定不同的形状。选择的形状不同,其相应的边界参数也不同。In the embodiment of the present invention, at least one of the boundary parameters is modified when the highlighted region is modified according to the modification message input by the user. Specifically, when the highlighted area is a rectangle, the boundary parameters include any one or more of a left border parameter, a right border parameter, an upper border parameter, and a lower border parameter. When modifying the boundary parameters of the rectangular highlighted area, select at least one of the four borders, up, down, left, and right, and perform operations on expanding or reducing the boundary parameters to modify the range of the highlighted area. Certainly, besides rectangle, the highlighted area itself can also be in other arbitrary shapes, such as circle, square, trapezoid, pentagon, hexagon, irregular figure, etc., and different shapes can be selected according to specific conditions. Depending on the selected shape, the corresponding boundary parameters are also different.

另外,本发明实施例中,针对不同边界进行修改时,修改参数可以是同一参数,也可以是不同参数,根据高亮区域的不同做不同选择,以便更加高效合理修改高亮区域。例如,浏览新闻的网页,由于信息量较大,每一个新闻的链接都紧密显示在网页上,通常情况下,每一个新闻的链接的高亮区域比较小,即手指点击链接的区域范围也会变小,容易存在点击却没有反应的情况,通过本发明实施例,能够将链接的可访问区域设置为高亮区域之后进行放大,以便用户进入选择的链接。根据修改参数对边界参数进行修改之后,执行步骤S206,生成修改后的高亮区域并显示。In addition, in the embodiment of the present invention, when modifying different boundaries, the modification parameters can be the same parameter or different parameters, and different selections can be made according to different highlighted regions, so as to modify the highlighted regions more efficiently and reasonably. For example, when browsing news webpages, due to the large amount of information, the links of each news are closely displayed on the webpage. Usually, the highlighted area of each news link is relatively small, that is, the area where the finger clicks on the link will also be small. If it becomes smaller, it is easy to click but there is no response. Through the embodiment of the present invention, the accessible area of the link can be set as a highlighted area and then enlarged, so that the user can enter the selected link. After the boundary parameters are modified according to the modification parameters, step S206 is executed to generate and display a modified highlighted area.

本发明实施例中,不仅能够对高亮区域进行修改,还能够对高亮区域进行个性化设置,以便用户更加高效合理地通过点击高亮区域所展示的可触发范围进行网页链接。图3示出了根据本发明一个实施例的高亮区域设置方法的处理流程图。如图3所示,该流程至少包括步骤S302至步骤S308。In the embodiment of the present invention, not only the highlighted area can be modified, but also the highlighted area can be personalized, so that the user can click on the triggerable range displayed in the highlighted area to link to the webpage more efficiently and reasonably. Fig. 3 shows a processing flowchart of a method for setting a highlighted area according to an embodiment of the present invention. As shown in FIG. 3, the process includes at least step S302 to step S308.

步骤S302、查找网页链接的可访问区域。Step S302, searching for the accessible area of the web page link.

步骤S304、获取步骤S302中查找的可访问区域的触发范围,并将该触发范围设置为高亮区域。Step S304. Obtain the trigger range of the accessible area found in step S302, and set the trigger range as the highlighted area.

步骤S306、获取步骤S304中设置的高亮区域的边界参数以及用户输入的修改消息,其中,修改消息中携带有边界参数的修改参数。Step S306, obtaining the boundary parameter of the highlighted area set in step S304 and the modification message input by the user, wherein the modification message carries the modification parameter of the boundary parameter.

步骤S308、根据修改参数对高亮区域的边界参数进行修改,生成修改后的高亮区域并显示。Step S308, modifying the boundary parameters of the highlighted region according to the modified parameters, generating and displaying the modified highlighted region.

依据本发明实施例,首先查找到网页链接的可访问区域,并获取可访问区域的触发范围,其次将触发范围设置为高亮区域,以便用户在该高亮区域触发标识。采用本发明实施例能够解决现有技术中提及的仅网页设计者具有权限调整高亮区域,导致无法根据用户意愿对高亮区域进行个性化定制的问题。另外,依据本发明实施例,能够根据用户输入的修改消息对高亮区域进行修改及设置,解决了现有技术中提及的从客户端上难以调整高亮区域大小的问题。采用本发明实施例能够达到根据用户需要对高亮区域进行个性化设置与修改,进而更加高效合理利用高亮区域所显示的可访问区域的触发范围进行网页链接操作的有益效果。According to the embodiment of the present invention, firstly, the accessible area of the web page link is found, and the trigger range of the accessible area is obtained, and secondly, the trigger range is set as a highlighted area, so that the user can trigger the logo in the highlighted area. Adopting the embodiment of the present invention can solve the problem mentioned in the prior art that only the web page designer has the authority to adjust the highlighted area, resulting in the inability to personalize the highlighted area according to the user's wishes. In addition, according to the embodiment of the present invention, the highlighted area can be modified and set according to the modification message input by the user, which solves the problem in the prior art that it is difficult to adjust the size of the highlighted area from the client. By adopting the embodiment of the present invention, the highlighted area can be personalized and modified according to the user's needs, and the beneficial effect of using the trigger range of the accessible area displayed in the highlighted area more efficiently and rationally to perform web page linking operations can be achieved.

具体地,如图3所示,该流程起始于步骤S302,查找网页链接的可访问区域。本发明实施例中,网页链接可以是文字链接,还可以是图片链接以及视频链接等网页链接,本发明实施例并不对此加以限定。另外,本发明实施例中,可访问区域可以是网页链接的内容显示区域,还可以是能够对网页链接执行操作的标识等能够提示用户点击该区域即可进入当前网页链接的标识。Specifically, as shown in FIG. 3 , the process starts at step S302 , searching for accessible areas of webpage links. In the embodiment of the present invention, the webpage link may be a text link, and may also be a webpage link such as a picture link or a video link, which is not limited in the embodiment of the present invention. In addition, in the embodiment of the present invention, the accessible area may be the content display area of the webpage link, and may also be an identifier that can perform operations on the webpage link, such as an identifier that can prompt the user to click the area to enter the current webpage link.

查找到可访问区域之后,本发明实施例继续执行如图3所示的步骤S304,获取可访问区域的触发范围,并将触发范围设置为高亮区域。执行完如图3所示的步骤S304,即获取到高亮区域之后,将高亮区域设置为可访问的公开域。优选地,本发明实施例中,通过将高亮区域的setAccessible参数修改为true 的方式将高亮区域设置为可访问的公开域。After the accessible area is found, the embodiment of the present invention continues to execute step S304 as shown in FIG. 3 to obtain the trigger range of the accessible area, and set the trigger range as the highlighted area. After step S304 shown in FIG. 3 is executed, that is, after the highlighted area is acquired, the highlighted area is set as an accessible public domain. Preferably, in the embodiment of the present invention, the highlighted area is set as an accessible public domain by modifying the setAccessible parameter of the highlighted area to true.

将高亮区域设置为可访问的公开域之后,执行步骤S306,获取高亮区域的边界参数以及用户输入的修改消息,其中,修改消息中携带有边界参数的修改参数。接受用户输入的修改消息之后,执行步骤S308,根据修改消息中携带的修改参数对边界参数进行修改,然后生成修改后的高亮区域并显示。After the highlighted area is set as an accessible public domain, step S306 is executed to obtain the boundary parameters of the highlighted area and the modification message input by the user, wherein the modification message carries the modification parameters of the boundary parameters. After the modification message input by the user is accepted, step S308 is executed to modify the boundary parameters according to the modification parameters carried in the modification message, and then generate and display a modified highlighted area.

本发明实施例中,根据用户输入的修改消息对高亮区域进行修改时,至少修改边界参数中的一个。具体地,当高亮区域为矩形时,边界参数包括左边框参数、右边框参数、上边框参数以及下边框参数中的任意一个或多个。当针对矩形高亮区域的边界参数进行修改时,选择上下左右四个边框中的至少一个,对其进行扩大边界参数或者缩小边界参数的操作以修改高亮区域范围。当然,高亮区域本身除矩形也还可以是其他任意形状,例如圆形、正方形、梯形、五边形、六边形、不规则图形等,根据具体情况选定不同的形状。选择的形状不同,其相应的边界参数也不同。In the embodiment of the present invention, at least one of the boundary parameters is modified when the highlighted region is modified according to the modification message input by the user. Specifically, when the highlighted area is a rectangle, the boundary parameters include any one or more of a left border parameter, a right border parameter, an upper border parameter, and a lower border parameter. When modifying the boundary parameters of the rectangular highlighted area, select at least one of the four borders, up, down, left, and right, and perform operations on expanding or reducing the boundary parameters to modify the range of the highlighted area. Certainly, besides rectangle, the highlighted area itself can also be in other arbitrary shapes, such as circle, square, trapezoid, pentagon, hexagon, irregular figure, etc., and different shapes can be selected according to specific conditions. Depending on the selected shape, the corresponding boundary parameters are also different.

本发明实施例中,针对不同边界进行修改时,修改参数可以是同一参数,也可以是不同参数,根据高亮区域的不同做不同选择,以便更加高效合理修改高亮区域。另外,由于Android系统为目前大多数智能手机的系统,采用 Android系统为本发明的优选实施例更易于理解本发明实施例,进一步能够将本发明实施例阐述得更加清楚简洁,优选的,本发明实施例适用于Android系统。但本发明实施例所提供的方法不仅仅适用于Android系统,同样适用于其他需要进行高亮颜色调整的系统,例如ios系统、塞班系统、windows系统等等。In the embodiment of the present invention, when modifying different boundaries, the modification parameters can be the same parameter or different parameters, and different selections can be made according to different highlighted regions, so as to modify the highlighted regions more efficiently and reasonably. In addition, since the Android system is the system of most smart phones at present, it is easier to understand the embodiment of the present invention by using the Android system as the preferred embodiment of the present invention, and it can further explain the embodiment of the present invention more clearly and concisely. Preferably, the present invention The embodiment is applicable to the Android system. However, the method provided by the embodiment of the present invention is not only applicable to the Android system, but also applicable to other systems requiring highlight color adjustment, such as ios system, Symbian system, windows system and so on.

实施例一Embodiment one

图4至图7示出了根据本发明一个优选实施例的高亮区域获取、修改及设置方法的示例图,用于支持上述高亮区域获取、修改及设置方法,将上述高亮区域获取、修改及设置方法阐述得更清楚明白。本优选实施例以Android系统为例,详述高亮区域获取、修改及设置的方法的流程。Fig. 4 to Fig. 7 show an example diagram of a method for acquiring, modifying and setting a highlighted region according to a preferred embodiment of the present invention, which are used to support the method for obtaining, modifying and setting the highlighted region, and acquire, modify and set the highlighted region as described above. The modification and setting methods are explained more clearly. This preferred embodiment takes the Android system as an example to describe in detail the flow of the method for obtaining, modifying and setting the highlighted area.

首先,需要对本发明优选实施例中涉及的变量以及相应行为进行定义,以供后文使用。First, the variables and corresponding behaviors involved in the preferred embodiment of the present invention need to be defined for later use.

变量定义:Variable definitions:

1、网页显示控件对象,以下称为mWebView:该类的类型为WebView,也即WebView控件。1. Web page display control object, hereinafter referred to as mWebView: the type of this class is WebView, that is, WebView control.

2、网页显示控件类的对象,以下称为WebViewOrClassicClass:类型为 Class,用于反射。Android版本如果大于或者等于4.1,则该类的对象代表的应为WebViewClassic类的对象,否则为WebView类的对象。2. The object of the webpage display control class, hereinafter referred to as WebViewOrClassicClass: the type is Class, used for reflection. If the Android version is greater than or equal to 4.1, the object of this class should represent an object of the WebViewClassic class, otherwise it should be an object of the WebView class.

3、网页显示提供器字段的对象,以下称为mWebViewClassicField:类型为Field,用于反射。3. The object of the web page display provider field, hereinafter referred to as mWebViewClassicField: the type is Field, used for reflection.

4、网页显示提供器对象,以下称为mWebViewProvider:类型为Object,用来存储真正要操作的WebView控件对象。4. Web page display provider object, hereinafter referred to as mWebViewProvider: the type is Object, used to store the actual WebView control object to be operated.

5、触摸高亮画笔字段对象,以下称为mTouchHightlightPaintField:类型为Field。5. The touch highlight paintbrush field object, hereinafter referred to as mTouchHightlightPaintField: the type is Field.

行为定义:Behavior definition:

将私有属性设为公有属性:用于反射。Make private properties public: for reflection.

将私有属性设为公有属性的具体方法为:在反射到Field或者Method的对象以后,调用上述对象的setAccessible方法,将其参数设置为true。The specific method of setting a private property as a public property is: after reflecting to the Field or Method object, call the setAccessible method of the above object, and set its parameter to true.

此处的参数设置步骤的目的为:将反射到的Field或者Method的对象从私有的,设置为可访问的公开的形式。The purpose of the parameter setting step here is to set the reflected Field or Method object from private to accessible public form.

实施时,若涉及其他对象或参数,涉及“将私有设为公有”的,均可以按照上述方法使用。During implementation, if it involves other objects or parameters, and involves "setting private to public", it can be used according to the above method.

在各变量以及相应行为定义结束后,启动Android系统关于高亮颜色获取及修改的流程。其中,流程的启动时机为:在WebView即将被初始化的时候。同时,在WebView初始化的过程中,可以设置高亮颜色对象的域为可访问的公开域。After the definition of each variable and corresponding behavior is completed, start the process of obtaining and modifying the highlighted color in the Android system. Wherein, the start time of the process is: when the WebView is about to be initialized. At the same time, during the initialization process of the WebView, the domain of the highlighted color object can be set as an accessible public domain.

需要说明的是,高亮颜色对象的域的性质的设置可以有多种实现方式,本发明实施例优选采用参数设置的方式,即,在反射获取到高亮颜色的域的对象后,将setAccessible参数修改为true,从而实现了上述目的。It should be noted that the setting of the property of the domain of the highlighted color object can be implemented in various ways, and the embodiment of the present invention preferably adopts the method of parameter setting, that is, after reflecting the object of the domain of the highlighted color, set the setAccessible The parameter is modified to true, thus achieving the above purpose.

为将高亮颜色的调整方式阐述地更清楚更明白,现提供一个完整的流程,从版本识别开始,一直到高亮区域修改完毕结束。具体请参见下文介绍(图4、图5以及图6)。In order to explain the adjustment method of the highlight color more clearly and clearly, a complete process is provided here, starting from version identification and ending with the modification of the highlighted area. For details, please refer to the introduction below (Figure 4, Figure 5 and Figure 6).

图4示出了根据本发明一个优选实施例的高亮区域获取方法的处理流程图。参见图4,该方法至少包括如下步骤:Fig. 4 shows a processing flowchart of a method for acquiring a highlighted region according to a preferred embodiment of the present invention. Referring to Figure 4, the method at least includes the following steps:

步骤S402、判断Android系统是否具备高亮功能,若是,执行步骤S404,若否,流程结束。Step S402 , judging whether the Android system has a highlight function, if yes, execute step S404 , if not, the process ends.

具体地,可以通过判断当前的Android版本是否大于2.2达到判断其是否具备高亮功能的目的,也即判断版本号(Build.VERSION_CODE)是否大于8。小于该版本的Android系统不支持高亮功能,故无法设置其区域大小,也即不必进行初始化的操作。Specifically, the purpose of judging whether the current Android version has a highlight function can be achieved by judging whether it is greater than 2.2, that is, judging whether the version number (Build.VERSION_CODE) is greater than 8. Android systems smaller than this version do not support the highlighting function, so the area size cannot be set, that is, initialization is not necessary.

步骤S404、确定Android系统所调用的类,若是应用WebViewClassic类,则执行步骤S406,若是应用WebView类,则执行步骤S408。Step S404 , determine the class called by the Android system, if the class WebViewClassic is used, execute step S406 , and if the class WebView is used, execute step S408 .

具体地,可以通过判断当前的Android版本是否大于或者等于4.1确定该系统所能够调用的类,也即判断Build.VERSION_CODE是否大于或者等于16,若不小于16,则应用WebViewClassic类,若小于16,则应用WebView类。Specifically, the class that the system can call can be determined by judging whether the current Android version is greater than or equal to 4.1, that is, judging whether the Build.VERSION_CODE is greater than or equal to 16, if it is not less than 16, then apply the WebViewClassic class, if it is less than 16, Then apply the WebView class.

步骤S406、将WebViewClassic类赋值给WebViewOrClassic类的对象,触发步骤S410。Step S406, assigning the WebViewClassic class to the object of the WebViewOrClassic class, triggering step S410.

具体地,反射WebViewOrClassic中的mProvider对象,也即调用getField 方法,其结果存储为mWebViewClassicField对象,并将私有设为公有,以便后来调用和操作;Specifically, reflect the mProvider object in WebViewOrClassic, that is, call the getField method, and store the result as the mWebViewClassicField object, and set the private as public for later calling and operation;

进一步,调用mWebViewClassicField对象的get方法,参数为mWebView,将真正需要用到的mProvider变量取出,最后赋值给mWebViewProvider。Further, call the get method of the mWebViewClassicField object, the parameter is mWebView, take out the actually needed mProvider variable, and finally assign it to mWebViewProvider.

步骤S408、将WebView类赋值给WebViewOrClassic对象,触发步骤S414。Step S408, assigning the WebView class to the WebViewOrClassic object, triggering step S414.

步骤S410、反射WebViewOrClassic中的mProvide对象,将其结果存储为mWebViewClassicField对象。Step S410, reflect the mProvide object in WebViewOrClassic, and store the result as an mWebViewClassicField object.

步骤S412、调用mWebViewClassicField对象,将mProvide变量赋值给mWebViewProvide。Step S412, calling the mWebViewClassicField object, and assigning the mProvide variable to mWebViewProvide.

步骤S414、反射WebViewOrClassic中的mTouchHightlightPaint对象,将结果赋值给mTouchHightlightPaintField对象。Step S414, reflect the mTouchHightlightPaint object in WebViewOrClassic, and assign the result to the mTouchHightlightPaintField object.

步骤S416、继承WebView类。Step S416, inheriting from the WebView class.

步骤S418、重写onDraw方法,并结束流程。Step S418, rewrite the onDraw method, and end the process.

图4所示的高亮区域获取方法的处理流程图结束后,承继步骤S418,即可进入onDraw流程。在onDraw流程中,可以实现高亮区域的设置或修改或更新等个性化措施。After the processing flow chart of the highlighted region acquisition method shown in FIG. 4 is completed, proceed to step S418 to enter the onDraw process. In the onDraw process, personalized measures such as setting or modifying or updating the highlighted area can be realized.

图5示出了根据本发明一个实施例的修改高亮区域方法的绘制流程示意图。参见图5,该方法至少包括如下步骤:Fig. 5 shows a schematic flow chart of a method for modifying a highlighted region according to an embodiment of the present invention. Referring to Figure 5, the method at least includes the following steps:

步骤S502、判断Android系统是否具备高亮功能,若是,执行步骤S504,若否,流程结束。Step S502 , judging whether the Android system has a highlight function, if yes, execute step S504 , if not, the process ends.

步骤S504、反射获取mTouchHightlightRegion对象。Step S504, acquisition of mTouchHightlightRegion object through reflection.

步骤S506、取出mTouchHightlightRect对象,并将该对象进行存储,以便后续操作的使用。Step S506, taking out the mTouchHightlightRect object, and storing the object for use in subsequent operations.

步骤S508、获取mTouchHightlightRect对象的bottom、top、right和left 对象,并将上述bottom、top、right和left四个对象存为“原left”、“原top”、“原right”和“原bottom”。Step S508, obtain the bottom, top, right and left objects of the mTouchHightlightRect object, and store the above four objects of bottom, top, right and left as "original left", "original top", "original right" and "original bottom" .

步骤S510、创建新的Rect对象。Step S510, creating a new Rect object.

步骤S512、设置新的Rect对象的bottom、top、right和left值,即根据用户输入的修改信息修改的边界参数。Step S512, setting the bottom, top, right and left values of the new Rect object, that is, the boundary parameters modified according to the modification information input by the user.

步骤S514、创建新的Region对象,初始化时将上一步设置的Rect对象作为参数传递至Region的构造函数中,以便对新的Region对象进行初始化。Step S514, create a new Region object, and pass the Rect object set in the previous step as a parameter to the constructor of Region during initialization, so as to initialize the new Region object.

步骤S516、调用mTouchHightlightRegion的set方法,将该Region对象传递进去,完成对高亮区域的修改,流程结束。Step S516, call the set method of mTouchHightlightRegion, pass the Region object in, complete the modification of the highlighted region, and the process ends.

图6示出了根据本发明一个优选实施例的高亮区域设置方法的处理流程图。参见图6,该方法至少包括如下步骤:Fig. 6 shows a processing flowchart of a method for setting a highlighted area according to a preferred embodiment of the present invention. Referring to Figure 6, the method at least includes the following steps:

步骤S602、判断Android系统是否具备高亮功能,若是,执行步骤S604,若否,流程结束。Step S602, determine whether the Android system has a highlight function, if yes, perform step S604, if not, the process ends.

具体地,可以通过判断当前的Android版本是否大于2.2达到判断其是否具备高亮功能的目的,也即判断版本号(Build.VERSION_CODE)是否大于8。小于该版本的Android系统不支持高亮功能,故无法设置其区域大小,也即不必进行初始化的操作。Specifically, the purpose of judging whether the current Android version has a highlight function can be achieved by judging whether it is greater than 2.2, that is, judging whether the version number (Build.VERSION_CODE) is greater than 8. Android systems smaller than this version do not support the highlighting function, so the area size cannot be set, that is, initialization is not necessary.

步骤S604、确定Android系统所调用的类,若是应用WebViewClassic类,则执行步骤S608,若是应用WebView类,则执行步骤S606。Step S604, determine the class invoked by the Android system, if the class WebViewClassic is used, execute step S608, and if the class WebView is used, execute step S606.

具体地,可以通过判断当前的Android版本是否大于或者等于4.1确定该系统所能够调用的类,也即判断Build.VERSION_CODE是否大于或者等于16,若不小于16,则应用WebViewClassic类,若小于16,则应用WebView类。Specifically, the class that the system can call can be determined by judging whether the current Android version is greater than or equal to 4.1, that is, judging whether the Build.VERSION_CODE is greater than or equal to 16, if it is not less than 16, then apply the WebViewClassic class, if it is less than 16, Then apply the WebView class.

步骤S606、将WebView类赋值给WebViewOrClassic对象,触发步骤S610。Step S606, assigning the WebView class to the WebViewOrClassic object, triggering step S610.

步骤S608、将WebViewClassic类赋值给WebViewOrClassic类的对象,触发步骤S610。Step S608, assigning the WebViewClassic class to the WebViewOrClassic class object, triggering step S610.

具体地,反射WebViewOrClassic中的mProvider对象,也即调用getField 方法,其结果存储为mWebViewClassicField对象,并将私有设为公有,以便后来调用和操作;Specifically, reflect the mProvider object in WebViewOrClassic, that is, call the getField method, and store the result as the mWebViewClassicField object, and set the private as public for later calling and operation;

进一步,调用mWebViewClassicField对象的get方法,参数为mWebView,将真正需要用到的mProvider变量取出,最后赋值给mWebViewProvider。Further, call the get method of the mWebViewClassicField object, the parameter is mWebView, take out the actually needed mProvider variable, and finally assign it to mWebViewProvider.

步骤S610、反射获取到高亮颜色的域的对象。Step S610 , reflecting the acquired object in the highlighted color field.

具体地,步骤S610包括以下三个步骤:Specifically, step S610 includes the following three steps:

步骤A、反射WebViewOrClassic中的mProvide对象,将其结果存储为mWebViewClassicField对象。Step A: reflect the mProvide object in WebViewOrClassic, and store the result as an mWebViewClassicField object.

步骤B、调用mWebViewClassicField对象,将mProvide变量赋值给mWebViewProvide。Step B. Call the mWebViewClassicField object, and assign the mProvide variable to mWebViewProvide.

步骤C、反射WebViewOrClassic中的mTouchHightlightPaint对象,将结果赋值给mTouchHightlightPaintField对象。Step C: reflect the mTouchHightlightPaint object in WebViewOrClassic, and assign the result to the mTouchHightlightPaintField object.

步骤S612、继承WebView类。Step S612, inheriting the WebView class.

步骤S614、重写onDraw方法进入onDraw流程。Step S614, rewrite the onDraw method and enter the onDraw process.

步骤S616、反射获取mTouchHightlightRegion对象。Step S616, reflective acquisition of mTouchHightlightRegion object.

步骤S618、取出mTouchHightlightRect对象,并将该对象进行存储,以便后续操作的使用。Step S618, taking out the mTouchHightlightRect object, and storing the object for use in subsequent operations.

步骤S620、获取mTouchHightlightRect对象的bottom、top、right和left 对象,并将上述bottom、top、right和left四个对象存为“原left”、“原top”、“原right”和“原bottom”。Step S620, obtain the bottom, top, right and left objects of the mTouchHightlightRect object, and store the above four objects of bottom, top, right and left as "original left", "original top", "original right" and "original bottom" .

步骤S622、创建新的Rect对象,设置新的Rect对象的bottom、top、right 和left值,即根据用户输入的修改信息修改的边界参数,并创建新的Region 对象,初始化时将设置的Rect对象作为参数传递至Region的构造函数中,以便对新的Region对象进行初始化。Step S622, create a new Rect object, set the bottom, top, right and left values of the new Rect object, that is, the boundary parameters modified according to the modification information input by the user, and create a new Region object, the Rect object to be set during initialization Passed as a parameter to the Region constructor to initialize a new Region object.

步骤S624、调用mTouchHightlightRegion的set方法,将该Region对象传递进去,完成对高亮区域的设置,流程结束。Step S624, call the set method of mTouchHightlightRegion, pass the Region object in, complete the setting of the highlighted region, and the process ends.

实施例二Embodiment two

图7示出了根据本发明一个优选实施例的高亮区域获取、修改及设置的界面图。如图7所示,根据本发明实施例,能够获取到网页链接的可访问区域,并将该可访问区域设置为高亮区域(即如图7所示图片的阴影部分),以便用户更加高效地辨识出网页链接的可访问区域。进一步,根据本发明实施例的高亮区域修改与设置方法,用户还能够根据个人需要对高亮区域进行个性化修改及设置,例如缩小高亮区域或者扩大高亮区域。如图7所示的界面示出了根据用户需求对高亮区域进行扩大,将高亮区域扩大至覆盖图片下面的文字,以便用户更加合理高效地根据高亮区域所显示的可触发范围进行网页链接等操作。Fig. 7 shows an interface diagram of obtaining, modifying and setting a highlighted area according to a preferred embodiment of the present invention. As shown in Figure 7, according to the embodiment of the present invention, the accessible area of the webpage link can be obtained, and the accessible area can be set as a highlighted area (that is, the shadow part of the picture shown in Figure 7), so that the user can be more efficient It can accurately identify the accessible area of the web page link. Further, according to the method for modifying and setting the highlighted area in the embodiment of the present invention, the user can also perform personalized modification and setting on the highlighted area according to personal needs, such as shrinking the highlighted area or expanding the highlighted area. The interface shown in Figure 7 shows that the highlighted area is expanded according to the user's needs, and the highlighted area is expanded to cover the text under the picture, so that the user can more reasonably and efficiently browse the webpage according to the triggerable range displayed in the highlighted area. link etc.

基于上文各优选实施例提供的高亮区域获取、修改以及设置方法,基于同一发明构思,本发明实施例提供了相应的高亮区域获取、修改以及设置设备,以实现上述高亮区域获取、修改以及设置方法。Based on the method for obtaining, modifying and setting the highlighted region provided by the preferred embodiments above, and based on the same inventive concept, the embodiment of the present invention provides a corresponding device for obtaining, modifying and setting the highlighted region, so as to realize the above-mentioned obtaining, modifying and setting the highlighted region. Modification and setting method.

图8示出了根据本发明一个实施例的高亮区域获取设备的结构示意图。参见图8,本发明实施例的高亮区域获取设备至少包括:查找模块810、设置模块820以及显示模块830。Fig. 8 shows a schematic structural diagram of a device for obtaining a highlighted region according to an embodiment of the present invention. Referring to FIG. 8 , the device for obtaining a highlighted region in the embodiment of the present invention at least includes: a search module 810 , a setting module 820 and a display module 830 .

现介绍本发明实施例的高亮区域获取设备的各器件或组成的功能以及各部分间的连接关系:Now introduce the functions of each component or component of the highlight area acquisition device in the embodiment of the present invention and the connection relationship between each part:

查找模块810,配置为查找网页链接的可访问区域。A search module 810 configured to search for accessible areas of webpage links.

设置模块820,与查找模块810耦合,配置为获取查找模块810查找的可访问区域的触发范围,并将该触发范围设置为高亮区域。The setting module 820, coupled with the search module 810, is configured to obtain the trigger range of the accessible area searched by the search module 810, and set the trigger range as the highlighted area.

显示模块830,与设置模块820耦合,配置为显示设置模块820设置的高亮区域,以便用户在该高亮区域触发所述标识。The display module 830, coupled with the setting module 820, is configured to display the highlighted area set by the setting module 820, so that the user can trigger the sign in the highlighted area.

依据本发明实施例,首先查找到网页链接的可访问区域,并获取可访问区域的触发范围,其次将触发范围设置为高亮区域,以便用户在该高亮区域触发标识。采用本发明实施例能够解决现有技术中提及的仅网页设计者具有权限调整高亮区域,导致无法根据用户意愿对高亮区域进行个性化定制的问题。另外,在本发明实施例中,将可访问区域的触发范围以高亮区域显示,能够让用户轻松获取可访问区域提供的信息,并在此基础上能够显而易见地让用户明确获知可触发范围,避免因触发范围不确定导致的用户操作不准确的问题。According to the embodiment of the present invention, firstly, the accessible area of the web page link is found, and the trigger range of the accessible area is obtained, and secondly, the trigger range is set as a highlighted area, so that the user can trigger the logo in the highlighted area. Adopting the embodiment of the present invention can solve the problem mentioned in the prior art that only the web page designer has the authority to adjust the highlighted area, resulting in the inability to personalize the highlighted area according to the user's wishes. In addition, in the embodiment of the present invention, the trigger range of the accessible area is displayed as a highlighted area, so that the user can easily obtain the information provided by the accessible area, and on this basis, the user can clearly know the triggerable range, Avoid the problem of inaccurate user operations caused by uncertain trigger ranges.

如图8所示,查找模块810查找网页链接的可访问区域。具体地,本发明实施例中,网页链接可以是任意链接,例如可以是文字链接,也可以是图片链接或者视频链接等其他网页链接,本发明实施例并不对此加以限定。在本发明实施例中,可访问区域可以是网页链接的内容显示区域,也可以是能够对网页链接执行操作的标识等能够提示用户能够对当前网页链接进行开启或关闭或其他操作的标识例如网页链接右上角的关闭标识,通常以×的形式存在,用户点击该关闭标识后,网页链接关闭。As shown in FIG. 8 , the search module 810 searches the accessible area of the web page link. Specifically, in the embodiment of the present invention, the webpage link may be any link, for example, it may be a text link, or it may be a picture link or a video link or other webpage links, which is not limited in the embodiment of the present invention. In the embodiment of the present invention, the accessible area may be the content display area of the web page link, or an identification that can perform operations on the web page link, such as an identification that can prompt the user to open or close the current web page link or perform other operations, such as a web page The close mark in the upper right corner of the link usually exists in the form of an X. After the user clicks on the close mark, the web page link is closed.

查找模块810查找到可访问区域之后,与其耦合的设置模块820反射获取触发范围对应的高亮区域,并将该高亮区域设置为可访问的公开域。优选地,本发明实施例中,通过将高亮区域的setAccessible参数修改为true,将高亮区域设置为可访问的公开域。After the search module 810 finds the accessible area, the setting module 820 coupled to it reflects the highlighted area corresponding to the acquisition trigger range, and sets the highlighted area as an accessible public domain. Preferably, in the embodiment of the present invention, the highlighted area is set as an accessible public domain by modifying the setAccessible parameter of the highlighted area to true.

上述操作执行完毕之后,设置模块820获取上述查找模块810查找到的可访问区域的触发范围,并将该触发范围设置为高亮区域。设置模块820设置高亮区域完毕之后,如图8所示,由显示模块830显示设置模块820设置的高亮区域,以便用户在该高亮区域触发所述标识。After the above operations are performed, the setting module 820 obtains the trigger range of the accessible area found by the search module 810, and sets the trigger range as the highlighted area. After the setting module 820 sets the highlighted area, as shown in FIG. 8 , the display module 830 displays the highlighted area set by the setting module 820 so that the user can trigger the sign in the highlighted area.

图9示出了根据本发明一个实施例的高亮区域修改设备的结构示意图。参见图9,本发明实施例的高亮区域修改设备至少包括:参数获取模块910、接收模块920以及修改模块930。Fig. 9 shows a schematic structural diagram of a device for modifying a highlighted region according to an embodiment of the present invention. Referring to FIG. 9 , the device for modifying a highlighted area in the embodiment of the present invention at least includes: a parameter acquisition module 910 , a receiving module 920 and a modification module 930 .

现介绍本发明实施例的高亮区域修改设备的各器件或组成的功能以及各部分间的连接关系:Now introduce the functions of each device or component of the highlighted area modifying device in the embodiment of the present invention and the connection relationship between each part:

参数获取模块910,配置为获取高亮区域范围的边界参数。The parameter acquisition module 910 is configured to acquire boundary parameters of the highlighted area range.

接收模块920,与参数获取模块910耦合,配置为接收用户输入的修改消息,其中,修改消息中携带有边界参数的修改参数。The receiving module 920 is coupled with the parameter obtaining module 910 and is configured to receive a modification message input by a user, wherein the modification message carries modification parameters of boundary parameters.

修改模块930,与接收模块920耦合,配置为根据接收模块920接收的修改参数对边界参数进行修改,生成修改后的高亮区域并显示。The modification module 930 is coupled with the receiving module 920 and is configured to modify the boundary parameters according to the modification parameters received by the receiving module 920, generate and display a modified highlighted area.

依据本发明实施例,获取高亮区域范围的边界参数,并根据用户输入的修改参数对边界参数进行修改。即,在本发明实施例中,高亮区域范围能够根据用户需求进行修改,例如,若网页链接的可访问区域过小,用户操作不便,则可以将覆盖可访问区域的高亮区域部分增大,使得用户能够方便操作;再例如,若网页链接的可访问区域过大,容易误操作,则可以将覆盖可访问区域的高亮区域范围缩小,从而避免被用户进行其他操作时误触摸。因此,本发明实施例能够达到修改高亮区域范围的目的,从而提升用户体验。According to the embodiment of the present invention, the boundary parameters of the highlighted area range are obtained, and the boundary parameters are modified according to the modification parameters input by the user. That is, in the embodiment of the present invention, the range of the highlighted area can be modified according to the needs of the user. For example, if the accessible area of the web page link is too small and it is inconvenient for the user to operate, the highlighted area covering the accessible area can be enlarged , so that the user can operate conveniently; for another example, if the accessible area of the webpage link is too large and it is easy to misuse, the highlighted area covering the accessible area can be narrowed, so as to avoid being accidentally touched by the user when performing other operations. Therefore, the embodiment of the present invention can achieve the purpose of modifying the range of the highlighted area, thereby improving user experience.

具体地,高亮区域修改设备首先反射获取高亮区域,其次,将高亮区域设置为可访问的公开域。优选地,本发明实施例中,通过将高亮区域的 setAccessible参数修改为true的方式将高亮区域设置为可访问的公开域。上述操作执行完毕之后,由如图9所示的参数获取模块910获取高亮区域范围的边界参数。获取到高亮区域的边界参数之后,接收模块920接收用户输入的携带有边界参数的修改消息,并由修改模块930根据用户输入的修改消息对高亮区域进行修改。Specifically, the device for modifying the highlighted area first acquires the highlighted area by reflection, and secondly, sets the highlighted area as an accessible public domain. Preferably, in the embodiment of the present invention, the highlighted area is set as an accessible public domain by modifying the setAccessible parameter of the highlighted area to true. After the above operations are performed, the parameter acquisition module 910 as shown in FIG. 9 acquires the boundary parameters of the highlighted area range. After obtaining the boundary parameters of the highlighted area, the receiving module 920 receives a modification message carrying the boundary parameters input by the user, and the modification module 930 modifies the highlighted area according to the modification message input by the user.

本发明实施例中,根据用户输入的修改消息对高亮区域进行修改时,至少修改边界参数中的一个。具体地,当高亮区域为矩形时,边界参数包括左边框参数、右边框参数、上边框参数以及下边框参数中的任意一个或多个。当针对矩形高亮区域的边界参数进行修改时,选择上下左右四个边框中的至少一个,对其进行扩大边界参数或者缩小边界参数的操作以改变高亮区域。当然,高亮区域本身除矩形也还可以是其他任意形状,例如圆形、正方形、梯形、五边形、六边形、不规则图形等,根据具体情况选定不同的形状。选择的形状不同,其相应的边界参数也不同。In the embodiment of the present invention, at least one of the boundary parameters is modified when the highlighted region is modified according to the modification message input by the user. Specifically, when the highlighted area is a rectangle, the boundary parameters include any one or more of a left border parameter, a right border parameter, an upper border parameter, and a lower border parameter. When modifying the boundary parameters of the rectangular highlighted area, select at least one of the four borders, up, down, left, and right, and perform operations on expanding or reducing the boundary parameters to change the highlighted area. Certainly, besides rectangle, the highlighted area itself can also be in other arbitrary shapes, such as circle, square, trapezoid, pentagon, hexagon, irregular figure, etc., and different shapes can be selected according to specific conditions. Depending on the selected shape, the corresponding boundary parameters are also different.

另外,本发明实施例中,针对不同边界进行修改时,修改参数可以是同一参数,也可以是不同参数,根据用户能够根据高亮区域的不同做不同选择,以便更加高效合理修改高亮区域。例如,浏览新闻的网页,由于信息量较大,每一个新闻的链接都紧密显示在网页上,通常情况下,每一个新闻的链接的高亮区域比较小,即手指点击链接的区域范围也会变小,容易存在点击却没有反应的情况,通过本发明实施例,能够将链接的可访问区域设置为高亮区域之后进行放大,以便用户进入选择的链接。In addition, in the embodiment of the present invention, when modifying different boundaries, the modification parameters can be the same parameter or different parameters, and the user can make different choices according to different highlighted regions, so as to modify the highlighted regions more efficiently and reasonably. For example, when browsing news webpages, due to the large amount of information, the links of each news are closely displayed on the webpage. Usually, the highlighted area of each news link is relatively small, that is, the area where the finger clicks on the link will also be small. If it becomes smaller, it is easy to click but there is no response. Through the embodiment of the present invention, the accessible area of the link can be set as a highlighted area and then enlarged, so that the user can enter the selected link.

图10示出了根据本发明一个实施例的高亮区域设置设备的结构示意图。参见图10,本发明实施例的高亮区域设置设备至少包括:查找模块1010、设置模块1020、参数获取模块1030以及修改模块1040。Fig. 10 shows a schematic structural diagram of a highlight area setting device according to an embodiment of the present invention. Referring to FIG. 10 , the highlight area setting device in the embodiment of the present invention at least includes: a search module 1010 , a setting module 1020 , a parameter acquisition module 1030 and a modification module 1040 .

现介绍本发明实施例的高亮区域设置设备的各器件或组成的功能以及各部分间的连接关系:Now introduce the functions of each component or component of the highlight area setting device according to the embodiment of the present invention and the connection relationship between each part:

查找模块1010,配置为查找网页链接的可访问区域。The search module 1010 is configured to search for accessible areas of webpage links.

设置模块1020,与查找模块1010耦合,配置为获取查找模块1010查找的可访问区域的触发范围,并将该触发范围设置为高亮区域。The setting module 1020, coupled with the search module 1010, is configured to obtain the trigger range of the accessible area searched by the search module 1010, and set the trigger range as the highlighted area.

参数获取模块1030,与设置模块1020相耦合,配置为获取高亮区域的边界参数以及用户输入的修改消息,其中,所述修改消息中携带有边界参数的修改参数。The parameter acquisition module 1030, coupled with the setting module 1020, is configured to acquire the boundary parameters of the highlighted area and the modification message input by the user, wherein the modification message carries the modification parameters of the boundary parameters.

修改模块1040,与参数获取模块1030相耦合,配置为根据参数获取模块 1030获取的修改参数对边界参数进行修改,生成修改后的高亮区域并显示。The modification module 1040, coupled with the parameter acquisition module 1030, is configured to modify the boundary parameters according to the modification parameters obtained by the parameter acquisition module 1030, and generate and display a modified highlighted area.

依据本发明实施例,首先查找到网页链接的可访问区域,并获取可访问区域的触发范围,其次将触发范围设置为高亮区域,以便用户在该高亮区域触发标识。采用本发明实施例能够解决现有技术中提及的仅网页设计者具有权限调整高亮区域,导致无法根据用户意愿对高亮区域进行个性化定制的问题。另外,依据本发明实施例,能够根据用户输入的修改消息对高亮区域进行修改及设置,解决了现有技术中提及的从客户端上难以调整高亮区域大小的问题。采用本发明实施例能够达到根据用户需要对高亮区域进行个性化设置与修改,进而更加高效合理利用高亮区域所显示的可访问区域的触发范围进行网页链接的有益效果。According to the embodiment of the present invention, firstly, the accessible area of the web page link is found, and the trigger range of the accessible area is obtained, and secondly, the trigger range is set as a highlighted area, so that the user can trigger the logo in the highlighted area. Adopting the embodiment of the present invention can solve the problem mentioned in the prior art that only the web page designer has the authority to adjust the highlighted area, resulting in the inability to personalize the highlighted area according to the user's wishes. In addition, according to the embodiment of the present invention, the highlighted area can be modified and set according to the modification message input by the user, which solves the problem in the prior art that it is difficult to adjust the size of the highlighted area from the client. By adopting the embodiments of the present invention, it is possible to personalize and modify the highlighted area according to the user's needs, and then more efficiently and rationally use the trigger range of the accessible area displayed in the highlighted area to link the webpage.

具体地,如图10所示,查找模块1010查找网页链接的可访问区域。本发明实施例中,网页链接可以是文字链接,还可以是图片链接以及视频链接等网页链接,本发明实施例并不对此加以限定。另外,本发明实施例中,可访问区域可以是网页链接的内容显示区域,还可以是能够对网页链接执行操作的标识等能够提示用户点击该区域即可进入当前网页链接的标识。Specifically, as shown in FIG. 10 , the search module 1010 searches the accessible area of the web page link. In the embodiment of the present invention, the webpage link may be a text link, and may also be a webpage link such as a picture link or a video link, which is not limited in the embodiment of the present invention. In addition, in the embodiment of the present invention, the accessible area may be the content display area of the webpage link, and may also be an identifier that can perform operations on the webpage link, such as an identifier that can prompt the user to click the area to enter the current webpage link.

查找到可访问区域之后,由设置模块1020获取可访问区域的触发范围,并将触发范围设置为高亮区域。获取到可访问区域的触发范围之后,将高亮区域设置为可访问的公开域。优选地,本发明实施例中,通过将高亮区域的 setAccessible参数修改为true的方式将高亮区域设置为可访问的公开域。After finding the accessible area, the setting module 1020 acquires the trigger range of the accessible area, and sets the trigger range as the highlighted area. After obtaining the trigger range of the accessible area, set the highlighted area as an accessible public domain. Preferably, in the embodiment of the present invention, the highlighted area is set as an accessible public domain by modifying the setAccessible parameter of the highlighted area to true.

将高亮区域设置为可访问的公开域之后,如图10所示的参数获取模块1030 获取高亮区域的边界参数以及用户输入的修改消息,其中,修改消息中携带有边界参数的修改参数。接收用户输入的修改消息之后,与参数获取模块1030 相耦合的修改模块1040根据修改消息中携带的修改参数对边界参数进行修改,然后生成修改后的高亮区域并对对其进行显示。After setting the highlighted area as an accessible public domain, the parameter acquisition module 1030 shown in FIG. 10 acquires the boundary parameters of the highlighted area and the modification message input by the user, wherein the modification message carries the modification parameters of the boundary parameters. After receiving the modification message input by the user, the modification module 1040 coupled to the parameter acquisition module 1030 modifies the boundary parameters according to the modification parameters carried in the modification message, and then generates and displays the modified highlighted area.

本发明实施例中,根据用户输入的修改消息对高亮区域进行修改时,至少修改边界参数中的一个。具体地,当高亮区域为矩形时,边界参数包括左边框参数、右边框参数、上边框参数以及下边框参数中的任意一个或多个。当针对矩形高亮区域的边界参数进行修改时,选择上下左右四个边框中的至少一个,对其进行扩大边界参数或者缩小边界参数的操作以修改高亮区域。当然,高亮区域本身除矩形也还可以是其他任意形状,例如圆形、正方形、梯形、五边形、六边形、不规则图形等,根据具体情况选定不同的形状。选择的形状不同,其相应的边界参数也不同。In the embodiment of the present invention, at least one of the boundary parameters is modified when the highlighted region is modified according to the modification message input by the user. Specifically, when the highlighted area is a rectangle, the boundary parameters include any one or more of a left border parameter, a right border parameter, an upper border parameter, and a lower border parameter. When modifying the boundary parameters of the rectangular highlighted area, select at least one of the four borders, up, down, left, and right, and perform operations on expanding or reducing the boundary parameters to modify the highlighted area. Certainly, besides rectangle, the highlighted area itself can also be in other arbitrary shapes, such as circle, square, trapezoid, pentagon, hexagon, irregular figure, etc., and different shapes can be selected according to specific conditions. Depending on the selected shape, the corresponding boundary parameters are also different.

本发明实施例中,针对不同边界进行修改时,修改参数可以是同一参数,也可以是不同参数,根据高亮区域的不同做不同选择,以便更加高效合理修改高亮区域。另外,由于Android系统为目前大多数智能手机的系统,采用 Android系统为本发明的优选实施例更易于理解本发明实施例,进一步能够将本发明实施例阐述得更加清楚简洁,优选的,本发明实施例适用于Android系统。但本发明实施例所提供的方法不仅仅适用于Android系统,同样适用于其他需要进行高亮颜色调整的系统,例如ios系统、塞班系统、windows系统等等。In the embodiment of the present invention, when modifying different boundaries, the modification parameters can be the same parameter or different parameters, and different selections can be made according to different highlighted regions, so as to modify the highlighted regions more efficiently and reasonably. In addition, since the Android system is the system of most smart phones at present, it is easier to understand the embodiment of the present invention by using the Android system as the preferred embodiment of the present invention, and it can further explain the embodiment of the present invention more clearly and concisely. Preferably, the present invention The embodiment is applicable to the Android system. However, the method provided by the embodiment of the present invention is not only applicable to the Android system, but also applicable to other systems requiring highlight color adjustment, such as ios system, Symbian system, windows system and so on.

根据上述任意一个优选实施例或多个优选实施例的组合,本发明实施例能够达到如下有益效果:According to any one of the above preferred embodiments or a combination of multiple preferred embodiments, the embodiments of the present invention can achieve the following beneficial effects:

依据本发明实施例,首先查找到网页链接的可访问区域,并获取可访问区域的触发范围,其次将触发范围设置为高亮区域,以便用户在该高亮区域触发标识。采用本发明实施例能够解决现有技术中提及的仅网页设计者具有权限调整高亮区域,导致无法根据用户意愿对高亮区域进行个性化定制的问题。另外,依据本发明实施例,能够根据用户输入的修改消息对高亮区域进行修改及设置,解决了现有技术中提及的从客户端上难以调整高亮区域大小的问题。采用本发明实施例能够达到根据用户需要对高亮区域进行个性化设置与修改,进而更加高效合理利用高亮区域所显示的可访问区域的触发范围进行网页链接操作的有益效果。According to the embodiment of the present invention, firstly, the accessible area of the web page link is found, and the trigger range of the accessible area is obtained, and secondly, the trigger range is set as a highlighted area, so that the user can trigger the logo in the highlighted area. Adopting the embodiment of the present invention can solve the problem mentioned in the prior art that only the web page designer has the authority to adjust the highlighted area, resulting in the inability to personalize the highlighted area according to the user's wishes. In addition, according to the embodiment of the present invention, the highlighted area can be modified and set according to the modification message input by the user, which solves the problem in the prior art that it is difficult to adjust the size of the highlighted area from the client. By adopting the embodiment of the present invention, the highlighted area can be personalized and modified according to the user's needs, and the beneficial effect of using the trigger range of the accessible area displayed in the highlighted area more efficiently and rationally to perform web page linking operations can be achieved.

在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.

类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.

本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings), as well as any method or method so disclosed, may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.

此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the claims, any one of the claimed embodiments can be used in any combination.

本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的高亮区域获取、修改以及设置设备中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) can be used in practice to realize the highlight region acquisition, modification and setting of some or all of the components in the device according to the embodiment of the present invention. Full functionality. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.

应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.

至此,本领域技术人员应认识到,虽然本文已详尽示出和描述了本发明的多个示例性实施例,但是,在不脱离本发明精神和范围的情况下,仍可根据本发明公开的内容直接确定或推导出符合本发明原理的许多其他变型或修改。因此,本发明的范围应被理解和认定为覆盖了所有这些其他变型或修改。So far, those skilled in the art should appreciate that, although a number of exemplary embodiments of the present invention have been shown and described in detail herein, without departing from the spirit and scope of the present invention, the disclosed embodiments of the present invention can still be used. Many other variations or modifications consistent with the principles of the invention are directly identified or derived from the content. Accordingly, the scope of the present invention should be understood and deemed to cover all such other variations or modifications.

Claims (10)

1. a kind of highlight regions acquisition methods, including:
Search the accessible area of web page interlinkage;
The trigger range of the accessible area is obtained, and the trigger range is arranged to highlight regions;
The highlight regions are shown, are identified so that user triggers in the highlight regions;
Obtain multiple boundary parameters of highlight regions scope;
Receive user input modification message, wherein, it is described modification message in carry in the multiple boundary parameter extremely The modification parameter of a few boundary parameter;
The boundary parameter is modified according to the modification parameter, amended highlight regions is generated and shows.
2. according to the method for claim 1, wherein, the accessible area includes:
The content display area of the web page interlinkage;Or
The mark of operation can be performed to the web page interlinkage.
3. method according to claim 1 or 2, wherein, the web page interlinkage includes:Text Link, image link regard Frequency links.
4. method according to claim 1 or 2, wherein, before the trigger range is arranged into highlight regions, including:
Reflection obtains highlight regions corresponding to the trigger range;
The highlight regions are arranged to addressable open domain.
5. according to the method for claim 4, wherein, the highlight regions are arranged to addressable open domain, including:Will The setAccessible parameters of the highlight regions are revised as true.
6. method according to claim 1 or 2, wherein, methods described is applied to Android system.
7. a kind of highlight regions obtain equipment, including:
Searching modul, it is configured to search the accessible area of web page interlinkage;
Setup module, it is configured to obtain the trigger range of the accessible area, and the trigger range is arranged to highlight bar Domain;
Display module, it is configured to show the highlight regions, is identified so that user triggers in the highlight regions;
Parameter acquisition module, is configured to obtain multiple boundary parameters of highlight regions scope, and the modification for receiving user's input disappears Breath, wherein, the modification parameter at least one boundary parameter in the multiple boundary parameter is carried in the modification message;
Modified module, it is configured to modify to the boundary parameter according to the modification parameter, generates amended highlight bar Domain is simultaneously shown.
8. equipment according to claim 7, wherein, the accessible area includes:
The content display area of the web page interlinkage;Or
The mark of operation can be performed to the web page interlinkage.
9. the equipment according to claim 7 or 8, wherein, the setup module is additionally configured to:
Before the trigger range is arranged into highlight regions, reflection obtains highlight regions corresponding to the trigger range;And
The highlight regions are arranged to addressable open domain.
10. equipment according to claim 9, wherein, the setup module is additionally configured to:
The setAccessible parameters of the highlight regions are revised as true.
CN201310536019.3A 2013-11-01 2013-11-01 Highlight regions acquisition methods and equipment Active CN103646028B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310536019.3A CN103646028B (en) 2013-11-01 2013-11-01 Highlight regions acquisition methods and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310536019.3A CN103646028B (en) 2013-11-01 2013-11-01 Highlight regions acquisition methods and equipment

Publications (2)

Publication Number Publication Date
CN103646028A CN103646028A (en) 2014-03-19
CN103646028B true CN103646028B (en) 2017-12-08

Family

ID=50251244

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310536019.3A Active CN103646028B (en) 2013-11-01 2013-11-01 Highlight regions acquisition methods and equipment

Country Status (1)

Country Link
CN (1) CN103646028B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107918677A (en) * 2017-12-15 2018-04-17 携程计算机技术(上海)有限公司 The method and system of element on highlighted webpage

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102147702A (en) * 2010-02-05 2011-08-10 三星电子株式会社 Method and apparatus for selecting hyperlinks

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9098170B2 (en) * 2006-10-31 2015-08-04 Blackberry Limited System, method, and user interface for controlling the display of images on a mobile device
CN101639753A (en) * 2008-08-01 2010-02-03 鸿富锦精密工业(深圳)有限公司 Electronic equipment with touch screen and aspect ratio adjusting method thereof
KR101517618B1 (en) * 2008-10-31 2015-05-04 삼성전자주식회사 Apparatus and method for displaying web contents effectively
KR20120082102A (en) * 2011-01-13 2012-07-23 삼성전자주식회사 Method for selecting a target in a touch point

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102147702A (en) * 2010-02-05 2011-08-10 三星电子株式会社 Method and apparatus for selecting hyperlinks

Also Published As

Publication number Publication date
CN103646028A (en) 2014-03-19

Similar Documents

Publication Publication Date Title
CN105955888B (en) A kind of page debugging preview method and system
CN107464206A (en) A kind of watermark adding method and mobile terminal
CN102915366B (en) A kind of browser loads the method and apparatus of webpage
CN103902057B (en) Webpage input method and device for mobile terminal device
CN104346463B (en) A kind of loading method of page-tag, device and browser client
CN105183890B (en) Browser-based web page loading method and browser device
CN105653578A (en) Browser operation method and electronic equipment
CN105630305A (en) Method for displaying menu options in browser, and electronic equipment
CN102831351A (en) Method and device for indicating security attribute of computer icons
CN104156240A (en) Client skin template changing method and device, client and electronic device
CN105260421A (en) Webpage loading method and apparatus
KR102044614B1 (en) Input method based website information providing method and device
CN111898053A (en) Page browsing method, apparatus, device, and computer-readable storage medium
CN106599257A (en) Page shortcut realization method and electronic equipment
CN104461264B (en) Interactive interface generation method and device in a kind of browser of mobile terminal
CN103530163B (en) The method and browser of loading browser instrument
CN103646028B (en) Highlight regions acquisition methods and equipment
CN105511737A (en) Method for managing menu options on web page and electronic device
CN105630304A (en) Browser operation method and electronic equipment
CN102999598B (en) Change the method and apparatus of the show state of the content in webpage
CN103631581B (en) The method and device of highlight color is set
CN104796785A (en) Video playing method and device in application program
CN103645824B (en) Highlight area correction method and equipment
CN103631479B (en) Highlight regions method to set up and equipment
CN103617173B (en) Highlight area correction method and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220718

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right