Method and device for zooming pages in a browser

A page zooming and browser technology, applied in the browser field, can solve the problems of not knowing exactly, wasting time and system resources, redundant clicking shortcut keys, etc.

Inactive Publication Date: 2018-01-19
BEIJING QIHOO TECH CO LTD +1
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] However, in this way, when the user uses the shortcut key, the browser kernel directly obtains the command, and then directly renders the current page, and the user cannot know exactly what the current zoom ratio is and whether it has reached the most suitable zoom ratio, so Make users click shortcut keys redundantly, thus wasting time and system resources

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for zooming pages in a browser
  • Method and device for zooming pages in a browser
  • Method and device for zooming pages in a browser

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0096] refer to figure 2 , which shows a schematic flowchart of a method for zooming pages in a browser according to an embodiment of the present invention, which may specifically include:

[0097] Step 110, monitoring the zoom operation event on the browser side;

[0098] In the embodiment of the present invention, when the user triggers a zoom operation event for the browser Tab page, the browser will monitor the zoom operation event.

[0099] Step 120, creating a display interface in the current tab page, loading and displaying the scaling data of the current tab page;

[0100] After monitoring the zoom operation event triggered by the user for the browser Tab page, in the embodiment of the present invention, the browser main process creates a display interface in the current tab page to load and display the zoom ratio of the current tab page data.

[0101] In the present invention, there may be multiple display interfaces, for example, a miniature UI interface is creat...

Embodiment 2

[0135] refer to image 3 , which shows a schematic flowchart of a method for zooming pages in a browser optionally in the present invention, which may specifically include:

[0136] Step 210, monitoring the zoom operation event on the browser side;

[0137] Step 220, creating a transparent layered window above the current tab page, loading and displaying the scaling data of the current tab page therein;

[0138] In the embodiment of the present invention, a LayeredWindow is created above the current tab page, that is, a layered window. The layered window has a transparent effect, and its transparent meaning also includes: the content of the next layer window can be seen without any influence, and the mouse Hierarchical windows can also be penetrated.

[0139] In the embodiment of the present invention, a LayeredWindow can be created through the window creation function CreateWindowEx. The CreateWindowEx function creates a cascaded, automatically pop-up (pop-up) or a sub-win...

Embodiment 3

[0204] refer to Figure 4 , which shows a schematic flowchart of a preferred method for zooming pages in a browser in the present invention, which may specifically include:

[0205] Step 310, monitoring the zoom operation event on the browser side;

[0206] Step 320, create a mask layer above the current tab page, in which the scaling data for displaying the current tab page is loaded; the mask layer is added after the last element position in the page document element model tree, and the mask layer The layer is placed on the top layer, and the area covered by the mask layer includes the area displayed on the page.

[0207] In the embodiment of the present invention, a mask layer structure can be added after the position of the last element in the document element model tree corresponding to the page.

[0208] It can add a div corresponding to the mask layer at the end of the trunk of the document element model tree, and then set the coverage area of ​​the mask layer as the ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method and a device for page scaling in a browser and relates to the technical field of browsers. The method comprises the following steps of monitoring a scaling operation event on the browser side; establishing a display interface in the current tab page, and loading and displaying scaling data of the current tab page in the display interface; according to the scaling operation event, correspondingly updating and displaying the scaling data loaded in the display interface; according to the scaling data in the display interface, calling a page scaling interface of a rendering engine to perform scaling operation on the current tab page. The method and the device solve the problem that a user cannot intuitively understand a scaling degree in the scaling process is solved, and have the beneficial effects that the user can intuitively see the concrete scaling in the page scaling process, unnecessary operation generated because the user cannot timely know the scaling can be reduced, and the waste of system resources is avoided.

Description

technical field [0001] The invention relates to the technical field of browsers, in particular to a method and device for zooming pages in a browser. Background technique [0002] In the current Internet technology, a lot of information can be obtained from the Internet. One of the ways to obtain information is to obtain webpage data through the browser, and then use the kernel to parse and render the webpage data, and display them in the tabs of the browser. user for browsing by the user. [0003] However, due to the needs of different scenarios and different user habits, the tab pages of browsers require different sizes of content displayed on the page. In traditional technologies, many browsers adjust the page in the following ways: [0004] 1. Provide an interface ratio selection interface for users to choose. Such as figure 1 , the browser provides the page zoom UI of S1 in the figure (that is, the position corresponding to 100% on the lower right side in the figure ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F17/30G06F3/0484
CPCG06F3/0484G06F16/9577
Inventor 党壮
Owner BEIJING QIHOO TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products