METHOD AND DEVICE FOR PROCESSING TABBED-PAGE

Methods and devices for processing a tabbed-page are disclosed. In an exemplary method, when a pinning operation command with respect to a tabbed-page in a browser is received from a user, a first display area can be obtained from a screen of a tabbed-page processing device. A corresponding first UIwebview based on the obtained first display area can be created by the tabbed-page processing device. Content of the tabbed-page can be loaded via the first UIwebview to pin the tabbed-page. Accordingly, an exemplary device for processing a tabbed-page can at least include an area obtaining module and a pinning module.

DETAILED DESCRIPTION

FIGS. 1-5depict exemplary methods and devices for processing a tabbed-page in accordance with various disclosed embodiments. The exemplary methods and devices can be implemented, for example, in an exemplary environment600as shown inFIG. 6.

As shown inFIG. 6, the environment600can include a server604, a terminal606, and a communication network602. The server604and the terminal606may be coupled through the communication network602for information exchange, for example, Internet searching, webpage browsing, etc. Although only one terminal606and one server604are shown in the environment600, any number of terminals606or servers604may be included, and other devices may also be included.

The communication network602may include any appropriate type of communication network for providing network connections to the server604and terminal606or among multiple servers604or terminals606. For example, the communication network602may include the Internet or other types of computer networks or telecommunication networks, either wired or wireless.

A terminal, as used herein, may refer to any appropriate user terminal device with certain computing capabilities, for example, a personal computer (PC), a work station computer, a notebook computer, a car computer (e.g., carrying in a car or other vehicles), a server computer, a hand-held computing device (a tablet computer), a mobile terminal (a mobile phone, a smart phone, an iPad, an aPad), a POS (i.e., point of sale) device, or any other user-side computing device. In various embodiments, the terms “terminal” and “terminal device” can be used interchangeably. In various embodiments, the terminal606can include a multi-window browsing device.

A server, as used herein, may refer one or more server computers configured to provide certain server functionalities, for example, search engines and database management. A server may also include one or more processors to execute computer programs in parallel.

The server604and the terminal606may be implemented on any appropriate computing platform.FIG. 7shows a block diagram of an exemplary computing system700capable of implementing the server604and/or the terminal606. As shown inFIG. 7, the exemplary computer system700may include a processor702, a storage medium704, a monitor706, a communication module708, a database710, peripherals712, and one or more bus714to couple the devices together. Certain devices may be omitted and other devices may be included.

The processor702can include any appropriate processor or processors. Further, the processor702can include multiple cores for multi-thread or parallel processing. The storage medium704may include memory modules, for example, ROM, RAM, and flash memory modules, and mass storages, for example, CD-ROM, U-disk, removable hard disk, etc. The storage medium704may store computer programs for implementing various processes, when executed by the processor702.

Further, the peripherals712may include I/O devices, for example, keyboard and mouse, and the communication module708may include network devices for establishing connections through the communication network602. The database710may include one or more databases for storing certain data and for performing certain operations on the stored data, for example, webpage browsing, database searching, etc.

In operation, the terminal606may cause the server604to perform certain actions, for example, an Internet search or other database operations. The server604may be configured to provide structures and functions for such actions and operations. More particularly, the server604may include a data searching system for real-time database searching. In various embodiments, a terminal, for example, a mobile terminal involved in the disclosed methods and systems can include the terminal606.

FIG. 1illustrates an exemplary method for processing a tabbed-page in accordance with various disclosed embodiments.

In Step S101, when receiving a pinning operation command with respect to a tabbed-page in a browser from a user, a first display area can be obtained from a screen.

In one embodiment, the pinning operation command can include, but is not limited to, a long pressing (e.g., holding) command. A time length for the long pressing command to last can be greater than one second. For example, when a long-pressing command with respect to a tabbed-page210cin a browser illustrated inFIG. 2is received from a user, a selection box220can be popped up. When the user selects an item222of “pin this window”, a display area (e.g., the first display area) can be obtained from the screen. Specifically, a display area of the screen can be split into two halves. Note that each of the two halves may cover the display area that is greater, less, or the same as the exact half area of the display area. One of the two halves of the display area can be used as the first display area. For example, when the display area of the screen has a size of about 1024×768, an area of about 512×768 on a left or right side of the screen can be used as the first display area. Of course, the user can adjust the size of the first display area according to actual needs.

In Step S102, based on the obtained first display area, a corresponding first UIwebview can be created and content of the tabbed-page can be loaded via the first UIwebview so as to pin the tabbed-page.

As used herein, the UIwebview can be a built-in browser control, and can be used to browse a web page, open a document, and/or operate the like. After the first display area is obtained, the first UIwebview can be created according to the size of the first display area. In practice, the created first UIwebview can be named as a LockUIwebview. Specific creation process of the UIwebview may use known technologies.

After creating the first UIwebview, a kernel of the browser can parse content of the tabbed web page, load the parsed content using the UIwebview and, after the loading, display the content in the first display area to complete the operation of pinning the tabbed-page.

In one embodiment, since the tabbed-page can be pinned, user's operation with respect to other tabbed-pages in the browser cannot affect the pinned tabbed-page. This can satisfy user's needs of simultaneously performing relevant browsing operations in multiple windows.

FIG. 3illustrates another exemplary method for processing a tabbed-page in accordance with various disclosed embodiments.

In Step S301, when a pinning operation command with respect to a tabbed-page in a browser is received from a user, a first display area can be obtained from a screen.

In Step S302, based on the obtained first display area, a corresponding first UIwebview can be created and content of the tabbed-page can be loaded via the first UIwebview so as to pin the tabbed-page. Specific implementation processes of Steps S301and S302can be the same as Steps S101and Step S102as depicted inFIG. 1.

In Step S303, a second display area can be obtained from the screen and, based on the second display area, a second UIwebview can be created and contents of remaining tabbed-pages in the browser can be loaded via the second UIwebview.

In one embodiment, at the same time when performing Step S302, a display area (e.g., the second display area) can be obtained from the screen to display contents of the remaining tabbed-pages in the browser. Specifically, the second display area can be obtained and, based on the size of the second display area, a UIwebview (e.g., the second UIwebview) can be created and the contents of the remaining tabbed-pages in the browser can be loaded via the second UIwebview. The remaining tabbed-pages are tabbed-pages in the browser excluding the pinned tabbed-page.

In an exemplary embodiment, in order to facilitate a user to simultaneously manage multiple windows, e.g., as shown inFIG. 4, a sum of a first display area432and a second display area436can cover the entire display area of the screen. For example, sizes of the first display area432and the second display area436can be adjusted according to user's actual needs. Specifically, when a sliding operation by a user with respect to the first display area432and the second display area436is detected, a sliding displacement can be recorded and displaying widths of the first display area432and the second display area436can be adjusted according to the sliding displacement. The sliding operation can include long pressing or pressing and holding an arrow key that is displayed at a border450between the first display area432and the second display area436and dragging the arrow key left or right so as to adjust the displaying widths of the first display area432and the second display area436. For example, as illustrated inFIG. 4, at the border450between the first display area432and the second display area436, by long pressing the displayed arrow key and dragging the arrow key left or right, the displaying widths of the first display area432and the second display area436can be adjusted.

It should be noted that, in order to obtain multiple pinned tabbed-pages, pinning operation can also be performed with respect to the remaining tabbed-pages in the browser. That is, when a pinning operation command with respect to one tabbed-page among the remaining tabbed-pages in the browser is received from a user, a third display area can be obtained. For example, the third display area can be a display area within the second display area. Based on a size of the third display area, a third UIwebview can be created and content of the tabbed-page can be loaded via the third UIwebview. Based on a size of a remaining display area of the second display area, a fourth UIwebview can be created and contents of remaining tabbed-pages in the browser can be loaded via the fourth UIwebview. Sizes of these display areas can be adjusted as needed, and so on, such that multiple pinned tabbed-pages can be obtained.

In various embodiments, in order to enhance usability and to improve user experience, the method depicted herein can further include the following step: obtaining a third display area and, based on the third display area, creating a third UIwebview and loading contents of tabbed-pages currently displayed in the browser via the third UIwebview, when an operation command for unpinning a pinned tabbed-page from a user is received.

For example, as illustrated inFIG. 4, the operation command for unpinning the pinned tabbed-page (e.g., referring to432) from the user is received. When it is received that a user has clicked a close button433(an “X” button433on an upper right corner) of the pinned tabbed-page, the method can include exiting from the auxiliary screen browsing mode; re-obtaining a display area; creating a UIwebview based on a size of the obtained display area; and loading contents of tabbed-pages currently displayed in the browser via the created UIwebview. It should be noted that, when there are multiple pinned tabbed-pages, the contents of the tabbed-pages loaded via the created UIwebview do not include contents of other pinned tabbed-pages.

In a case as illustrated inFIG. 2where there are multiple tabbed-pages210a,210b,210cshown in a browser, when a command from a user that is generated by long pressing a tabbed-page is received, a selection box220can be popped up. When it is received that the user has selected a “pin this window” item222, a display area having a size of about 300×768 can be obtained on a left side of the screen. Based on the size of this display area, a LockUIwebview (e.g., the first UIwebview) can be created. Content of the tabbed-page can be loaded via the created LockUIwebview and displayed in the display area of about 300×768, and the pinning operation with respect to the tabbed-page can be completed. A remaining display area having a size of 724×768 of the screen (e.g., the screen has a display area of 1024×768) can be obtained. Based on the size of this display area, one more UIwebview can be created and contents of remaining tabbed-pages in the browser can be loaded via this UIwebview. Browsing operations (including, e.g., switching, closing, creating a new tabbed-page, and/or the like) by a user with respect to the tabbed-pages in the display area of about 724×768 do not affect the tabbed-page in the display area of about 300×768. When an operation command from the user is received to unpin the pinned tabbed-page, that is, to close the display area of about 300×768 and exit from the auxiliary screen browsing mode, the display area (1024×768) of the screen can be re-obtained. Based on the size of the obtained display area, a UIwebview can be created. Contents of currently displayed tabbed-pages in the browser can be loaded via the created UIwebview. That is, the browsing mode before the operation of pinning the tabbed-page can be restored.

FIG. 5illustrates an exemplary device for processing a tabbed-page in accordance with various disclosed embodiments. For example, the tabbed-page processing device can be a software module, a hardware module, or a module of a combination of software and hardware that can be operated in a terminal device (e.g., mobile phones and tablet computers as disclosed herein). Alternatively, the exemplary tabbed-page processing device can also be used as an independent application integrated into an application system of the terminal device.

For example, the tabbed-page processing device can include an area obtaining module51, and a pinning module52.

The area obtaining module51can be used to obtain a first display area when a pinning operation command with respect to a tabbed-page in a browser from a user is received.

The pinning module52can be used to create a corresponding first UIwebview based on the first display area obtained by the area obtaining module51and load content of the tabbed-page via the first UIwebview so as to pin the tabbed-page.

Further, the device can also include a processing module53. The processing module53can be used to obtain a second display area from the screen, to create a second UIwebview based on the second display area, and to load contents of remaining tabbed-pages in the browser via the second UIwebview. The remaining tabbed-pages are tabbed-pages in the browser excluding the pinned tabbed-page. In an exemplary embodiment, a sum of the first display area and the second display area can be the display area of the screen.

Further, the exemplary device ofFIG. 5can also include a detecting module54that can be used, when a sliding operation by a user with respect to the first display area and the second display area is detected, to record a sliding displacement and to adjust displaying widths of the first display area and the second display area according to the sliding displacement. The sliding operation can include long pressing an arrow key that is displayed at a border between the first display area and the second display area and dragging the arrow key left or right so as to adjust the displaying widths of the first display area and the second display area.

It should be noted that, in order to obtain multiple pinned tabbed-pages, pinning operation can also be performed with respect to the remaining tabbed-pages in the browser. That is, when a pinning operation command with respect to a tabbed-page among the remaining tabbed-pages in the browser is received from a user, a third display area can be obtained. The third display area can be a display area within the second display area. Based on a size of the third display area, a third UIwebview can be created and content of the tabbed-page can be loaded via the third UIwebview. Based on a size of a remaining display area of the second display area, a fourth UIwebview can be created and contents of remaining tabbed-pages in the browser can be loaded via the fourth UIwebview. Sizes of these display areas can be adjusted as needed, and so on, such that multiple pinned tabbed-pages can be obtained.

Further, the device inFIG. 5can also include an unpinning module55. The unpinning module55can be used, when an operation command for unpinning a pinned tabbed-page is received from a user, to obtain a third display area, to create a third UIwebview based on the third display area, and to load contents of tabbed-pages currently displayed in the browser via the third UIwebview.

In an exemplary embodiment, the pinning operation command can include a long pressing command. A time length/period that the long-pressing command lasts can be greater than one second.

The tabbed-page processing device provided herein can be used in the above-described corresponding tabbed-page processing method as depicted inFIGS. 1-4and can refer to relevant descriptions of the tabbed-page processing method for details.

A person of ordinary skill in the art can understand that the modules included inFIG. 5are divided according to functional logic, but are not limited to the above divisions as long as the modules can implement corresponding functions. Further, the specific name of each functional module is used for distinguishing from on another without limiting the protection scope of the present disclosure.

In this manner, when a pinning operation command with respect to a tabbed-page in the browser from a user is received, a first display area can be obtained from the screen. Based on the obtained first display area, a corresponding first UIwebview can be created and content of the tabbed-page can be loaded via the first UIwebview so as to pin the tabbed-page. The UIwebview created herein is different from a UIwebview opened by the browser and an area displayed by the UIwebview created herein is also different from an area displayed by the UIwebview opened by the browser. Therefore, a browsing operation by a user with respect to other tabbed-pages in the browser cannot affect the pinned tabbed-page. This allows multiple pinned tabbed-pages to be obtained and thus can satisfy user's needs of simultaneously performing relevant browsing operations in multiple windows including, for example, playing a video in one window and simultaneously browsing a web page in another window. The disclosed methods and devices are easy to implement and easy to use.

In various embodiments, the disclosed modules can be configured in one apparatus or configured in multiple apparatus as desired. The modules disclosed herein can be integrated in one module or in multiple modules. Each of the modules disclosed herein can be divided into one or more sub-modules, which can be recombined in any manner.

One of ordinary skill in the art would appreciate that suitable software and/or hardware (e.g., a universal hardware platform) may be included and used in the disclosed methods and systems. For example, the disclosed embodiments can be implemented by hardware only, which alternatively can be implemented by software products only. The software products can be stored in a computer-readable storage medium including, e.g., ROM/RAM, magnetic disk, optical disk, etc. The software products can include suitable commands to enable a terminal device (e.g., including a mobile phone, a personal computer, a server, or a network device, etc.) to implement the disclosed embodiments.

INDUSTRIAL APPLICABILITY AND ADVANTAGEOUS EFFECTS

Without limiting the scope of any claim and/or the specification, examples of industrial applicability and certain advantageous effects of the disclosed embodiments are listed for illustrative purposes. Various alternations, modifications, or equivalents to the technical solutions of the disclosed embodiments can be obvious to those skilled in the art and can be included in this disclosure.

Using disclosed methods and devices for processing a tabbed-page, when a pinning operation command with respect to a tabbed-page in the browser from a user is received, a first display area can be obtained from the screen. Based on the obtained first display area, a corresponding first UIwebview can be created and content of the tabbed-page can be loaded via the first UIwebview so as to pin the tabbed-page. The UIwebview created herein is different from a UIwebview opened by the browser and an area displayed by the UIwebview created herein is also different from an area displayed by the UIwebview opened by the browser. Therefore, a browsing operation by a user with respect to other tabbed-pages in the browser cannot affect the pinned tabbed-page. This allows multiple pinned tabbed-pages to be obtained and thus can satisfy user's needs of simultaneously performing relevant browsing operations in multiple windows including, for example, playing a video in one window and simultaneously browsing a web page in another window. The disclosed methods and devices are easy to implement and easy to use.