A kind of touch-control type browser of portable mobile termianl
Technical field
The present invention relates to touching technique field, particularly relate to a kind of touch-control type browser of portable mobile termianl and a kind of method browsing webpage in portable mobile termianl.
Background technology
At present, along with development and the fusion of the Internet and mobile communication technology, portable mobile termianl is utilized to browse webpage day by day universal.Existing portable mobile termianl is browsed webpage and is mostly realized by the built-in browser of portable mobile termianl or third party's browser.
The span of existing portable mobile termianl screen size is larger, and such as, the scope of mobile phone screen size is from 3 cun ~ 5 cun, and the size of panel computer then can reach 10 cun.Like this, due to the restriction of mobile phone screen size, cannot show a large amount of words on one screen, prior art uses scroll techniques to carry out browsed web content usually.Such as, existing Android(Android) operating system as smart mobile phone, panel computer etc. all support as described in the screen of portable mobile termianl mutual, also, when browsing webpage, adopt the mode of the sliding screen of finger to realize the rolling of webpage; Like this, when accessing non-mobile phone version webpage (as Sina's webpage), not only need the sliding screen of screen but also needs left and right that glides, there are the following problems for prior art:
1, due to according to order rolling webpage inside from top to bottom or from left to right, therefore the assigned address of webpage can only cannot be arrived fast: at the bottom of such as page top and page, or page ad-hoc location etc.;
2, current webpage is general all very large, height is tens times of screen height, width is several times of screen width, like this, browse a webpage and at least need slip finger tens times, and the amplitude that slip is pointed sooner is larger, and long-time frequent sliding screen easily causes finger fatigue, affects the browser experiences of user.
In a word, the technical matters needing those skilled in the art urgently to solve is exactly: how on portable mobile termianl, can browse webpage fast, easily.
Summary of the invention
Technical matters to be solved by this invention is to provide a kind of touch-control type browser of portable mobile termianl and a kind of method browsing webpage in portable mobile termianl, can browse webpage fast, easily on portable mobile termianl.
In order to solve the problem, the invention discloses a kind of touch-control type browser of portable mobile termianl, comprising:
Thumbnail display module, on the screen at described portable mobile termianl, display is used for browsing to current the hawkeye window that webpage positions operation;
Detection module, for detecting the mobile operation of user on described hawkeye window;
Operation determination module, when the duration for moving operation at this is less than preset time, the motion track this being moved operation mates with mouse gestures track preset in database, if the match is successful, then judges that this moves and is operating as mouse gestures; If it fails to match, then judge that this moves and be operating as positioning action;
Mouse gestures execution module, for this move operation be judged as mouse gestures time, notice browser performs the browser operation corresponding with this mouse gestures; And
Positioning action execution module, for this move operation be judged as positioning action time, notice browser according to this positioning action to the current content browsing regional area corresponding to relevant position in webpage carry out amplifications show.
Preferably, the parameter of described preset mouse gestures track comprises one or more in trajectory shape, trajectory direction and track stroke.
Preferably, described browser also comprises:
Window judge module, for judging that whether this moves operation for described hawkeye window, if so, then triggering described operation determination module and carrying out the coupling that this moves the motion track of operation.
Preferably, described window judge module comprises:
First window judge module, for judging whether this starting point moving the motion track of operation is positioned at described hawkeye window, if so, then judges that this moves operation for described hawkeye window; Or
Second Window judge module, for judging whether the part of this motion track moving operation in described hawkeye window is greater than preset proportion with the ratio of whole motion track, if so, then judges that this moves operation for described hawkeye window.
Preferably, described positioning action execution module comprises:
Browsing content obtain submodule, for this move operation be judged as positioning action time, move operation according to this, obtain the current content browsing regional area corresponding to relevant position in webpage;
Browsing content display sub-module, carries out amplification display to the content of described regional area on the screen at described portable mobile termianl.
Preferably, described browser also comprises:
Ratio acquisition module, for obtaining the described current Aspect Ratio browsing webpage;
Ratio setting module is identical with the described current Aspect Ratio browsing webpage for being set to by the Aspect Ratio of described hawkeye window.
Preferably, described browsing content acquisition submodule comprises:
Acquiring unit, for obtaining the relative coordinate of described positioning action primary importance in described hawkeye window;
First computing unit, for browsing the page size of webpage and the size of described hawkeye window according to current, calculates the value of mapping relations;
Second computing unit, for the value according to described mapping relations, obtains described positioning action in the current relative coordinate browsing the second place in webpage; And
Contents acquiring unit, for the relative coordinate according to the second place, obtains the current content browsing regional area corresponding to the second place in webpage accordingly.
Preferably, described regional area is centered by the relative coordinate of the second place, and left and right respectively extends the first setpoint distance, respectively extends the rectangular area of the second setpoint distance up and down.
Preferably, described browser also comprises:
Interface module, for receiving the shift action of user on hawkeye window edge;
Browsing content update module, for according to described shift action, upgrades the content of described regional area;
Described browsing content obtains submodule, the content of the regional area also on the screen at described portable mobile termianl after display update.
Preferably, the trajectory direction of described preset mouse gestures track is non-horizontal directions and/or non-vertical direction, and wherein, described horizontal direction comprises from top to bottom and/or from top to bottom, and described vertical direction comprises from left to right and/or from right to left.
On the other hand, disclosed herein as well is a kind of method browsing webpage in portable mobile termianl, comprising:
On the screen of described portable mobile termianl, display is used for browsing to current the hawkeye window that webpage positions operation;
Detect the mobile operation of user on described hawkeye window;
When the duration that this moves operation is less than preset time, the motion track this being moved operation mates with mouse gestures track preset in database, if the match is successful, then judges that this moves and is operating as mouse gestures; If it fails to match, then judge that this moves and be operating as positioning action;
This move operation be judged as mouse gestures time, notice browser performs the browser operation corresponding with this mouse gestures;
This move operation be judged as positioning action time, notice browser according to this positioning action to the current content browsing regional area corresponding to relevant position in webpage carry out amplifications show.
Preferably, the parameter of described preset mouse gestures track comprises one or more in trajectory shape, trajectory direction and track stroke.
Preferably, described method also comprises:
Judge that whether this moves operation for described hawkeye window, if so, then trigger described operation determination module and carry out the coupling that this moves the motion track of operation.
Preferably, describedly judge that this moves operation whether for the step of described hawkeye window, comprising:
Judge whether this starting point moving the motion track of operation is positioned at described hawkeye window, if so, then judge that this moves operation for described hawkeye window; Or
Judge whether the part of this motion track moving operation in described hawkeye window is greater than preset proportion with the ratio of whole motion track, if so, then judge that this moves operation for described hawkeye window.
Preferably, described step of according to this positioning action, the current content browsing regional area corresponding to relevant position in webpage being carried out to amplification display, comprising:
This move operation be judged as positioning action time, according to this positioning action, obtain the current content browsing regional area corresponding to relevant position in webpage;
The screen of described portable mobile termianl carries out amplification display to the content of described regional area.
Preferably, described method also comprises:
Obtain the described current Aspect Ratio browsing webpage;
The Aspect Ratio of described hawkeye window is set to identical with the described current Aspect Ratio browsing webpage.
Preferably, described according to described positioning action, obtain the current step browsing the content of regional area corresponding to relevant position in webpage, comprising:
Obtain the relative coordinate of described positioning action primary importance in described hawkeye window;
Browse the page size of webpage and the size of described hawkeye window according to current, calculate the value of mapping relations;
According to the value of described mapping relations, obtain described positioning action in the current relative coordinate browsing the second place in webpage;
According to the relative coordinate of the second place, obtain the current content browsing regional area corresponding to the second place in webpage accordingly.
Preferably, described regional area is centered by the relative coordinate of the second place, and left and right respectively extends the first setpoint distance, respectively extends the rectangular area of the second setpoint distance up and down.
Preferably, described method also comprises:
Receive the shift action of user on hawkeye window edge;
According to described shift action, the content of described regional area is upgraded;
The content of the regional area on the screen of described portable mobile termianl after display update.
Preferably, the trajectory direction of described preset mouse gestures track is non-horizontal directions and/or non-vertical direction, and wherein, described horizontal direction comprises from top to bottom and/or from top to bottom, and described vertical direction comprises from left to right and/or from right to left.
Compared with prior art, the present invention has the following advantages:
First, the application increases a hawkeye window in a browser, and provides the decision-making function of the appointment gesture in hawkeye window ranges, and like this, user can skid off a motion track to use browser operation function by mobile operating on hawkeye window, because described appointment gesture can arrive the assigned address of webpage fast: at the bottom of such as page top and page, or, can browse between webpage rapidly, or, can operating browser easily: such as close and current browse window or closeallly browse window, therefore, can depart from prior art can only be inner according to order rolling webpage from top to bottom or from left to right, therefore can be conveniently quick on portable mobile termianl, browse webpage easily, and then the online experience of user in the touch-control type browser of portable mobile termianl can be strengthened.
Secondly, be only limited in described hawkeye window owing to specifying the scope of gesture, and the size of described hawkeye window is often less than the size of the screen of described portable mobile termianl, so, little being not easy of operation amplitude of finger causes finger fatigue, can strengthen the online of user in the touch-control type browser of portable mobile termianl and experience.
Moreover, the application can also receive the positioning action function of user in this hawkeye window, also, namely when the mobile operation of user is judged to be positioning action, can notify that browser carries out amplification display according to this positioning action to the current content browsing regional area corresponding to relevant position in webpage; In particular, when the Aspect Ratio of described hawkeye window is set to identical with the described current Aspect Ratio browsing webpage, position and currently browse position in webpage there are mapping relations in described hawkeye window, therefore user only need perform positioning action in this hawkeye window, can quick position browse to current optional position of browsing webpage (at the bottom of page top and page, or page ad-hoc location etc.) magnified content of corresponding regional area, the online of user in the touch-control type browser of portable mobile termianl can be strengthened further and experience.
Further, the application can preset a kind of can on mobile phone the webpage font size of normal browsing, and obtaining the current page size browsing webpage according to this webpage font size, the final current webpage font size browsing the content of regional area corresponding to relevant position in webpage extracted also is adopt this webpage font size; Always can be provided in the content of the webpage font size of normal browsing on mobile phone due to the application, go adjustment webpage font size without the need to user by multiple point touching, therefore, it is possible to simplify operation amplitude and the finger fatigue degree of user further.
Further, the application can also adjust the current size browsing webpage by mobile hawkeye window edge, it goes for all portable mobile termianls, and only needs user to use one to point movement gently can to realize, also namely can greatly reduce operation easier and operation amplitude.
Accompanying drawing explanation
Fig. 1 is the structural drawing of the touch-control type browser embodiment 1 of a kind of portable mobile termianl of the present invention;
Fig. 2 is the distribution schematic diagram of a kind of hawkeye window of the application in the screen of portable mobile termianl;
Fig. 3 is the structural drawing of the touch-control type browser embodiment 2 of a kind of portable mobile termianl of the present invention;
Fig. 4 is the schematic diagram of a kind of mobile rectangle frame of the application and place hawkeye window thereof;
Fig. 5 is the schematic diagram of a kind of mobile rectangle frame of the application and place hawkeye window thereof;
Fig. 6 is a kind of process flow diagram by dragging hawkeye window edge convergent-divergent webpage of the application;
Fig. 7 is a kind of process flow diagram browsing the embodiment of the method for webpage in portable mobile termianl of the application.
Embodiment
For enabling above-mentioned purpose of the present invention, feature and advantage become apparent more, and below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
One of core idea of the embodiment of the present application is, increase a hawkeye window in a browser, and provide the gesture operation function of the appointment in hawkeye window ranges, like this, user can skid off a motion track to use browser operation function by mobile operating on hawkeye window.Such as, will roll downwards in advance and currently browse webpage, user only need move down a segment distance in hawkeye window; And for example, for current webpage of browsing being advanced, user only need move right a segment distance in hawkeye window; For another example, user's motion track of left direction on mobile a section in hawkeye window, then closeallly can browse window; Or user's motion track of right direction on mobile a section in hawkeye window, then can close and current browse window.In a word, those skilled in the art can according to actual needs, preset various appointment gesture operation motion track and corresponding browser operation function.
With reference to Fig. 1, show the structural drawing of the touch-control type browser embodiment 1 of a kind of portable mobile termianl of the present invention, specifically can comprise:
Thumbnail display module 101, on the screen at described portable mobile termianl, display is used for browsing to current the hawkeye window that webpage positions operation;
Detection module 102, for detecting the mobile operation of user on described hawkeye window;
Operation determination module 103, duration for moving operation at this is when being less than preset time, the motion track this being moved operation mates with appointment gesture operation track preset in database, if the match is successful, then judges that this moves and is operating as appointment gesture operation; If it fails to match, then judge that this moves and be operating as positioning action;
Specify gesture execution module 104, for this move operation be judged as specify gesture operation time, this is moved operation and is identified as preset browser operation; And
Positioning action execution module 105, for this move operation be judged as positioning action time, notice browser according to this positioning action to the current content browsing regional area corresponding to relevant position in webpage carry out amplifications show.
It should be noted that, the positioning action that the application performs on hawkeye window or appointment gesture operation are different with common browser operation, common browser operation generally includes clickthrough operation, batch selects the browser operation that other any non-designated gesture operation motion tracks such as operation are corresponding, its usually corresponding common browser function; And the positioning function of the corresponding browser of the positioning action of the application, specify gesture operation correspondence to specify gesture operation function.
Although existing PC(personal computer, Personal Computer) version browser also can provide and specify gesture operation motion track and corresponding browser operation function, and by contrast, the difference of the application is:
1, browse webpage for current, PC version browser only provides one for the browser window of display navigation web page contents, and the application while providing display navigation web page contents function, can provide hawkeye window;
2, further, the appointment gesture operation of PC version browser is skidded off by right mouse button by user, without the need to considering the operation amplitude that user points and degree of fatigue, and the singularity of portable mobile termianl determines on screen that user can only operate in portable mobile termianl by touch movement and skids off motion track;
And the span of existing portable mobile termianl screen size is larger, such as, the scope of mobile phone screen size is from 3 cun ~ 5 cun, the size of panel computer then can reach 10 cun, if the portable mobile termianl of user on 3 cun skids off motion track, operation amplitude and the degree of fatigue of user's finger can barely accept; But if user uses the panel computer of 10 cun, then the operation amplitude of user's finger and degree of fatigue stand scope beyond ordinary person;
Therefore the application core idea is, provide user on hawkeye window, skidded off the function of a motion track by touch mobile operation; Be only limited in described hawkeye window owing to specifying the scope of gesture operation, and the size of described hawkeye window is often less than the size of the screen of described portable mobile termianl, so, little being not easy of operation amplitude of finger causes finger fatigue, can strengthen the online of user in the touch-control type browser of portable mobile termianl and experience.
3, further, relative to the motion track that right mouse button skids off, how can judge being operated in by touch movement the motion track that the screen of portable mobile termianl skids off and be identified as appointment gesture operation, to have very large difficulty.For this reason, the singularity that the application operates in conjunction with touch mobile operation and hawkeye, carries out the judgement of motion track.
One of described singularity is, specify the duration of gesture operation track often shorter, therefore the application empirically or actual conditions a preset time (such as 0.01s) is set, and, when thinking that the duration of the mobile operation only had in reality is less than preset time, this moves operation and just possesses the possibility being judged as and specifying gesture operation track.
Two of described singularity is, whether moving in reality operates for hawkeye window, if not, then get rid of this and move the possibility being operating as and specifying gesture operation track.Therefore in a preferred embodiment of the present application, described browser can also comprise:
Window judge module, for judging that whether this moves operation for described hawkeye window, if so, then triggering described operation determination module 103 and carrying out the coupling that this moves the motion track of operation.
In the embodiment of the present application, preferably, described window judge module may further include:
First window judge module, for judging whether this starting point moving the motion track of operation is positioned at described hawkeye window, if so, then judges that this moves operation for described hawkeye window; Or
Second Window judge module, for judging whether the part of this motion track moving operation in described hawkeye window is greater than preset proportion with the ratio of whole motion track, if so, then judges that this moves operation for described hawkeye window.
As for how applying above-mentioned two kinds of possibilities, the motion track in reality is judged, in specific implementation, the parameter of preset appointment gesture operation track can be applied, wherein, the parameter of described preset appointment gesture operation track specifically can comprise one or more in trajectory shape, trajectory direction and track stroke.Such as, described trajectory shape can comprise linear pattern, positive L-type etc.; And for example, described trajectory direction can comprise horizontal direction, vertical direction, oblique line directions, wherein, described horizontal direction specifically can comprise from top to bottom and/or from top to bottom, and described vertical direction specifically can comprise from left to right and/or from right to left, in practice, coordinate system can be set up, described oblique line directions can represent with angle formed by each line segment in track and coordinate axis, especially, also should be taken into account starting point and terminal when representing direction; For another example, described track stroke can represent by the distance of origin-to-destination.
When the motion track this being moved operation mates with appointment gesture operation track preset in database, also be obtain one or more parameters that this moves the motion track of operation, when judging, can carry out the coupling of parameter respectively, the matching result then in conjunction with each parameter judges; Or, mate in conjunction with two or more improve parameter unification; The concrete matching process of the application to parameter is not limited.
In addition, as specifying the preset browser operation of the recognition result of gesture execution module 104 browser operation that also namely aforesaid appointment gesture operation motion track is corresponding, such as, described preset browser operation can comprise rolling downward or upward currently browses webpage, current webpage of browsing is advanced or retreats, closes current or all browser windows, recover the browser window of just having closed, browsing pages is rolled to stem or afterbody, before being switched to or below browse window.In a word, those skilled in the art can according to the actual requirements, and the preset various browser operation corresponding with specifying gesture operation motion track, the application is not limited this.
So, what the browser of the application finally performed is the browser operation function corresponding with specifying gesture operation motion track, also namely on the screen of described portable mobile termianl, display navigation web page contents can be currently browse window, also can be that other browses window, or, simply closeallly browse window, the application is not limited this.
Mainly introduce thumbnail display module 101 below.
In a kind of application example of the application, described hawkeye window can be an empty window, also, without any word or image content on hawkeye window.
In a preferred embodiment of the present application, described hawkeye window can be suspended on the screen of described portable mobile termianl.
In the embodiment of the present application, preferably, described hawkeye window can be arranged in one jiao of the corner of the screen of described portable mobile termianl, not affect the screen browsing pages content that user normally uses described portable mobile termianl.With reference to Fig. 2, in a kind of example of the application, show the distribution schematic diagram of a kind of hawkeye of the application window 201 in the screen of described portable mobile termianl, wherein, dotted line frame represents the screen of described portable mobile termianl, and hawkeye window can be distributed in any one jiao or the position of dotted line frame.Certainly, just exemplarily, those skilled in the art can according to actual needs, and hawkeye window is arranged at the optional position of the screen of described portable mobile termianl, the application is not limited this for Fig. 2.
With reference to Fig. 3, show the structural drawing of the touch-control type browser embodiment 2 of a kind of portable mobile termianl of the present invention, specifically can comprise:
Thumbnail display module 301, shows the current hawkeye window browsing webpage on the screen at described portable mobile termianl;
Detection module 302, for detecting the mobile operation of user on described hawkeye window;
Operation determination module 303, duration for moving operation at this is when being less than preset time, the motion track this being moved operation mates with appointment gesture operation track preset in database, if the match is successful, then judges that this moves and is operating as appointment gesture operation; If it fails to match, then judge that this moves and be operating as positioning action;
Specify gesture execution module 304, for this move operation be judged as specify gesture operation time, this is moved operation and is identified as preset browser operation,
Browsing content obtain submodule 305, for this move operation be judged as positioning action time, according to this positioning action, obtain the current content browsing regional area corresponding to relevant position in webpage; And
Browsing content display sub-module 306, carries out amplification display to the content of described regional area on the screen at described portable mobile termianl.
Relative to embodiment 1, the present embodiment has mainly been described in detail the process that the current content browsing regional area corresponding to relevant position in webpage carries out amplifying display according to this positioning action browser.
In a preferred embodiment of the present application, described browser can also comprise:
Ratio acquisition module, for obtaining the described current Aspect Ratio browsing webpage;
Ratio setting module is identical with the described current Aspect Ratio browsing webpage for being set to by the Aspect Ratio of described hawkeye window;
Aspect Ratio due to described hawkeye window can be set to identical with the described current Aspect Ratio browsing webpage, like this, position and currently browse position in webpage there are mapping relations in described hawkeye window, therefore user only need perform positioning action in this hawkeye window, can quick position browse to current optional position of browsing webpage (at the bottom of page top and page, or page ad-hoc location etc.) magnified content of corresponding regional area, the online of user in the touch-control type browser of portable mobile termianl can be strengthened further and experience.
In specific implementation, if it fails to match for operation determination module 303, namely mobile operation can be judged to be positioning action.
According to the function of positioning action, due to it, normally horizontal direction and the mobile of vertical direction operate, therefore in order to avoid specifying obscuring of gesture operation and positioning action, improve the accuracy of specifying gesture operation to judge and identify, in the present embodiment, preferably, the trajectory direction of described preset appointment gesture operation track is non-horizontal directions and/or non-vertical direction, wherein, described horizontal direction comprises from top to bottom and/or from top to bottom, and described vertical direction comprises from left to right and/or from right to left.
In a kind of application example of the application, described hawkeye window can be thumbnail window.Now can extract the current content browsing webpage, generate corresponding thumbnail, and be presented on hawkeye window, this thumbnail can be the global view that user provides current home.Such as, using the current content browsing webpage as a pictures, can first remove picture empty part, then, by contents such as word, picture, links in picture according to it in current position of browsing in webpage, generate thumbnail in proportion.In a word, according to the current content browsing webpage extracted, in proportion current home is scaled thumbnail, namely the thumbnail generated can be according to a certain percentage the coordinate of current home is carried out convergent-divergent acquisition, can certainly be alternate manner, the application not be limited the concrete mode generating thumbnail.
Because thumbnail obtains according to coordinate scalable manner, and thumbnail is presented at hawkeye window, and also, the size of the two is equal.So, when generating thumbnail, position and currently browse position in webpage there are mapping relations on described hawkeye window.
The display of described hawkeye window is for user provides the global view of current home, to facilitate user's quick position to current optional position of browsing webpage after all; Finally, user will browse corresponding with institute position location currently to browse the content of pages of webpage on the screen of described portable mobile termianl.
So, in order to make user while use hawkeye window position, can browse to content of pages on the screen of described portable mobile termianl, as the embodiment of the application, the size of described hawkeye window should be less than the size of the screen of described portable mobile termianl.And take into account the result of browse of hawkeye window and content of pages, in the embodiment of the present application, preferably, the size of hawkeye window can be less than 1/2 of the size of the screen of described portable mobile termianl, such as, 1/4,1/8 etc., like this, when user browses, both can not feel hawkeye window can be used to navigate to the optional position of current home quickly and accurately by the undersized of hawkeye window, and, also can not affect the content of pages that the screen of described portable mobile termianl shows.
In a preferred embodiment of the present application, described hawkeye window can be suspended on the screen of described portable mobile termianl.
In addition, in specific implementation, described hawkeye window can be set to translucent or be opaque.Those skilled in the art can arrange the transparency of described hawkeye window according to actual conditions, such as, when the size of described hawkeye window is smaller, even if be set to opaque, user's browsing content of pages is not affected yet, and when the size of described hawkeye window is larger, in order to avoid affecting the content of pages that the screen of described portable mobile termianl shows, can be set to translucent.In a word, the transparency of the application to described hawkeye window is not limited.
In a preferred embodiment of the present application, a special interface mobile module can also be set in hawkeye window, when receiving the positioning action of user, this interface mobile module can move on hawkeye window, when it is positioned at the primary importance of hawkeye window, namely represents and navigated to the current second place browsing webpage.
In practice, this interface mobile module can show as the forms such as movable frame, moving handle, mobile cursor.With reference to Fig. 4, in a kind of example of the application, show the schematic diagram of a kind of mobile rectangle frame of the application and place hawkeye window thereof, this moves rectangle frame and can move according to the operation of user, further, its center or summit can represent its position at hawkeye window.Be appreciated that except rectangle, the shape of described movable frame can also comprise circle, ellipse, pentagon, hexagon etc., and the shape of the application to movable frame is not limited.
In addition, in order to not hide the content of thumbnail on described hawkeye window, thus do not affect the regioselective of user, in specific implementation, this interface mobile module can be set to translucent, such as, movable frame is translucent choice box etc.
Moreover, in practice, the size of this interface mobile module can be arranged according to actual actual conditions by those skilled in the art, the object of the application is just realized the current quick position browsing the optional position of webpage by this interface mobile module of operation hawkeye window interior and is browsed, and the size of the application to this interface mobile module is not limited.
Browsing content obtains submodule 305
When this interface mobile module is positioned at primary importance on described hawkeye window, namely represent that it has navigated to the current second place browsing webpage.Suppose that current webpage of browsing is Sina's homepage, this interface mobile module is still in the primary importance on described hawkeye window---and " physical culture NBA China delegation ", then represent that current homepage finding of browsing has been arrived the second place by it, here, primary importance is identical with the web page contents of second position, be " physical culture NBA China delegation ", just due to coordinate convergent-divergent that hawkeye window is current browsed web content, so, the position coordinates of the two is not identical, here, be exactly according to mapping relations, obtain the current content browsing webpage of the described second place and correspondence, and on the screen of described portable mobile termianl, show the current content browsing webpage corresponding to the described second place.
In a preferred embodiment of the present application, described browsing content obtains submodule 305 and may further include:
Obtain submodule A1, for obtaining the relative coordinate of described positioning action primary importance on described hawkeye window;
First calculating sub module A2, for browsing the page size of webpage and the size of described hawkeye window according to current, calculates the value of mapping relations;
Second calculating sub module A3, for the value according to described mapping relations, obtains described positioning action in the current relative coordinate browsing the second place in webpage; And
Content capture modules A 4, for the relative coordinate according to the second place, obtains the current content browsing regional area corresponding to the second place in webpage accordingly.
Suppose that the screen of described portable mobile termianl is of a size of long 80mm, wide 45mm, the current page size browsing webpage is long 800mm, wide 100mm, and described hawkeye window is of a size of long 20mm, wide 2.5mm, and the top left co-ordinate of window is (0,0); Then
Obtain submodule A1 and can obtain the relative coordinate of primary importance on described hawkeye window for (x, y), the value that first calculating sub module calculates described mapping relations is 800/20=40, second calculating sub module A3 is current, and to browse the second place in webpage be (40x in the current relative coordinate browsed in webpage, 40y), content capture modules A 4 can browse in webpage current the content extracting corresponding regional area according to (40x, 40y).
Because the size of mobile phone version webpage is smaller, just the complete page can be shown in limited mobile phone screen size without the need to the sliding screen of user, only have non-mobile phone version webpage just can run into the problem of the sliding screen of downslide screen and left and right, so, preferably, described current webpage of browsing is non-mobile phone version webpage to the embodiment of the present application.
In addition, because webpage font size is adjustable, a kind of typical adjustment mode is that multiple point touching goes to zoom in or out.In this application, can preset a kind of can on mobile phone the webpage font size of normal browsing, and obtain the current page size browsing webpage according to this webpage font size, finally, the webpage font size of the content of the regional area corresponding to the second place of content capture modules A 4 extraction is also adopt this webpage font size.Owing to the screen of described portable mobile termianl always can be provided in the content of the webpage font size of normal browsing on mobile phone, adjustment webpage font size is gone by multiple point touching without the need to user, therefore, it is possible to simplify operation amplitude and the finger fatigue degree of user further.
Present invention also provides a kind of browsing content acquisition submodule 305 and obtain the second place and the corresponding current process flow diagram browsing the content of webpage, specifically can comprise:
The screen event of the described portable mobile termianl on the screen of portable mobile termianl described in step 1, detection of handset;
Step 2, judge whether the movable frame that slided on hawkeye window, if so, then perform step 3, otherwise return step 1;
Step 3, repaint movable frame at new sliding position;
Step 4, judgement are slided and whether are terminated, and if so, then perform step 5, otherwise return step 3;
Step 5, the acquisition relative coordinate position of movable frame on hawkeye window;
Step 6, browse the page size of webpage and the size of described hawkeye window according to current, calculate the value of described mapping relations;
Step 7, value according to described mapping relations, obtain corresponding with the described primary importance current second place of browsing in webpage in the current relative coordinate browsed in webpage;
Step 8, according to the described second place in the current relative coordinate browsed in webpage, obtain the current content browsing the regional area of webpage accordingly.
In a preferred embodiment of the present application, described regional area is centered by the relative coordinate of the second place, left and right is each extends the first setpoint distance, respectively extends the rectangular area of the second setpoint distance up and down. and wherein, described first setpoint distance, the second setpoint distance can set according to actual conditions.Such as, the 1/2, second wide setpoint distance that the first setpoint distance can be less than the screen of described portable mobile termianl can be less than 1/2 of the length of the screen of described portable mobile termianl.Certainly, described regional area also can be the shape such as square, circular, oval, and even irregular shape, the application is not limited this.
Browsing content display sub-module 306
In practice, a special window of browsing can be set on the screen of described portable mobile termianl, show the current content of browsing webpage corresponding with the described second place.Compared with the default window of the touch-control type browser of original portable mobile termianl, in other attribute such as size, function, this browses window with this default window can be identical, also namely this default size browsing window can equal the size of the screen of described portable mobile termianl, further, content the browsing all for user shown by the two.
Unlike, this content browsing window display can change along with the change of this interface mobile module in the position of hawkeye window, and it always can show the interested current content browsing the ad-hoc location of webpage of user.
In a preferred embodiment of the present application, the touch-control type browser of described portable mobile termianl can also comprise:
Interface module, for receiving the shift action of user on hawkeye window edge;
Browsing content update module, for according to described shift action, upgrades the content of described regional area;
Described browsing content display sub-module, the content of the regional area also on the screen at described portable mobile termianl after display update.
In prior art, multiple point touching technology can be used in the portable mobile termianl of multiple point touching to go to adjust the current size browsing webpage, the adjustment browsing webpage size so current is confined to the portable mobile termianl of multiple point touching, the portable mobile termianl touched for single-point is irrealizable, and described multiple point touching technology convergent-divergent blindly often, often need multi-pass operations just can obtain the desired size of user, therefore can the operation amplitude of adding users and difficulty.
In this preferred embodiment, the current size browsing webpage is adjusted by mobile hawkeye window edge, it goes for all portable mobile termianls, and only needs user to use one to point movement gently can to realize, also namely can greatly reduce operation easier and operation amplitude.
With reference to Fig. 5, show the schematic diagram of a kind of hawkeye window 201 of the application, it has multiple hawkeye window edge 211, and each hawkeye window edge has dragging instruction, wherein, outwards drag and current webpage of browsing can be made to amplify, drag inwards and current webpage of browsing can be made to reduce.
In a preferred embodiment of the present application, described browsing content update module may further include:
First update module, for the movement range according to described shift action, upgrades the content of described regional area; Or
Second update module, for the stroke distances according to described shift action, upgrades the content of described regional area.
Wherein, described movement range can be understood as the deformation extent that described shift action makes hawkeye window produce, such as, former hawkeye window is of a size of long 300mm, wide 600mm, after distortion, the length of hawkeye window is 400mm, wide 800mm, then movement range can be calculated: long (400-300)/300, wide (800-600)/600.
Described stroke distances can be understood as the side-play amount of described shift action.Now, first the direction of described drag action can be defined as outside or inside, then the side-play amount of described drag action is obtained, finally, when being outside in the direction of described drag action, the side-play amount according to described drag action calculates corresponding magnification ratio, and, when being inside in the direction of described drag action, the side-play amount according to described drag action calculates corresponding scale down.
In the embodiment of the present application, preferably, the touch-control type browser of described portable mobile termianl can also arrange special renewal display module, for while the shift action receiving user, shows described movement range or stroke distances.
The display of described movement range or stroke distances can make user know current browse webpage amplify or convergent-divergent how many, blindness compared to existing technology, user can go the adjustment carrying out webpage size more targetedly, thus can reduce operation amplitude and the operation easier of user.
With reference to Fig. 6, showing a kind of process flow diagram by dragging hawkeye window edge convergent-divergent webpage of the application, specifically can comprise:
Touch event on the screen of portable mobile termianl described in step 601, detection of handset;
Step 602, judge whether to have dragged hawkeye window edge, if so, then perform step 603, otherwise perform step 601;
Step 603, judge drawing direction, if outwards, then perform step 604, if inwardly, then perform step 606;
The side-play amount that step 604, acquisition drag, and calculate magnification ratio p according to hawkeye window size;
Step 605, for current browse webpage perform amplify order, until magnification ratio reaches p, and turn to step 608;
The side-play amount that step 606, acquisition drag, and calculate scale down q according to hawkeye window size;
Step 607, for current browse webpage perform reduce order, until scale down reaches q, and turn to step 608;
Step 608, according to the current size browsing the screen of portable mobile termianl described in webpage size and mobile phone, repaint hawkeye window.
In a preferred embodiment of the present application, in order to described hawkeye window does not affect the page browsing of user in browsing content display sub-module 306, described hawkeye window can switch in display, hiding two kinds of modules.
Correspondingly, the touch-control type browser of described portable mobile termianl can also comprise: opening module, for according to the gesture of user on the screen of described portable mobile termianl or icon action, open described hawkeye window and/or described first interface module.
The touch-control type browser of described portable mobile termianl can also comprise: closing module, for according to the gesture of user on the screen of described portable mobile termianl or icon action, closes described hawkeye window and/or described first interface module.
Such as, described icon action can be a certain button on portable mobile termianl, when user presses this button, can show described hawkeye window and described first interface module; After user has located, again press this button, described hawkeye window and described first interface module can have been closed and hidden.
And for example, user only need click on the screen of described portable mobile termianl, described hawkeye window and described first interface module can be opened and display translation, after user has located, again click on the screen of described portable mobile termianl, described hawkeye window and described first interface module can be closed and hidden.
For another example, can also arrange a special time, in this special time, described hawkeye window and described first interface module are suspended on screen always, and when after this special time of arrival, described hawkeye window and described first interface module are automatically hidden and disappeared.
As a preferred embodiment of the present application, obtain submodule at described browsing content and complete after corresponding current of the second place browse the acquisition of the content of the regional area of webpage, described hawkeye window can disappear automatically.As user needs to locate the current content browsing webpage, then trigger opening module.
Above the mode of operation of described hawkeye window and first interface module is introduced, those skilled in the art can decide according to concrete implementation strategy to use wherein one or more mode of operations, such as, adopt the mode of operation of opening+closing and matching, or, adopt the mode of operation etc. of opening+automatically disappearing.
Certainly, except above-mentioned mode of operation, the application can also be applicable to other mode of operation, and such as, described hawkeye window is not automatic disappearance, but shows always, and arranged by other and open or close, this can depend on concrete implementation strategy.The mode of operation of the application to concrete hawkeye window is not limited.
Corresponding to aforementioned browser embodiment, present invention also provides a kind of embodiment of the method browsing webpage in portable mobile termianl, with reference to Fig. 7, specifically can comprise:
Step 701, on the screen of described portable mobile termianl display be used for browse to current the hawkeye window that webpage positions operation;
Step 702, the detection user mobile operation on described hawkeye window;
Step 703, when the duration that this moves operation is less than preset time, the motion track this being moved operation mates with appointment gesture operation track preset in database, if the match is successful, then judges that this moves and is operating as appointment gesture operation; If it fails to match, then judge that this moves and be operating as positioning action;
Step 704, this move operation be judged as specify gesture operation time, notice browser performs the browser operation corresponding with this appointment gesture operation;
Step 705, this move operation be judged as positioning action time, notice browser according to this positioning action to the current content browsing regional area corresponding to relevant position in webpage carry out amplifications show.
It should be noted that, the positioning action that the application performs on hawkeye window or appointment gesture operation are different with common browser operation, common browser operation generally includes clickthrough operation, batch selects the browser operation that other any non-designated gesture operation motion tracks such as operation are corresponding, its usually corresponding common browser function; And the positioning function of the corresponding browser of the positioning action of the application, specify gesture operation correspondence to specify gesture operation function.
In the embodiment of the present application, preferably, the parameter of described preset appointment gesture operation track specifically can comprise one or more in trajectory shape, trajectory direction and track stroke.
In a preferred embodiment of the present application, described method can also comprise:
Judge that whether this moves operation for described hawkeye window, if so, then trigger described operation determination module and carry out the coupling that this moves the motion track of operation.
In another preferred embodiment of the present application, describedly judge that this moves operation whether for the step of described hawkeye window, may further include:
Judge whether this starting point moving the motion track of operation is positioned at described hawkeye window, if so, then judge that this moves operation for described hawkeye window; Or
Judge whether the part of this motion track moving operation in described hawkeye window is greater than preset proportion with the ratio of whole motion track, if so, then judge that this moves operation for described hawkeye window.
In another preferred embodiment of the application, described step of according to this positioning action, the current content browsing regional area corresponding to relevant position in webpage being carried out to amplification display, specifically can comprise:
This move operation be judged as positioning action time, according to this positioning action, obtain the current content browsing regional area corresponding to relevant position in webpage;
The screen of described portable mobile termianl carries out amplification display to the content of described regional area.
In the embodiment of the present application, preferably, described method can also comprise:
Obtain the described current Aspect Ratio browsing webpage;
The Aspect Ratio of described hawkeye window is set to identical with the described current Aspect Ratio browsing webpage.
In a preferred embodiment of the present application, described according to described positioning action, obtain the current step browsing the content of regional area corresponding to relevant position in webpage, may further include:
Obtain the relative coordinate of described positioning action primary importance in described hawkeye window;
Browse the page size of webpage and the size of described hawkeye window according to current, calculate the value of mapping relations;
According to the value of described mapping relations, obtain described positioning action in the current relative coordinate browsing the second place in webpage;
According to the relative coordinate of the second place, obtain the current content browsing regional area corresponding to the second place in webpage accordingly.
In the embodiment of the present application, preferably, described regional area is centered by the relative coordinate of the second place, and left and right respectively extends the first setpoint distance, respectively extends the rectangular area of the second setpoint distance up and down.
In a preferred embodiment of the present application, described method can also comprise:
Receive the shift action of user on hawkeye window edge;
According to described shift action, the content of described regional area is upgraded;
The content of the regional area on the screen of described portable mobile termianl after display update.
In the embodiment of the present application, preferably, the trajectory direction of described preset appointment gesture operation track is non-horizontal directions and/or non-vertical direction, wherein, described horizontal direction comprises from top to bottom and/or from top to bottom, and described vertical direction comprises from left to right and/or from right to left.
For embodiment of the method, due to itself and browser embodiment basic simlarity, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.
Above to touch-control type browser and a kind of method browsing webpage in portable mobile termianl of a kind of portable mobile termianl provided by the present invention, be described in detail, apply specific case herein to set forth principle of the present invention and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.