Method and apparatus for gesture operation on address bar and touch screen terminal

There is provided a method and apparatus for gesture operation on address bar, a touch screen terminal and a computer readable storage medium, the method including: detecting an operation gesture acting on a current interface which is a user interface having an address bar; determining whether the operation gesture is matched with a preset address bar operation gesture or not when the operation gesture is detected; and generating a box at the current interface, displaying address bar operation option(s) associated with the preset address bar operation gesture on the box, and performing an address bar operation associated with an address bar operation option selected by a user, if the operation gesture is matched with the preset address bar operation gesture. Quick and convenient operation on an address bar is realized.

CROSS-REFERENCES TO RELATED APPLICATIONS

The present application is National Phase of International Application Number PCT/CN2013/089276 filed Dec. 12, 2013 and claims the priority of Chinese patent Application No. CN 201310152618.5 filed Apr. 27, 2013.

TECHNICAL FIELD

The present disclosure belongs to the field of touch screen terminal, and particularly relates to a method and apparatus for gesture operation on an address bar, a touch screen terminal and a computer readable storage medium.

BACKGROUND

An address bar is one of the important approaches for man-machine interaction in a touch screen terminal. A user can input corresponding characters such as a page address, a folder or file path and the like in an address bar to open a web page or a local page, or to jump to a folder or file page corresponding to a corresponding directory. Presently, shortcut operations on the address bar of the touch screen terminal are only limited to simple operations on the characters in the address bar such as copy, paste and the like. For other operations such as saving as a bookmark, searching, loading a web page and the like, it is needed to operate at other positions on the page where the address bar is located. For example, when the address bar is located at a browser page, the related operations such as saving as a bookmark, searching, loading a web page and the like are all within a toolbar at the bottom of the browser, and thus it is not quick and convenient for a user to use them.

SUMMARY OF THE DISCLOSURE

Embodiments of the present disclosure provides a method and apparatus for gesture operation on address bar, a touch screen terminal and a computer readable storage medium, aiming to resolve the problem that existing methods for operation on address bar is not quick and convenient.

In one aspect, there is provided a method for gesture operation on an address bar, comprising: detecting an operation gesture acting on a current interface which is a user interface (UI) having an address bar; determining whether the operation gesture is matched with a preset address bar operation gesture or not when the operation gesture is detected; and generating a box at the current interface, displaying address bar operation option(s) associated with the preset address bar operation gesture on the box, and performing an address bar operation associated with an address bar operation option selected by a user, if the operation gesture is matched with the preset address bar operation gesture.

In another aspect, there is provided an apparatus for gesture operation on an address bar, comprising: a gesture detection unit configured to detect an operation gesture acting on a current interface which is a user interface having an address bar; a gesture determination unit configured to determine whether the operation gesture is matched with a preset address bar operation gesture or not when the operation gesture is detected; and an operation performing unit configured to generate a box at the current interface, to display address bar operation option(s) associated with the preset address bar operation gesture on the box, and to perform an address bar operation associated with an address bar operation option selected by a user, if the operation gesture is matched with the preset address bar operation gesture.

In a further aspect, there is provided a touch screen terminal comprising the apparatus for gesture operation on an address bar as described above.

In a still further aspect, there is provided a computer readable storage medium having stored thereon a computer program containing a program code, which, when executed on a computing device, performs respective steps of the method for gesture operation on an address bar as described above.

According to embodiments of the present disclosure, quick and convenient operations on an address bar are realized.

DETAILED DESCRIPTION

In order to make the object, technical schemes and advantages of the present disclosure more clear, a further detailed description of the present disclosure will be made in conjunction with attached drawings and embodiments below. It is appreciated that specific embodiments described herein are only used to explain but not to limit the present disclosure.

In an embodiment of the present disclosure, an operation gesture acting on a current interface which is a UI (User Interface) having an address bar is detected; whether the operation gesture is matched with a preset address bar operation gesture or not is determined when the operation gesture is detected; and if the operation gesture is matched with the preset address bar operation gesture, a box is generated at the current interface, address bar operation option(s) associated with the preset address bar operation gesture is displayed on the box, and an address bar operation associated with an address bar operation option selected by a user is performed.

The detailed description of the implementation of the present disclosure is made in conjunction with specific embodiments below.

FIG. 1shows a flowchart of the implementation of a method for gesture operation on an address bar provided in one embodiment of the present disclosure. The method can for example be applied to any electronic device having a UI containing an address bar. Preferably, the electronic device can be a terminal with a touch screen (also referred to as touch screen terminal). The detailed description thereof is as follows.

At a step S101, an operation gesture acting on a current interface which is a UI having an address bar is detected.

In the present embodiment, the current interface can include a browser page, a folder page and any other page containing an address bar. The address bar for different pages can have different address bar operations. For example, the address bar of a browser page includes address bar operations such as saving as a bookmark, searching, loading a web page and the like. The operation gesture can be for example a touch operation by a user through a touch screen and is used for triggering and performing an address bar operation of the current interface. The operation gesture includes, but is not limited to, sliding by double fingers, pressing and clicking, sliding by three fingers and so on. A touch screen device can detect an operation gesture acting on the current interface.

As an optional additional step, it is also possible to set an address bar operation gesture corresponding to the address bar operation as the preset address bar operation gesture. This step can be performed for example before the step of detecting the operation gesture acting on a current interface.

Specifically, it is possible to preset multiple address bar operations corresponding to one address bar operation gesture. It is also possible to preset one address bar operation corresponding to one address bar operation gesture. In this way, there may be two cases when a user operates on an address bar. In one case, one address bar operation gesture is corresponding to multiple address bar operations, and at this point, multiple address bar operation options associated with the multiple address bar operations are displayed so as for the user to select a certain address bar operation to be performed. In the other case, one address bar operation is corresponding to one address bar operation gesture, and at this time, the address bar operation corresponding to the user's gesture may be performed directly, or the one address bar operation option corresponding to the one address bar operation may be displayed and selected by the user to perform the one address bar operation. It is noted that the corresponding address bar operation option may be or may not be displayed in the case of performing the address bar operation directly.

At a step S102, it is determined whether the operation gesture is matched with a preset address bar operation gesture or not when the operation gesture is detected.

In the present embodiment, the preset address bar operation gesture can be a preset user operation action instruction associated with the performance of the address bar operation. The preset address bar operation gesture includes, but is not limited to, sliding by double fingers, pressing and clicking, sliding by three fingers and so on. The preset gestures may be corresponding to the address bar operations in a manner of one-to-one or one-to-many. Specifically, it can be set for example that the sliding by double fingers is corresponding to the operation of saving as a bookmark for the address bar of the browser page, the pressing and clicking is corresponding to the operation of searching, the sliding by three fingers is corresponding to the operation of loading a web page, and a narrowing gesture is corresponding to all the address bar operations.

At a step S103, if the operation gesture is matched with the preset address bar operation gesture, a box is generated at the current interface, address bar operation option(s) associated with the preset address bar operation gesture is displayed on the box, and an address bar operation associated with an address bar operation option selected by a user is performed.

In the present embodiment, the step S103can include two cases specifically as follows.

In the first case, if the preset address bar operation gesture is corresponding to multiple address bar operations, a box is generated at the current interface, address bar operation options corresponding to the multiple address bar operations respectively are displayed on the box, and an address bar operation associated with an address bar operation option selected by a user is performed.

Specifically, the box is used for presenting options associated with the address bar operations and includes, but is not limited to, a window, a menu or the like. Since the address bars of different pages correspond to different numbers of address bar operations, the box presents different numbers of options depending on application situations. If the preset address bar operation gesture is corresponding to multiple address bar operations, then a box (for example, one box) is generated at the current interface, the address bar operation option corresponding to every address bar operation is displayed on the box, and the address bar operation associated with an address bar operation option selected by a user among the displayed address bar operation options is performed. Specifically, taking the configuration of the browser page as described above as an example, when a narrowing gesture of the user is detected, since the preset address bar operation gesture matched with the gesture is corresponding to multiple address bar operations, one menu displaying the multiple address bar operations can be generated, so that the user can select an address bar operation to be performed depending on specific requirements. Here, the selection operation of the user may be for example clicking on the corresponding operation option or the like.

In the second case, if the preset address bar operation gesture is corresponding to one address bar operation, a box can be generated at the current interface, the address bar operation option corresponding to the one address bar operation can be displayed on the box, and the address bar operation associated with the address bar operation option selected by a user can be performed. In this way, although the preset address bar operation gesture is corresponding to only one address bar operation, the user is still required to select the corresponding address bar operation option so that the corresponding address bar operation can be preformed. Such operating way is similar with the case that one address bar operation gesture is corresponding to multiple address bar operations.

Another optional scheme in the second case is that the one address bar operation corresponding to the preset address bar operation gesture can be performed directly without any selection operation of the user if the preset address bar operation gesture is corresponding to the one address bar operation.

Specifically, if the user sets a preset gesture corresponding to a single address bar operation, after the operation gesture matched with the preset gesture, a box may be invoked to display the address bar operation option for the user to select, or the address bar operation corresponding to the preset gesture may be performed directly. The corresponding address bar operation option may be or may not be displayed in the case of performing the address bar operation directly. Taking the setting of the browser page as described above as an example, if a gesture of sliding by three fingers by user is detected, since the gesture is the same as the preset address bar operation gesture corresponding to the operation of loading a web page, the browser can perform loading the web page corresponding to the website address directly.

For example, an applicable scenario of the present embodiment is described by taking the address bar of the browser of a touch screen phone as a specific target object as follows.

As shown inFIG. 2, a browser page200(an example of UI) of the touch screen phone is displayed, a user can click the address bar201therein, and input content such as a website address, a email address or the like in the address bar201. Then, as shown inFIG. 3, when the input is completed and other address bar operations are required to be performed on the address bar201, an operation gesture can be performed by the user at the address bar201. If the operation gesture is matched with a preset gesture and the preset gesture is corresponding to multiple address bar operations of the browser, as shown inFIG. 4, the browser generates a menu402(an example of the box) near the address bar and presents options corresponding to the multiple address bar operations, such as options of saving as a bookmark, searching and loading a web page, or the like, on the menu402. InFIG. 4, the options are schematically shown as operation1, operation2and operation3. When the user selects a corresponding option for example by clicking or the like, the address bar operation associated with the selected option is performed.

In the present embodiment, invoking an address bar operation by an operation gesture can be achieved, thus quick and convenient operation on an address bar is realized.

The second embodiment of the present disclosure provides another specific application scenario of the method for gesture operation on address bar. The detailed description thereof is as follows.

As shown inFIG. 2, a browser page200of the touch screen phone is displayed, a user can click the address bar201therein, and input content such as a website address, a email address or the like in the address bar201. Then, as shown inFIG. 3, when the input is completed and other address bar operations are required to be performed on the address bar201, an operation gesture can be performed by the user at the address bar201. If the operation gesture is matched with the preset gesture and the preset gesture is corresponding to one address bar operation of the browser, for example any one of operations of saving as a bookmark, searching, loading a web page and so on, the address bar operation can be performed directly, and at this point, the operation option corresponding to the address bar operation may be or may not be displayed. Alternatively, in such a case, it is also possible to present the option corresponding to the one address bar operation on the menu for the user to select, and when the option is selected by the user, the address bar operation associated with the option is performed.

FIG. 5is a structural schematic diagram of an apparatus for gesture operation on an address bar provided in another embodiment of the present disclosure, in which only parts related to the embodiment of the present disclosure are shown for the convenience of description. In the present embodiment, the apparatus for gesture operation on an address bar includes a gesture detection unit51, a gesture determination unit52, an operation performing unit53and a gesture setting unit54. It is noted that the gesture setting unit54is an optional unit rather than an essential unit, and thus the block for the gesture setting unit54is shown by a broken line inFIG. 5.

The gesture detection unit51is configured to detect an operation gesture acting on a current interface which is a UI having an address bar.

The gesture determination unit52is configured to determine whether the operation gesture is matched with a preset address bar operation gesture or not when the operation gesture is detected.

The operation performing unit53is configured to generate a box at the current interface, to display address bar operation option(s) associated with the preset address bar operation gesture on the box, and to perform an address bar operation associated with an address bar operation option selected by a user, if the operation gesture is matched with the preset address bar operation gesture.

Preferably, if the preset address bar operation gesture is corresponding to one or more address bar operations, the operation performing unit may be configured to generate a box at the current interface, to display address bar operation options corresponding to the one or more address bar operations respectively on the box, and to perform an address bar operation associated with an address bar operation option selected by a user.

Preferably, if the preset address bar operation gesture associates with one address bar operation, the operation performing unit may be configured to perform the one address bar operation corresponding to the preset address bar operation gesture directly. As described above, when the one address bar operation corresponding to the preset address bar operation gesture is performed directly, an address bar operation option associated with the preset address bar operation gesture may be or may not be displayed on one box.

Preferably, the apparatus may further includes a gesture setting unit54configured to set an address bar operation gesture corresponding to the address bar operation as the preset address bar operation gesture.

Preferably, the box includes a window, a menu or the like.

The corresponding method embodiments as described above can be applied to the specific description of the apparatus for gesture operation on an address bar provided in the embodiment of the present disclosure, the detail of which refers to the description of the above method embodiments and will no longer be given here for avoiding redundancy.

It is noted that, in the above apparatus embodiment, respective units included are divided in accordance with only functional logic, but are not limited to the above division. It suffices that the respective units can realize corresponding functions. In addition, the specific names of the respective functional units are only for the convenience of distinguishing one from another, but are not used to limit the protection scope of the present disclosure.

Furthermore, it can be understood by those ordinary skilled in the art that all or part of steps for implementing the methods of respective embodiments as described above may be completed by the related hardware instructed by a program which may be stored in a computer readable storage medium such as a ROM/RAM, a magnetic disk, a compact disc or the like. For example, the present disclosure may be implemented as a computer readable storage medium having stored thereon a computer program containing a program code, which, when executed on a computing device, performs respective steps of the method for gesture operation on an address bar as described above.

FIG. 6is a structural schematic diagram showing an example electronic device which can be used to implement respective embodiments of the present disclosure.

The electronic device600shown inFIG. 6is only an example and is not limiting of the functionality and the scope of use of embodiments of the disclosure. As shown inFIG. 6, the electronic device600may be in a form of a general purpose computing device. Components of the electronic device600may include, but are not limited to, one or more processors or processing units612, a system memory604, an I/O interface616, a network adapter618, a display620and a bus614that couples various components, and may be connected to an external device622.

The bus614represents one or more of several types of bus structures. For example, such bus structures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA (EISA) bus, Video Electronics Standards Association (VESA) local bus, Peripheral Component Interconnect (PCI) bus, and so on.

The electronic device600typically includes a variety of computer system readable media. Such medium may be any readable media that is accessible by the electronic device600, and it includes both volatile and non-volatile media, and both removable and non-removable media.

The system memory604can include readable media in the form of volatile memory, such as random access memory (RAM)606and/or cache memory608. The electronic device600may further include other removable/non-removable, volatile/non-volatile storage media. For example, the storage system610(typically called a “hard drive”) can be provided for reading from and writing to a non-removable, non-volatile magnetic media. Although not shown, a magnetic disk drive for reading from and writing to a removable, non-volatile magnetic disk (e.g., a “U disk”), and an optical disk drive for reading from or writing to a removable, non-volatile optical disk such as a CD-ROM, DVD-ROM or other optical media can be provided. In such instances, each drive can be connected to the bus614by one or more data medium interfaces.

The system memory604may include at least one program product having a set (for example, at least one) of program modules which may be stored in the storage system610. The program module contains a computer executable program instruction. Such program modules are configured to perform functions of respective embodiments of the present disclosure by the processing units612executing the program instruction therein. Such program modules include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each of these examples of program modules or some combination thereof may include an implementation of a networking environment.

The electronic device600may also communicate with one or more external devices622such as a keyboard, a mouse, the display620, etc.; and one or more devices that enable a user to interact with the electronic device600. Such communication can occur via the Input/Output (I/O) interface616. Further, the electronic device600can also communicate with one or more networks such as a local area network (LAN), a general wide area network (WAN), and/or a public network (e.g., the Internet) via the network adapter618such as a network card, modem, etc. As shown inFIG. 6, the I/O interface616and the network adapter618communicates with the other modules of the electronic device600via the bus614. It should be understood that although not shown, other hardware and/or software modules can be used in conjunction with the electronic device600. Such other hardware and/or software modules include, but are not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data archival storage systems, etc.

Respective units or steps in respective embodiments of the present disclosure may all be implemented by executing program modules having computer program instructions in the electronic device600.

The described above is only preferable embodiments of the present disclosure and is not intended to limit the present disclosure. Any modification, equivalent replacement, improvement, etc made within the spirit and principle of the present disclosure should all be contained within the protection scope of the present disclosure.