AU2016204284B2 - Control selection approximation - Google Patents

Control selection approximation Download PDF

Info

Publication number
AU2016204284B2
AU2016204284B2 AU2016204284A AU2016204284A AU2016204284B2 AU 2016204284 B2 AU2016204284 B2 AU 2016204284B2 AU 2016204284 A AU2016204284 A AU 2016204284A AU 2016204284 A AU2016204284 A AU 2016204284A AU 2016204284 B2 AU2016204284 B2 AU 2016204284B2
Authority
AU
Australia
Prior art keywords
view
contact
child
application
user interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
AU2016204284A
Other versions
AU2016204284A1 (en
Inventor
Thomas Andrew Cooke Dale
Christopher Brian Fleizach
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Apple Inc
Original Assignee
Apple Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from AU2011268047A external-priority patent/AU2011268047C1/en
Priority claimed from AU2014200702A external-priority patent/AU2014200702C1/en
Application filed by Apple Inc filed Critical Apple Inc
Priority to AU2016204284A priority Critical patent/AU2016204284B2/en
Publication of AU2016204284A1 publication Critical patent/AU2016204284A1/en
Application granted granted Critical
Publication of AU2016204284B2 publication Critical patent/AU2016204284B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Position Input By Displaying (AREA)

Abstract

Control Selection Approximation A method includes displaying a user interface of an application on a device's touch-sensitive display. The user interface includes a plurality of regions, including a 5 respective region at a respective hierarchy level. The respective region has two or more child regions at a hierarchy level below the respective hierarchy level. The method includes detecting a first contact at a location that corresponds to the respective region and that does not correspond to any of the two or more child regions. When the application is configured to process the first contact, not in conjunction with the respective region, but in 10 conjunction with at least one child region of the two or more child regions, the method includes identifying a respective child region in accordance with positions of the child regions relative to the location, and processing the first contact in conjunction with the identified respective child region using the application.

Description

control selection Approximation
TECHNICAL FIELD
[0001] This relates generally to user interface processing, including but not limited to, apparatuses and methods for recognizing touch inputs.
[0001A] Incorporated herein by reference, in its entirety, is PCT/US2011/039583 (published as WO2011/159531), filed on 8 June 2011.
BACKGROUND
[0002] The use of touch-sensitive surfaces as input devices for computers and other electronic computing devices has increased significantly in recent years. Exemplary touch-sensitive surfaces include touch pads and touch screen displays. Such surfaces are widely used to select and/or manipulate user interface objects on a display.
[0003] Touch inputs are commonly based on finger contacts. However, the size of fingers (or fingertips) may make it challenging to accurately select user interface objects that are designed and sized for different user interface methods (e.g., traditional mouse-based inputs). In addition, user interface objects may be sized small for various reasons (e.g., provide more screen/display real estate such that more information can be displayed in a single view). Furthermore, people with temporary or permanent disability, handicap, or ailments (e.g., reduced visual perception and/or reduced motor skills) may have difficulty precisely selecting and/or manipulating user interface objects.
[0004] Thus, it would be desirable to have a comprehensive framework or mechanism for recognizing touch-based gestures and events, as well as gestures and events from other input sources, even if the touch-based gestures and events are detected outside intended user interface objects.
[0004A] Reference to any prior art in the specification is not an acknowledgment or suggestion that this prior art forms part of the common general knowledge in any jurisdiction or that this prior art could reasonably be expected to be understood, regarded as relevant, and/or combined with other pieces of prior art by a skilled person in the art.
SUMMARY
[0004B] According to a first aspect of the invention there is provided a method, comprising: at an electronic device with a touch-sensitive display: displaying on the touch-sensitive display a user interface of an application, the user interface including a plurality of views and a plurality of activatable user interface objects in the plurality of views; detecting on the touch-sensitive display a first contact at a first location that corresponds to the displayed user interface; in response to detecting the first contact at the first location: identifying a hit view based on the first location, wherein the hit view is a lowest view, in a view hierarchy of the plurality of views, that corresponds to the first location; and determining whether the application is configured to process the first contact with the hit view; in accordance with determining that the application is not configured to process the first contact with the hit view, determining whether the application is configured to process the first contact with a child view of the hit view, wherein the hit view contains the child view and the child view is at a level lower than a level of the hit view in the view hierarchy; and, in accordance with determining that the application is configured to process the first contact with a child view of the hit view, processing the first contact with the child view of the hit view.
[0004C] According to a second aspect of the invention there is provided an electronic device comprising a touch-sensitive display, one or more processors, and memory storing one or more programs for execution by the one or more processors, the one or more programs including instructions for: displaying on the touch-sensitive display a user interface of an application, the user interface including a plurality of views and a plurality of activatable user interface objects in the plurality of views; detecting on the touch-sensitive display a first contact at a first location that corresponds to the displayed user interface; in response to detecting the first contact at the first location: identifying a hit view based on the first location, wherein the hit view is a lowest view, in a view hierarchy of the plurality of views, that corresponds to the first location; and determining whether the application is configured to process the first contact with the hit view; in accordance with determining that the application is not configured to process the first contact with the hit view, determining whether the application is configured to process the first contact with a child view of the hit view, wherein the hit view contains the child view and the child view is at a level lower than a level of the hit view in the view hierarchy; and, in accordance with determining that the application is configured to process the first contact with a child view of the hit view, processing the first contact with the child view of the hit view.
[0004D] According to a third aspect of the invention there is provided a computer readable storage medium storing one or more programs for execution by one or more processors in an electronic device with a touch-sensitive display, the one or more programs including instructions for: displaying on the touch-sensitive display a user interface of an application, the user interface including a plurality of views and a plurality of activatable user interface objects in the plurality of views; detecting on the touch-sensitive display a first contact at a first location that corresponds to the displayed user interface; in response to detecting the first contact at the first location: identifying a hit view based on the first location, wherein the hit view is a lowest view, in a view hierarchy of the plurality of views, that corresponds to the first location; and determining whether the application is configured to process the first contact with the hit view; in accordance with determining that the application is not configured to process the first contact with the hit view, determining whether the application is configured to process the first contact with a child view of the hit view, wherein the hit view contains the child view and the child view is at a level lower than a level of the hit view in the view hierarchy; and, in accordance with determining that the application is configured to process the first contact with a child view of the hit view, processing the first contact with the child view of the hit view.
[0005] In accordance with some embodiments, a method is performed at an electronic device having a touch-sensitive display. The method includes displaying on the touch-sensitive display a user interface of an application. The displayed user interface includes a plurality of regions that are arranged in multiple hierarchical levels. The plurality of regions includes a respective region at a respective hierarchy level. The respective region has two or more child regions at a hierarchy level below the respective hierarchy level. The method also includes detecting on the touch-sensitive display a first contact at a first location that corresponds to the respective region and that does not correspond to any of the two or more child regions of the respective region.
The method includes, in response to detecting the first contact, determining whether the application is configured to process the first contact in conjunction with the respective region. The method further includes, when the application is not configured to process the first contact in conjunction with the respective region, determining whether the application is configured to process the first contact in conjunction with at least one child region of the two or more child regions of the respective region. The method includes, when the application is configured to process the first contact in conjunction with at least one child region of the two or more child regions of the respective region, identifying a respective child region of the two or more child regions of the respective region, in accordance with positions of the child regions relative to the first location, and processing the first contact in conjunction with the identified respective child region using the application.
[0006] In accordance with some embodiments, a method is performed at an electronic device having a touch-sensitive display. The method includes displaying on the touch-sensitive display a web page (or other document) including a plurality of activatable user interface objects. The method also includes detecting on the touch-sensitive display a first contact at a first location that corresponds to the displayed web page. The method includes, in response to detecting the first contact at the first location, determining whether the first location corresponds to at least one of the activatable user interface objects. The method further includes, when the first location does not correspond to at least one of the activatable user interface objects, identifying a user interface object, if any, that best satisfies a predefined rule with respect to the first location, and performing an action corresponding to the identified user interface object.
[0007] In accordance with some embodiments, an electronic device includes: a touch-sensitive display, one or more processors for executing programs, and memory storing one or more programs to be executed by the one or more processors. The one or more programs include instructions executed by the one or more processors so as to perform any of the aforementioned methods.
[000S] In accordance with some embodiments, a computer readable storage medium stores one or more programs configured for execution by one or more processors in an electronic device. The one or more programs include instructions for performing any of the aforementioned methods.
[0009] In accordance with some embodiments, an electronic device includes: a touch-sensitive display, one or more processors, and memory storing one or more programs for execution by the one or more processors. The one or more programs include instructions that when executed by the one or more processors cause the electronic device to display on the touch-sensitive display a user interface of an application. The displayed user interface includes a plurality of regions that are arranged in multiple hierarchical levels. The plurality of regions includes a respective region at a respective hierarchy level. The respective region has two or more child regions at a hierarchy level below the respective hierarchy level. The one or more programs also include instructions that when executed by the one or more processors cause the electronic device to detect on the touch-sensitive display a first contact at a first location that corresponds to the respective region and that does not correspond to any of the two or more child regions of the respective region. The one or more programs include instructions that when executed by the one or more processors cause the electronic device to, in response to detecting the first contact, determine whether the application is configured to process the first contact in conjunction with the respective region. The one or more programs include instructions that when executed by the one or more processors cause the electronic device to, when the application is not configured to process the first contact in conjunction with the respective region, determine whether the application is configured to process the first contact in conjunction with at least one child region of the two or more child regions of the respective region. The one or more programs further include instructions that when executed by the one or more processors cause the electronic device to, when the application is configured to process the first contact in conjunction with at least one child region of the two or more child regions of the respective region, identify a respective child region, of the two or more child regions of the respective region, in accordance with positions of the child regions relative to the first location, and process the first contact in conjunction with the identified respective child region using the application.
[0010] In accordance with some embodiments, a computer readable storage medium stores one or more programs for execution by one or more processors in an electronic device with a touch-sensitive display. The one or more programs include instructions that when executed by the one or more processors cause the electronic device to provide, for display on the touch-sensitive display, a user interface of an application. The displayed user interface includes a plurality of regions that are arranged in multiple hierarchical levels. The plurality of regions includes a respective region at a respective hierarchy level. The respective region has two or more child regions at a hierarchy level below the respective hierarchy level. The one or more programs also include instructions that when executed by the one or more processors cause the electronic device to, in response to detection of a first contact on the touch-sensitive display, determine whether the application is configured to process the first contact in conjunction with the respective region. The first contact at a first location corresponds to the respective region and does not correspond to any of the two or more child regions of the respective region. The one or more programs include instructions that when executed by the one or more processors cause the electronic device to, when the application is not configured to process the first contact in conjunction with the respective region, determine whether the application is configured to process the first contact in conjunction with at least one child region of the two or more child regions of the respective region. The one or more programs further include instructions that when executed by the one or more processors cause the electronic device to, when the application is configured to process the first contact in conjunction with at least one child region of the two or more child regions of the respective region, identify a respective child region, of the two or more child regions of the respective region, in accordance with positions of the child regions relative to the first location, and process the first contact in conjunction with the identified respective child region using the application.
[0011] In accordance with some embodiments, an electronic device includes a touch- sensitive display; and means for displaying on the touch-sensitive display a user interface of an application. The displayed user interface includes a plurality of regions that are arranged in multiple hierarchical levels, and the plurality of regions includes a respective region at a respective hierarchy level. The respective region has two or more child regions at a hierarchy level below the respective hierarchy level. The electronic device also includes: means for detecting on the touch-sensitive display a first contact at a first location that corresponds to the respective region and that does not correspond to any of the two or more child regions of the respective region; and means, enabled in response to detecting the first contact, for determining whether the application is configured to process the first contact in conjunction with the respective region. The electronic device furthermore includes means, enabled when the application is not configured to process the first contact in conjunction with the respective region, including: means for determining whether the application is configured to process the first contact in conjunction with at least one child region of the two or more child regions of the respective region; and means, enabled when the application is configured to process the first contact in conjunction with at least one child region of the two or more child regions of the respective region, which includes: means for identifying a respective child region, of the two or more child regions of the respective region, in accordance with positions of the child regions relative to the first location; and means for processing the first contact in conjunction with the identified respective child region using the application.
[0012] In accordance with some embodiments, an information processing apparatus for use in an electronic device with a touch-sensitive display includes means for displaying on the touch-sensitive display a user interface of an application. The displayed user interface includes a plurality of regions that are arranged in multiple hierarchical levels, and the plurality of regions includes a respective region at a respective hierarchy level. The respective region has two or more child regions at a hierarchy level below the respective hierarchy level. The information processing apparatus also includes: means for detecting on the touch-sensitive display a first contact at a first location that corresponds to the respective region and that does not correspond to any of the two or more child regions of the respective region; and means, enabled in response to detecting the first contact, for determining whether the application is configured to process the first contact in conjunction with the respective region. The information processing apparatus furthermore includes means, enabled when the application is not configured to process the first contact in conjunction with the respective region, including: means for determining whether the application is configured to process the first contact in conjunction with at least one child region of the two or more child regions of the respective region; and means, enabled when the application is configured to process the first contact in conjunction with at least one child region of the two or more child regions of the respective region, which includes: means for identifying a respective child region, of the two or more child regions of the respective region, in accordance with positions of the child regions relative to the first location; and means for processing the first contact in conjunction with the identified respective child region using the application.
[0013] In accordance with some embodiments, an electronic device includes: a touch-sensitive display, one or more processors, and memory storing one or more programs for execution by the one or more processors. The one or more programs include instructions that when executed by the one or more processors cause the electronic device to display on the touch-sensitive display a web page (or other document) including a plurality of activatable user interface objects, and detect on the touch-sensitive display a first contact at a first location that corresponds to the displayed web page. The one or more programs also include instructions that when executed by the one or more processors cause the electronic device to, in response to detecting the first contact at the first location, determine whether the first location corresponds to at least one of the activatable user interface objects. The one or more programs further include instructions that when executed by the one or more processors cause the electronic device to, when the first location does not correspond to at least one of the activatable user interface objects, identify a user interface object, if any, that best satisfies a proximity criterion with respect to the first location, and perform an action corresponding to the identified user interface object.
[0014] In accordance with some embodiments, a computer readable storage medium stores one or more programs for execution by one or more processors in an electronic device with a touch-sensitive display. The one or more programs include instructions that when executed by the one or more processors cause the electronic device to display on the touch-sensitive display a web page (or other document) including a plurality of activatable user interface objects, and detect on the touch-sensitive display a first contact at a first location that corresponds to the displayed web page. The one or more programs also include instructions that when executed by the one or more processors cause the electronic device to, in response to detecting the first contact at the first location, determine whether the first location corresponds to at least one of the activatable user interface objects. The one or more programs further include instructions that when executed by the one or more processors cause the electronic device to, when the first location does not correspond to at least one of the activatable user interface objects, identify a user interface object, if any, that best satisfies a proximity criterion with respect to the first location, and perform an action corresponding to the identified user interface object.
[0015] In accordance with some embodiments, an electronic device includes a touch-sensitive display; and means for displaying on the touch-sensitive display a web page including a plurality of activatable user interface objects. The electronic device also includes means for detecting on the touch-sensitive display a first contact at a first location that corresponds to the displayed web page; and means, enabled in response to detecting the first contact at the first location, for determining whether the first location corresponds to at least one of the activatable user interface objects. The electronic device furthermore includes means, enabled when the first location does not correspond to at least one of the activatable user interface objects, including: means for identifying a user interface object, if any, that best satisfies a predefined rule with respect to the first location; and means for performing an action corresponding to the identified user interface object.
[0016] In accordance with some embodiments, an information processing apparatus for use in an electronic device with a touch-sensitive display includes means for displaying on the touch-sensitive display a web page including a plurality of activatable user interface objects; means for detecting on the touch-sensitive display a first contact at a first location that corresponds to the displayed web page; and means, enabled in response to detecting the first contact at the first location, for determining whether the first location corresponds to at least one of the activatable user interface objects. The information processing apparatus also includes means, enabled when the first location does not correspond to at least one of the activatable user interface objects, including: means for identifying a user interface object, if any, that best satisfies a predefined rule with respect to the first location; and means for performing an action corresponding to the identified user interface object.
[0017] In accordance with some embodiments, an electronic device includes a touch-sensitive display unit configured to display a user interface of an application and receive finger contacts. The displayed user interface includes a plurality of regions that are arranged in multiple hierarchical levels, and the plurality of regions includes a respective region at a respective hierarchy level. The respective region has two or more child regions at a hierarchy level below the respective hierarchy level. The electronic device also includes a processing unit coupled to the touch-sensitive display unit. The processing unit is configured to: detect on the touch-sensitive display unit a first contact at a first location that corresponds to the respective region and that does not correspond to any of the two or more child regions of the respective region; and, in response to detecting the first contact, determine whether the application is configured to process the first contact in conjunction with the respective region. The processing unit is further configured to, when the application is not configured to process the first contact in conjunction with the respective region, determine whether the application is configured to process the first contact in conjunction with at least one child region of the two or more child regions of the respective region. The processing unit is further configured to, when the application is configured to process the first contact in conjunction with at least one child region of the two or more child regions of the respective region: identify a respective child region, of the two or more child regions of the respective region, in accordance with positions of the child regions relative to the first location; and process the first contact in conjunction with the identified respective child region using the application.
[0018] In accordance with some embodiments, an electronic device includes a touch-sensitive display unit configured to receive finger contacts and display a web page including a plurality of activatable user interface objects. The electronic device also includes a processing unit coupled to the touch-sensitive display unit. The processing unit is configured to: detect on the touch-sensitive display unit a first contact at a first location that corresponds to the displayed web page; and, in response to detecting the first contact at the first location, determine whether the first location corresponds to at least one of the activatable user interface objects. The processing unit is further configured to, when the first location does not correspond to at least one of the activatable user interface objects: identify a user interface object, if any, that best satisfies a predefined rule with respect to the first location; and perform an action corresponding to the identified user interface object.
BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 is a block diagram illustrating an electronic device, in accordance with some embodiments.
[0020] Figure 2 is a diagram of an input/output processing stack of an exemplary electronic device, in accordance with some embodiments.
[0021] Figure 3 illustrates an exemplary view hierarchy, in accordance with some embodiments.
[0022] Figures 4A-4C are exemplary user interfaces including a hierarchy of views, in accordance with some embodiments.
[0023] Figures 5A-5D are flow charts illustrating an exemplary method of processing a respective contact, in accordance with some embodiments.
[0024] Figure 6 is a flow chart illustrating an exemplary method of processing a respective contact on a web page or other document, in accordance with some embodiments.
[0025] Figure 7 is a block diagram illustrating exemplary components for event handling in accordance with some embodiments.
[0026] Figure 8 is a functional block diagram of an electronic device in accordance with some embodiments.
[0027] Figure 9 is a functional block diagram of an electronic device in accordance with some embodiments.
[0028] Like reference numerals refer to corresponding parts throughout the drawings.
DESCRIPTION OF EMBODIMENTS
[0029] Reference will now be made in detail to embodiments, examples of which are illustrated in the accompanying drawings. In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. However, it will be apparent to one of ordinary skill in the art that the present invention may be practiced without these specific details. In other instances, well-known methods, procedures, components, circuits, and networks have not been described in detail so as not to unnecessarily obscure aspects of the embodiments.
[0030] It will also be understood that, although the terms first, second, etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, a first contact could be termed a second contact, and, similarly, a second contact could be termed a first contact, without departing from the scope of the present invention. The first contact and the second contact are both contacts, but they are not the same contact.
[0031] The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the description of the invention and the appended claims, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
[0032] As used herein, the term "if' may be construed to mean "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrase "if it is determined" or "if [a stated condition or event] is detected" may be construed to mean "upon determining" or "in response to determining" or "upon detecting (the stated condition or event)" or "in response to detecting (the stated condition or event)," depending on the context.
[0033] As used herein, the term “event” refers to an input detected by one or more sensors of the device. In particular, the term “event” includes a touch on a touch-sensitive surface. An event comprises one or more sub-events. Sub-events typically refer to changes to an event (e.g., a touch-down, touch-move, and lift-off of the touch can be sub-events). Sub-events in the sequence of one or more sub-events can include many forms, including without limitation, key presses, key press holds, key press releases, button presses, button press holds, button press releases, joystick movements, mouse movements, mouse button presses, mouse button releases, pen stylus touches, pen stylus movements, pen stylus releases, finger contacts, finger movements, finger lift-offs, oral instructions, detected eye movements, biometric inputs, and detected physiological changes in a user, among others. Since an event may comprise a single sub-event (e.g., a finger contact on a touch-sensitive display), the term “sub-event” as used herein also refers to an event.
[0034] As used herein, the terms “event recognizer” and “gesture recognizer” are used interchangeably to refer to a recognizer that can recognize a gesture. In some embodiments, an event recognizer can recognize other events (e.g., motion of the device).
[0035] When using touch-based gestures to control an application running in a device having a touch-sensitive surface, touches have both temporal and spatial aspects. The temporal aspect, called a phase, indicates when a touch has just begun, whether it is moving or stationary, and when it ends—that is, when the finger is lifted from the screen. A spatial aspect of a touch is the set of views or user interface regions in which the touch occurs. The views or regions in which a touch is detected may correspond to programmatic levels within a view hierarchy. For example, the lowest level view in which a touch is detected is called the hit view, and the set of events that are recognized as proper inputs may be determined based, at least in part, on the hit view of the initial touch that begins a touch-based gesture.
[0036] Figure 1 is a block diagram illustrating different embodiments of an electronic device 102, in accordance with some embodiments. The electronic device 102 may be any electronic device including, but not limited to, a desktop computer system, a laptop computer system, a netbook computer system, mobile phone, a smart phone, a personal digital assistant, or a navigation system. The electronic device may also be a portable electronic device with a touch screen display (e.g., touch-sensitive display 156) configured to present a user interface, a computer with a touch screen display configured to present a user interface, a computer with a touch sensitive surface and a display configured to present a user interface, or any other form of computing device, including without limitation, consumer electronic devices, mobile telephones, video game systems, electronic music players, tablet PCs, electronic book reading systems, e-books, PDAs, electronic organizers, email devices, laptops, netbooks or other computers, kiosk computers, vending machines, smart appliances, etc. The electronic device 102 includes a user interface 113.
[0037] Electronic device 102 includes a touch screen display (e.g., touch-sensitive display 156). In some embodiments, user interface 113 may include an on-screen keyboard (not depicted) that is used by a user to interact with electronic devices 102. In some embodiments, electronic device 102 also includes one or more input devices 128 (e.g., keyboard, mouse, trackball, microphone, physical button(s), touchpad, etc.). In some embodiments, touch-sensitive display 156 has the ability to detect two or more distinct, concurrent (or partially concurrent) touches, and in these embodiments, display 156 is sometimes herein called a multitouch display or multitouch-sensitive display.
[0038] When performing a touch-based gesture on touch-sensitive display 156 of electronic device 102, the user generates a sequence of sub-events that are processed by one or more CPUs 110 of electronic device 102. In some embodiments, one or more CPUs 110 of electronic device 102 process the sequence of sub-events to recognize events.
[0039] Electronic device 102 typically includes one or more single- or multi-core processing units (“CPU” or “CPUs”) 110 as well as one or more network or other communications interfaces 112, respectively. Electronic device 102 includes memory 111 and one or more communication buses 115, respectively, for interconnecting these components. Communication buses 115 may include circuitry (sometimes called a chipset) that interconnects and controls communications between system components (not depicted herein). Memory 111 may include high-speed random access memory, such as DRAM, SRAM, DDR RAM or other random access solid state memory devices; and may include non-volatile memory, such as one or more magnetic disk storage devices, optical disk storage devices, flash memory devices, or other non-volatile solid state storage devices. Memory 111 may optionally include one or more storage devices remotely located from the CPU(s) 110. Memory 111, or alternately the non-volatile memory device(s) within memory 111, comprise a computer readable storage medium. In some embodiments, memory 111, or the nonvolatile memory device(s) within memory 111, comprises a non-transitory computer readable storage medium. In some embodiments, memory 111 or the computer readable storage medium of memory 111 stores the following programs, modules and data structures, or a subset thereof: • operating system 118, which includes procedures for handling various basic system services and for performing hardware dependent tasks; • accessibility module 126, which is used for modifying behavior of one or more software applications in application software 132 (including browser application 133) or modifying data from touch-sensitive display 156 or input device(s) 128 to improve accessibility of the one or more software applications in application software 132 or accessibility to content (e.g., a web page) displayed therein; • communication module 120, which is used for connecting electronic device 102, respectively, to other devices via their one or more respective communication interfaces 112 (wired or wireless) and one or more communication networks, such as the Internet, other wide area networks, local area networks, metropolitan area networks, and so on; • user interface module 122, which is used for displaying user interfaces including user interface objects on touch-sensitive display 156; • control application 124, which is used for controlling processes (e.g., hit view determination, thread management, and/or event monitoring, etc.); in some embodiments, control application 124 includes a run-time application; in other embodiments, the run-time application includes control application 124; • event delivery system 130, which may be implemented in various alternate embodiments within operating system 118 or in application software 132; in some embodiments, however, some aspects of event delivery system 130 may be implemented in operating system 118 while other aspects (e.g., at least a subset of event handlers) are implemented in application software 132; • application software 132, which may include one or more software applications (e.g., an email annlication. web browser annlication 133. a text messaeine annlication. etc.): a respective software application typically has, at least when executing, an application state, indicating the state of the software application and its components (e.g., gesture recognizers and delegates); see application internal state 792 (Figure 7), described below; • document 134 (e.g., a web page, or a user interface of a respective application 132 or embedded application 144), which may include content as well as a hierarchy of object/regions; in some embodiments, one or more objects/regions 136 in the hierarchy have one or more child objects/regions (e.g., 140-1 and 140-2); in some embodiments, at least a subset of object/region 136 and child objects/regions 140 has one or more properties 138, such as visibility (which indicates whether a corresponding object/region is shown or hidden when document 134 is rendered by application 132/133 and displayed on display 156), static characteristic (which indicates whether a corresponding object/region is configured to be changed by the user when document 134 is displayed), and predefined approximation property (which is described below with reference to operation 546 in Figure 5D); in some embodiments, the hierarchy of objects/regions also includes a parent region/object and in some cases, additional regions/objects at a hierarchy level higher than the hierarchy level of object/region 136 and/or lower hierarchy region/object of any of child object/region 140; in some embodiments, document 134 also include embedded application 144, which may be based on Java script, Java applet, Ajax, Comet, Active X, or any other programming languages and tools; and • device/global internal state 146, which includes one or more of: application state, indicating the state of software applications and their components (e.g., gesture recognizers); display state, indicating what applications, views or other information occupy various regions of touch-sensitive display 156; sensor state, including information obtained from the device’s various sensors (not shown), input devices 128, and/or touch-sensitive display 156; and location information concerning the device’s location and/or attitude.
[0040] Each of the above identified elements may be stored in one or more of the previously mentioned memory devices. Each of the above identified module, application or system elements corresponds to a set of instructions for performing functions described herein. The set of instructions can be executed by one or more processors (e.g., one or more CPUs 110). The above identified modules or programs (i.e., sets of instructions) need not be implemented as separate software programs, procedures or modules, and thus various subsets of these modules may be combined or otherwise rearranged in various embodiments. In some embodiments, memory 111 may store a subset of the modules and data structures identified above. Furthermore, memory 111 may store additional modules and data structures not described above.
[0041] Figure 2 is a diagram of input/output processing stack 200 of an exemplary electronic device or apparatus (e.g., device 102) according to some embodiments of the invention. Hardware (e.g., electronic circuitry) 212 of the device is at the base level of the input/output processing stack 200. Hardware 212 can include various hardware interface components, such as the components depicted in Figure 1. Hardware 212 can also include one or more of above mentioned sensors 130. All the other elements (132, 204-210) of input/output processing stack 200 are software procedures, or portions of software procedures, that process inputs received from hardware 212 and generate various outputs that are presented through a hardware user interface (e.g., one or more of a display, speakers, device vibration actuator).
[0042] A driver or a set of drivers 210 communicates with hardware 212. Drivers 210 can receive and process input data received from hardware 212. Core Operating System (“OS”) 208 can communicate with driver(s) 210. Core OS 208 can process raw input data received from driver(s) 210. In some embodiments, drivers 210 can be considered to be a part of core OS 208.
[0043] A set of OS application programming interfaces (“OS APIs”) 206, are software procedures that communicate with core OS 208. In some embodiments, APIs 206 are included in the device’s operating system, but at a level above core OS 208. APIs 206 are designed for use by applications running on the electronic devices or apparatuses discussed herein. User interface (UI) APIs 204 can utilize OS APIs 206. Application software (“applications”) 132 running on the device can utilize UI APIs 204 in order to communicate with the user. UI APIs 204 can, in turn, communicate with lower level elements, ultimately communicating with various user interface hardware, e.g., multitouch display 156.
[0044] While each layer input/output processing stack 200 can utilize the layer underneath it, that is not always required. For example, in some embodiments, applications 132 can occasionally communicate with OS APIs 206. In general, layers at or above OS API layer 206 may not directly access Core OS 208, driver(s) 210, or hardware 212, as these layers are considered private. Applications in layer 132 and UI API 204 usually direct calls to the OS API 206, which in turn, accesses the layers Core OS 208, driver(s) 210, and hardware 212.
[0045] Stated in another way, one or more hardware elements 212 of electronic device 102, and software running on the device, such as, for example, drivers 210, core OS (operating system) 208, operating system API software 206, and Application and User Interface API software 204 detect input events (which may correspond to sub-events in a gesture) at one or more of the input device(s) 128 and/or a touch-sensitive display 156 and generate or update various data structures (stored in memory of device 102) used by a set of currently active event recognizers to determine whether and when the input events correspond to an event to be delivered to application 132. Embodiments of event recognition methodologies, apparatus and computer program products are described in more detail below.
[0046] Figure 3 depicts an exemplary view hierarchy 300 (also called a hierarchy of regions), which in this example is a search program displayed in outermost view 302 (which is typically a highest view). As used herein, in some embodiments, a respective view corresponds to a respective region, and in some embodiments, a respective user interface object corresponds to a respective region. Outermost view 302 (or an outermost region) generally encompasses the entire user interface a user may directly interact with, and includes subordinate views (also called child regions), e.g., • search results panel view 304, which groups search results and can be scrolled vertically; • search field view 306, which accepts text inputs; and • a home row view 310, which groups applications for quick access.
[0047] In this example, each subordinate view includes lower-level subordinate views (or a child region of the respective child region). In other examples, the number of view levels in the hierarchy 300 may differ in different branches of the hierarchy, with one or more subordinate views having lower-level subordinate views, and one or more other subordinate views may not have any such lower-level subordinate views. Continuing with the example shown in Figure 3, search results panel view 304 contains a respective subordinate view 305 (subordinate to panel 304) for each search result. Here, this example shows one search result in a subordinate view called maps view 305. Search field view 306 includes a subordinate view herein called clear contents icon view 307, which clears the contents of a search field in the search field view 306 when a user performs a particular action (e.g., a single touch or tap gesture) on the clear contents icon in view 307. Home row view 310 includes subordinate views 310-1, 310-2, 310-3, and 310-4, which respectively correspond to a contacts application, an email application, a web browser, and an iPod music interface.
[0048] Stated differently, search result panel view 304 is a parent region of maps view 305, and outermost view 302 is a parent region of search result panel view 304. At the same time, search result panel view 304 is a child region of outermost view 302, and maps view 305 is a child region of search result panel view 304. Similarly, search field view 306 and home row view 310 are also child regions of outermost view 302.
[0049] In Figure 3, a touch sub-event 301-1 is represented in outermost view 302. Given the location of touch sub-event 301-1 over both the search results panel 304, and maps view 305, the touch sub-event is also represented over those views as 301-2 and 301-3, respectively. Actively involved views of the touch sub-event include all views that correspond to the location of touch sub-event 301-1 (e.g., views search results panel 304, maps view 305, and outermost view 302). A hit view is the lowest level view among the actively involved views, which in this example is maps view 305. Additional information regarding sub-event delivery and actively involved views is provided below with reference to Figures 7.
[0050] Views (and corresponding programmatic levels) can be nested. In other words, a view can include other views. Consequently, the software element(s) (e.g., event recognizers) associated with a first view can include or be linked to one or more software elements associated with views within the first view. While some views can be associated with applications, others can be associated with high level OS elements, such as graphical user interfaces, window managers, etc.
[0051] Figures 4A-4C are exemplary user interfaces including a hierarchy of views, in accordance with some embodiments.
[0052] In Figure 4A, application 132-1 includes a plurality of views 408 (e.g., 408-1 and 408-2 through 408-N) in view hierarchy 402. In this example, Hit View 408-1 includes a plurality of child views 408-A, 408-B, and 408-C and a plurality of user interface objects (textl 416-1 through text3 416-3) in the child views (408-A through 408-C). Hit View+1 408-2 (also called a parent view of Hit View 408-1) includes a plurality of child views (4081, 408-D and 408-E) and a plurality of user interface objects (textl 416-1, text2 416-2, text3 41603, text4 416-4 and text5 416-5) in the plurality of child views (408-1, 408-D and 408-E). Although a respective child view may match the size of a user interface object that is included in the respective child view, in this example each child view is larger than a respective user interface object it includes (e.g., child view 408-A is larger than textl 416-1). Such view or region can be used as a hit region for the respective user interface object it includes such that any function associated with the respective user interface object is activated when a contact is detected at a location corresponding to the hit region, even if the contact is detected outside the respective user interface object. In some embodiments, respective child views in a subset of child views are larger than corresponding respective user interface objects, while remaining child views match the size of corresponding respective user interface objects.
[0053] Figure 4A also illustrates that contact 405 is detected on the touch-sensitive display. A lowest view in view hierarchy 402 that corresponds to a contact is called a hit view. In this example, Hit View 408-1 is a lowest view in view hierarchy 402 that corresponds to contact 405. In this example, at the location of contact 405, Hit View 408-1 does not include any user interface object.
[0054] When application 132-1 is configured to process contact 405 in conjunction with Hit View 408-1, contact 405 is processed in conjunction with Hit View 408-1 using application 132-1. When application 132-1 is not configured to process contact 405 in conjunction with Hit View 408-1 (e.g., Hit View 408-1 does not have any gesture recognizers; or, there is no gesture recognizer attached to Hit View 408-1 that is configured to recognize or try to recognize contact 405), other views are evaluated to determine whether application 132-1 can process contact 405 in conjunction with any other view 408. For example, child views 408-A through 408-C of Hit View 408-1 are first evaluated. In this example, Hit View 408-1 does not have any gesture recognizer that is configured to recognize or try to recognize contact 405 because the location of the contact 405 does not overlap the hit region of any user interface object in Hit View 408-1.
[0055] When application 132-1 is configured to process contact 405 in conjunction with one of child views 408-A through 408-C (e.g., when only child view 408-C of child views 408-A through 408-C has a gesture recognizer that is configured to recognize or try to recognize contact 405), contact 405 is processed in conjunction with that child view using the application. When application 132-1 is configured to process contact 405 in conjunction with two or more of the child views 408-A through 408-C (e.g., when each of the child views 408-A through 408-C has a gesture recognizer that is configured to recognize or try to recognize contact 405), one of the two or more child views is selected to process contact 405.
Typically, a child view that is closest to contact 405 is selected (e.g., view 408-B including text2 416-2).
[0056] When application 132-1 is not configured to process contact 405 in conjunction with any of the child views 408-A through 408-C of Hit View 408-1, a parent view (e.g., 408-2) of Hit View 408-1 is evaluated. When application 132-1 is configured to process contact 405 in conjunction with parent view 408-2 (also called Hit View+1), contact 405 is processed in conjunction with parent view 408-2 using application 132-1. If the application is not configured to process contact 405 in conjunction with parent view 408-2, other child views of parent view 408-2 (i.e., child views of parent view 408-2 other than Hit View 408-1, such as child view 408-D and 408-E) are evaluated. Hit View 408-1 is excluded from the child views of parent view 408-2 because that view (Hit View 408-1) was already evaluated with respect to contact 405 prior to contact 405 being evaluated with respect to Hit View 408-2.
[0057] Similar to processing contact 405 using one or more child views of Hit View 408-1, when application 132-1 is configured to process contact 405 with one of child views 408-D through 408-E, contact 405 is processed in conjunction with the one child view using the application. When application 132-1 is configured to process contact 405 in conjunction with two or more of the child views (e.g., both 408-D and 408-E), one of the two or more child views is selected to process contact 405. Typically, a child view that is closest to contact 405 is selected (e.g., view 408-D including text4 416-4). Typically, once a respective view is selected for processing a contact, the contact is bound to that view (meaning that all event processing for the contact and any subsequent portions of a gesture or event) until the event associated with the contact is completed.
[0058] When application 132-1 is not configured to process contact 405 in conjunction with any of the child views 408-D and 408-E of parent view 408-2, child views (not shown) of the child views 408-D and 408-E are evaluated, followed by evaluation of a parent view (e.g., grandparent view) of the parent view, and then child views of the grandparent view. Such evaluations are repeated through the view hierarchy 402 until all lower views of highest view 408-N are evaluated.
[0059] In some embodiments, when application 132-1 is not configured to process contact 405 in conjunction with any view in view hierarchy 402, contact 405 is ignored. In other embodiments, a predefined action (e.g., a default action, such as a selection of a default user interface object) is performed.
[0060] Although not shown in Figure 4A, in some embodiments, Hit View 408-1 includes a single child view that includes a single user interface object (e.g., a button). When application 132-1 is not configured to process a contact on Hit View 408-1 in conjunction with Hit View 408-1 but is configured to process the contact in conjunction with the single child view of Hit View 408-1, the contact is processed in conjunction with the single child view using application 132-1.
[0061] Similar to Figure 4A, Figure 4B illustrates that application 132-2 includes a plurality of views 418 (e.g., 418-1A, 418-1B and 418-2 through 418-N) in view hierarchy 412 displayed on a touch-sensitive display. In this example, parent view 418-2 (Hit View+1) includes two toolbars (418-1A and 418-1B). Hit View 418-1A that corresponds to contact 407 includes a first toolbar (toolbarl), and includes a plurality of buttons or icons on the toolbar (416-6 through 416-8) in a plurality of views (418-F through 418-H). In this example, a respective child view matches the size and shape of a respective user interface object included in it. View 418-IB includes a second toolbar (toolbar2) and a plurality of buttons (416-10 through 416-12) in a plurality of views (418-1 through 418-K).
[0062] Figure 4B also illustrates that contact 407 is detected on the touch-sensitive display. When application 132-2 is not configured to process contact 407 in conjunction with Hit View 418-1A but is configured to process contact 407 in conjunction with two or more of child views 418-F through 418-H, one of the two or more child views is selected. Typically, one of the two or more child views that is closest to contact 407 is selected.
[0063] When application 132-2 is not configured to process contact 407 in conjunction with any of child views 418-F through 418-H, parent view 418-2, and subsequently view 418-IB are evaluated, followed by evaluation of child views 408-1 through 418-K of view 418-1B. If application 132-2 is configured to process contact 407 in conjunction of any of child views 418-1 through 418-K, contact 407 may activate a function of application 132-2 that corresponds to one of the buttons on toolbar2 (e.g., button D 41610, button E 416-11, or button F 416-12), even though contact 407 was detected on toolbarl.
[0064] Similar to Figure 4A, Figure 4C illustrates that application 132-3 includes a plurality of views 428 (e.g., 428-1 and 428-2 through 428-N) in view hierarchy 422 displayed on a touch-sensitive display. In this example, Hit View 428-1 includes two user interface objects of a different size (e.g., image 416-21 and button 416-22).
[0065] When a respective view includes user interface objects of different sizes and/or shapes (or child views of different sizes and/or shapes), there are multiple ways to identify a user interface object that is closest to a contact. In some embodiments, a centroid-to-centroid distance, which is a distance from a centroid (e.g., 409-1) of a contact (e.g., 409) to a centroid of a user interface object, is used to determine a closest user interface object. In some embodiments, a shortest distance, which is a distance from a first point on a user interface object that is closest to the centroid (e.g., 409-1) of the contact (e.g., 409) is used.
In some embodiments, a predefined number of points (e.g., eight points) are used to simplify distance calculation. For example, eight points (top-left comer, top-right comer, bottom-left comer, bottom-right comer, middle of the top edge, middle of the bottom edge, middle of the left edge, and middle of the right edge) can be used to calculate eight distances per candidate user interface object, and a shortest distance of the eight distances is selected for each candidate user interface object. In some embodiments, a distance from a contact to a user interface object comprises a weighted average of distances from the contact to a predetermined number (e.g., three) of closest points of a respective child view or user interface object. For example, the three closest points of a respective child view or object may be selected from among nine predefined points, including the eight points mentioned above and the centroid of the object (or other “center” point in the objects interior). In some embodiments, different weights are used for each of the predetermined number of closest points. For example, when the predetermined number of closest points is three, the weights can be 0.5 for the closest point, 0.3 for the second closest point, and 0.2 for the third closest point (weighted distance = 0.5di + 0.3d2 + 0.2d3, where di, d2 and d3 are the distances from the first point to the closest, second closest and third closest points).
[0066] With respect to Figure 4C, although the foregoing has been described for identifying a closest user interface object, analogous methods can be used to identify a closest view or region.
[0067] In some embodiments, at least one view in view hierarchy 402 includes a portion of a web page or other document. In some embodiments, views in view hierarchy 402 include different portions of a web page or other document.
[0068] Figures 5A-5D are flow charts illustrating an exemplary method of processing a respective contact, in accordance with some embodiments.
[0069] Method 500 is performed (502) at an electronic device (e.g., 102) with a touch-sensitive display (e.g., 156).
[0070] The device displays (504) on the touch-sensitive display a user interface of an application, the displayed user interface including a plurality of regions (e.g., views 408 in Figure 4A) that are arranged in multiple hierarchical levels (e.g., view hierarchy 402). The plurality of regions includes a respective region (e.g., Hit View 408-1) at a respective hierarchy level. The respective region has two or more child regions at a hierarchy level below the respective hierarchy level (e.g., views 408-A, 408-B, and 408-C).
[0071] The device detects (508) on the touch-sensitive display a first contact (e.g., 405) at a first location that corresponds to the respective region and that does not correspond to any of the two or more child regions of the respective region. In Figure 4A, Hit View 4081 is the lowest level hit view, as there are no lower level views that “hit” or overlap with contact 405. The first location is typically the centroid of the first contact region, but may alternatively be determined from the first contact region in accordance with any appropriate methodology for assigning a specific location to a contact.
[0072] In some embodiments, respective child regions of the two or more child regions have (510) respective hit regions, at least one of which is different from the corresponding child region (e.g., textl 416-1 is a child region of view 408-1, and view 408-A is the hit region of textl 416-1, Figure 4A). Detecting that the first contact (508) corresponds to the respective region includes determining that the first location does not correspond to any of the hit regions of the respective region’s child regions. In some user interfaces, a respective hit region includes, and is larger than, a corresponding child region (e.g., view 408-A includes, and is larger than, textl 416-1). A user interface object or region can have a hit region of a different size (e.g., larger, smaller, and/or skewed) from the user interface object or region to facilitate selection of particular objects or regions of the user interface.
On the other hand, the hit region of a respective user interface object or region can be coextensive with (have the same size, shape and position as) the user interface object or region.
[0073] Typically, in order for the first contact to correspond to the respective region, the first location is located (512) outside any of child regions of the respective region (e.g., contact 405 is located outside any of child views 408-A through 408-C, Figure 4A).
[0074] In response to detecting the first contact, the device determines (514) whether the application is configured to process the first contact in conjunction with the respective region (e.g., the device determines whether Hit View 408-1 includes a gesture recognizer that is configured to recognize or try to recognize contact 405).
[0075] In some embodiments, the application is deemed (520, Figure 5B) to be configured to process the first contact in conjunction with the respective region when the respective region includes a user interface object having at least one property in a predefined set of properties. For example, application 132-1 in Figure 4A is deemed to be configured to process the first contact (e.g., 405) in conjunction with view 408-A when a user interface object (e.g., textl 416-1) in that view 408-A has a predefined “approximation” property (which enables object selection or activation even when a user contact does not overlap the object). In some embodiments, the application 132-1 is deemed to be configured to process the first contact in conjunction with the respective region when the respective region itself has at least one property in a predefined set of properties. For example, application 132-3 in Figure 4C would be deemed to be configured to process the first contact (e.g., 409) in conjunction with view 428-1, if view 428-1 were to have a text property specifying text to be spoken when the view 428-1 is selected and an accessibility option for speaking such text is enabled.
[0076] In some embodiments, a respective region is deemed to be configured to process the first contact, when the respective region is the region for a user interface object of a type in a predefined set of user interface object types (e.g., button, checkbox, combobox, link, list box, menu button, pop-up button, radio button, slider, and text field). In some embodiments, the predefined set of user interface object types also includes one or more of: disclosure triangle, heading, image, static text, and text area.
[0077] In some embodiments, the application is deemed (522) to be configured to process the first contact in conjunction with the respective region when the respective region includes a user interface object that is configured to be activated in response to a gesture that includes the first contact (at the location of that first contact). For example, application 132-1 in Figure 4A is deemed to be configured to process the first contact (e.g., 405) in conjunction with view 408-A, when view 408-A includes a user interface object (e.g., textl 416-1) that is configured to be activated in response to a gesture that includes the first contact. Nonlimiting examples of a user interface object that is not configured to be activated in response to a gesture that includes the first contact include: 1) a static user interface object (e.g., a label for displaying text or graphics, without any assigned function), and 2) a user interface object that is configured to be activated in response to a different gesture (e.g., a two-finger contact). An example of a user interface region that is not configured to be activated in response to a gesture that includes the first contact is: Hit View 408-1 because the first contact 405 does not overlap any selectable/activatable object in Hit View 408-1. Furthermore, the application is deemed to be configured to process the first contact in conjunction with the respective region when the respective region itself has a user interface object that is configured to be activated in response to a gesture that includes the first contact.
[0078] In some embodiments, the application is deemed (524) to be configured to process the first contact in conjunction with the respective region when at least one event recognizer is associated with the respective region. Event recognizers (or gesture recognizers) are described in detail with respect to Figure 7. More typical are embodiments in which an application is deemed (526) to be configured to process the first contact in conjunction with the respective region when an event recognizer configured to recognize a gesture that includes the first contact is associated with the respective region. Conversely, when a particular type of contact (e.g., a one-finger contact) is detected, and a respective region (or a view) does not include an event recognizer that is configured to recognize a gesture beginning with that type of contact, the respective region is not deemed to be configured to process the first contact in conjunction with the respective region.
[0079] When the application is configured to process the first contact in conjunction with the respective region, the device processes (516, Figure 5 A) the first contact in conjunction with the respective region using the application. For example, the device activates a function associated with the respective region (e.g., if the respective region includes a save button, the device initiates saving of a corresponding content or document).
In another example, if the respective region includes a hyperlink (e.g., a uniform resource locator), the device initiates opening a resource (e.g., a web page) corresponding to the hyperlink.
[OOSO] In some embodiments, processing the first contact in conjunction with the respective region using the application includes presenting confirmation information. In some embodiments, presenting conformation information includes providing affordance. For example, the device may visually distinguish (e.g., bolding, flashing, enlarging, and/or changing colors) text corresponding to the respective region (e.g., text included in the respective region, a name of a function corresponding to the respective region, or embedded text corresponding to the respective region, such as help text). Presenting confirmation information can include non-visual signals. For example, the device may use a text-to-speech software to convert the text corresponding to the respective region into an audible speech signal, or may play a sound clip corresponding to the respective region. In another example, the device may convert the text corresponding to the respective region into Braille symbols for presentation using a Braille device (not shown).
[0081] In some embodiments, processing the first contact in conjunction with the respective region using the application includes receiving a confirmation gesture. For example, after presenting the confirmation information, the device receives a confirmation gesture (e.g., a single tap gesture, a double tap gesture, or a tap-and-hold gesture, located anywhere on the touch-sensitive display of the device or within a specific region on the touch-sensitive display, such as bottom half of the touch-sensitive display).
[0082] When the application is not configured to process the first contact in conjunction with the respective region (518 in Figures 5A and 5C), the device performs at least a subset of the following operations (e.g., operations 528, 530, 532, 534, and operations included therein, and in some embodiments, operations 536, 538, and/or 540).
[0083] The device determines (528 in Figure 5C) whether the application is configured to process the first contact in conjunction with at least one child region of the two or more child regions of the respective region (e.g., in Figure 4A, the device determines whether application 132-1 is configured to process contact 405 in conjunction with any of views 408-A, 408-B, and 408-C).
[0084] When the application is configured to process the first contact in conjunction with at least one child region of the two or more child regions of the respective region (530), the device performs the following operations (e.g., operations 532 and 534, and operations included therein).
[0085] The device identifies (532) a respective child region, of the two or more child regions of the respective region, in accordance with positions of the child regions relative to the first location. For example, the device identifies child view 408-B of child views 408-A through 408-C as a closest child view, in accordance with positions of child views 408-A through 408-C relative to contact 405.
[0086] In some embodiments, identifying the respective child region (operation 532), of the two or more child regions of the respective region, in accordance with positions of the child regions relative to the first location includes (542, Figure 5D) identifying the child region, of the two or more child regions of the respective region, that best satisfies a proximity criterion with respect to the first location. For example, the device identifies a child region that is closest to the first location based on the proximity criterion. The proximity criterion is based on at least one of: the centroid-to-centroid distance, the shortest distance between a user interface object or a child view to the first location, a shortest distance to the first location based on a predetermined number of points (for each child view), and a shortest distance to the first location based on a weighted average of distances from a predetermined number of points (for each child view).
[0087] In some embodiments, identifying the respective child region (operation 532), of the two or more child regions of the respective region, in accordance with positions of the child regions relative to the first location includes (544) identifying the child region, of the two or more child regions of the respective region, that best satisfies a proximity criterion with respect to the first location, and confirming that the identified child region satisfies a maximum distance limit with respect to the first location. For example, if the distance from the identified child view to the first location exceeds the maximum distance limit, the identified child region is ignored. In some embodiments, when none of the child regions are within maximum distance limit of the contact of the first location, the device ignores the contact at the first location. In other embodiments, the device continues to evaluate other regions, including a parent region of the respective region.
[0088] In some user interfaces, one or more child regions of the two or more child regions have (546) a predefined approximation property and at least one other child region does not have the predefined approximation property. Identifying the respective child region includes identifying a respective child region, of the one or more child regions of the respective region that have the predefined approximation property, in accordance with positions of the child regions relative to the first location. For example, at least a subset of the child regions can be configured to have a predefined approximation property. The predefined approximation property indicates whether a corresponding region is eligible for activation/selection even when a contact is detected at a location that does not correspond to the region. The predefined approximation property can be located within properties (e.g., 138 in Figure 1) in each of the subset of the child regions. When the predefined approximation property is used, the device identifies a child region among child regions that have the predefined approximation property.
[0089] When an appropriate region of the user interface (e.g., the identified child region) has been identified, the device processes (534, Figures 5C and 5D) the first contact in conjunction with that region (e.g., the identified respective child region) using the application.
[0090] In some embodiments, the plurality of regions comprises (548) a plurality of hierarchically arranged views corresponding to the regions. Each of the plurality of the views typically has at least one event recognizer associated with the respective view. Processing the first contact in conjunction with the identified respective child region using the application comprises generating an event (or sub-event, when the contact corresponds to the first portion of a gesture or event) to be processed by at least one event recognizer of the view corresponding to the identified respective child region.
[0091] In some embodiments, the plurality of regions comprises (550) a plurality of hierarchically arranged views corresponding to the regions. Processing the first contact in conjunction with the identified respective child region using the application comprises processing the first contact as a contact in the identified respective child region. In some embodiments, processing the first contact as a contact in the identified respective child region includes generating a new event (or sub-event, as explained above) at a location that corresponds to the identified respective child region. For example, in Figure 4A, when the device processes contact 405 as a contact in child view 408-B, the device generates a new event that indicates a virtual contact at a location that corresponds to child view 408-B.
[0092] In some user interfaces, the respective region has (536, Figure 5C) a parent region (e.g., Hit View+1 408-2) at a hierarchy level above the respective hierarchy level. Optionally, in this situation, when the application is not configured to process the first contact in conjunction with at least one child region of the two or more child regions of the respective region, and the application is configured to process the first contact in conjunction with the parent region, the device processes (538) the first contact in conjunction with the parent region using the application. For example, in Figure 4A, if application 132-1 is not configured to process contact 405 in conjunction with any of child views 408-A through 408-C, the device processes contact 405 in conjunction with Hit View+1 408-2, if the application 132-1 is configured to process contact 405 in conjunction with Hit View+1 408-2.
[0093] In some embodiments, when the application is not configured to process the first contact in conjunction with at least one child region of the two or more child regions of the respective region, the device processes (540) the first contact as a contact in the parent region. In some embodiments, processing the first contact as a contact in the parent region includes generating a new event (or sub-event, as explained above) at a location that corresponds to the parent region. For example, in Figure 4A, when the device processes contact 405 as a contact in Hit View+1 408-2, the device generates a new event that indicates a virtual contact at a location that correspond to Hit View+1 408-2.
[0094] In some user interfaces, the parent region has one or more child regions at a hierarchy level at the respective hierarchy level, and when the application is not configured to process the first contact in conjunction with the parent region, the device processes the first contact in conjunction with at least one of the one or more child regions of the parent region, based on a condition that the application is configured to process the first contact in conjunction with at least one of the one or more child regions of the parent region.
[0095] Note that details of the processes described above with respect to method 500 are also applicable in an analogous manner to method 600 described below. For brevity, these details are not repeated below.
[0096] Figure 6 is a flow chart illustrating an exemplary method of processing a respective contact on a web page or other document, in accordance with some embodiments.
[0097] Method 600 is performed (602) at an electronic device (e.g., 102) with a touch-sensitive display (e.g., 156).
[0098] The device displays (604) on the touch-sensitive display a web page or other document 134 (Figure 1) including a plurality of activatable user interface objects (e.g., in Figure 4C, one or more views in view hierarchy 422 include a web page or other document in some embodiments, and the views also include user interface objects 416-21 and 416-22). In some embodiments, all user interface objects are activatable. In some embodiments, user interface objects with certain user interface object properties (e.g., hidden or static user interface objects) are not activatable while other user interface objects are activatable. In some embodiments, user interface objects of certain types (e.g., labels) are not activatable. Optionally, some or all of the objects in the displayed document may be generated by an embedded application, embedded in the document, as opposed to being statically defined by HTML or XML instructions (e.g., tags or elements) in the document. On the other hand, some or all of the objects in the displayed document may defined by HTML or XML instructions in the document.
[0099] The device detects (606) on the touch-sensitive display a first contact at a first location that corresponds to the displayed web page (e.g., contact 409).
[00100] In response to detecting the first contact at the first location, the device determines (608) whether the first location corresponds to at least one of the activatable user interface objects (e.g., in Figure 4C, contact 409 does not correspond to any of the user interface objects).
[00101] In some embodiments, when the first location corresponds to one of the activatable user interface objects, the device performs (624) an action corresponding to an activatable user interface object that corresponds to the first location (e.g., the hit region of the object overlaps the first location).
[00102] When the first location does not correspond to at least one of the activatable user interface objects (610), the device performs the following operations (e.g., 612 and 620 and in some embodiments, operations included therein).
[00103] The device identifies (612) a user interface object, if any, that best satisfies a predefined rule with respect to the first location. In some embodiments, the predefined rule requires identifying a closest activatable user interface object, and the device identifies a closest user interface object. In some embodiments, the predefined rule requires identifying a closest activatable user interface object within a maximum distance limit, and the device identifies a closest activatable user interface object, if there is one. However, the device may not identify any activatable user interface object if none of the activatable user interface objects are within the maximum distance limit.
[00104] In some embodiments, the predefined rule includes (614) a proximity criterion with respect to the first location. As discussed above, the proximity criterion is based on at least one of: the object centroid-to-first location distance; the shortest distance from a user interface object to the first location; the shortest distance from a user interface object to the first location based on a predetermined number of points for each activatable user interface object (e.g., the closest point of eight candidate points: four comers, four edge midpoints of the object); and the shortest weighted average distance from a user interface object to the first location, where the weighted average distance to the first location from a user interface object is based on a predetermined number (e.g., 3) of points of nine candidate points: four comers, four edge midpoints, and the centroid of the user interface object.
[00105] In some embodiments, detecting the first contact includes determining a speed and direction of the first contact at the first location, and the predefined rule is based on a weighted combination of a plurality of factors including the proximity criterion with respect to the first location, and a direction and speed of movement of the first contact. For example, in Figure 4C, although image 416-21 is a closest activatable user interface object to contact 409, the device may identify button 416-22 as a user interface object that best satisfies a predefined mle when contact 409 is moving toward button 416-22 at a sufficient speed. Similarly, when contact 409 is moving away from a particular button, the direction of movement of the contact away from the button is taken into account when applying the predefined mle (operation 612), which reduces the likelihood of identifying that button as the object that best satisfies the predefined mle.
[00106] In some embodiments, identifying the user interface object includes (616) determining respective distances from the first location to at least a subset of the activatable user interface objects (e.g., in Figure 4C, the device determines respective distances from contact 409 to image 416-21 and button 416-22) in order to identify a user interface object that best satisfies the predefined mle.
[00107] In some embodiments, each of the respective distances comprises (618) a weighted average of distances from the first location to a plurality of points of a respective activatable user interface object. For example, a distance between contact 409 and image 416-21 can be a weighted average of distances from the first location to a predetermined number (e.g., three) of points of image 416-21 (e.g., a weighted average of: a distance from contact centroid 409-1 to point 420-3, a distance from contact centroid 409-1 to point 420-2, and a distance from contact centroid 409-1 to point 420-4). In some embodiments, a shortest distance is more heavily weighted than a next shortest distance (e.g., the distance from contact centroid 409-1 to point 420-3 is more heavily weighted than the distance from contact centroid 409-1 to point 420-2).
[00108] The device performs (620) an action corresponding to the identified user interface object. The action performed typically depends on one or more characteristics of the identified user interface object. For example, when the identified user interface object is image 416-21 in Figure 4C, the device performs an action corresponding to image 416-21 (e.g., it changes the image displayed in 416-21, or directs the device to display a web page associated with image 416-21, etc.).
[00109] In some embodiments, performing the action comprises (622) activating the identified user interface object.
[00110] In some embodiments, the device determines on the touch-sensitive display a respective location of a respective activatable user interface object in the plurality of activatable user interface objects. For example, when rendering a web page, the device determines respective locations of respective activatable user interface objects (e.g., hyperlinks in the web page), and uses the respective locations in determining whether a contact overlaps with one of the user interface objects (e.g., operation 608) and/or identifying a user interface object that best satisfies a predefined rule (e.g., operation 612).
[00111] The operations described above with reference to Figures 5A-5D and 6 may be implemented in accessibility module 126 (in Figure 1), application software 132 (in particular, browser application 133), and/or embedded application 144. In addition to, or instead of, accessibility module 126, application software 132, and/or embedded application 144, the operations described above may be implemented by components depicted in Figure 7.
[00112] Figure 7 is a block diagram illustrating exemplary components for event handling 390 in accordance with some embodiments. In some embodiments, memory 111 (in Figure 1) includes event sorter 770 (e.g., in operating system 118) and a respective application 132-1.
[00113] Event sorter 770 receives event information and determines the application 132-1 and application view 791 of application 132-1 to which to deliver the event information. Event sorter 770 includes event monitor 771 and event dispatcher module 774. In some embodiments, application 132-1 includes application internal state 792, which indicates the current application view(s) displayed on touch sensitive display 156 when the application is active or executing. In some embodiments, device/global internal state 146 is used by event sorter 770 to determine which application(s) is(are) currently active, and application internal state 792 is used by event sorter 770 to determine application views 791 to which to deliver event information.
[00114] In some embodiments, application internal state 792 includes additional information, such as one or more of: resume information to be used when application 132-1 resumes execution, user interface state information that indicates information being displayed or that is ready for display by application 132-1 (which, in turn, may be controlled by an embedded application in document 134), a state queue for enabling the user to go back to a prior state or view of application 132-1, and a redo/undo queue of previous actions taken by the user.
[00115] Event monitor 771 receives event information from touch-sensitive display 156 and/or input devices 128. Event information includes information about an event (e.g., a user touch on touch-sensitive display 156, as part of a multi-touch gesture or a motion of device 102) and/or a sub-event (e.g., a movement of a touch across touch-sensitive display 156). For example, event information for a touch event includes one or more of: a location and time stamp of a touch. Similarly, event information for a swipe event includes two or more of: a location, time stamp, direction, and speed of a swipe. Touch-sensitive display 156, and input devices 128 transmit event information and sub-event information to event monitor 771 either directly or through a peripherals interface, which retrieves and stores event information. In some embodiments, the electronic device 102 also includes one or more sensors (not shown), such as proximity sensor, accelerometer(s), gyroscopes, microphone, and video camera, and the sensors transmit information event and sub-event information to event monitor 771.
[00116] In some embodiments, event sorter 770 also includes a hit view determination module 772 and/or an active event recognizer determination module 773.
[00117] Hit view determination module 772 provides software procedures for determining where a sub-event has taken place within one or more views, when touch sensitive display 156 displays more than one view. Views are made up of controls and other elements (e.g., user interface objects) that a user can see on the display.
[00118] Another aspect of the user interface associated with an application is a set of views, sometimes herein called application views or user interface windows, in which information is displayed and touch-based gestures occur. The application views (of a respective application) in which a touch is detected may correspond to programmatic levels within a programmatic or view hierarchy of the application. For example, the lowest level view in which a touch is detected may be called the hit view, and the set of events that are recognized as proper inputs may be determined based, at least in part, on the hit view of the initial touch that begins a touch-based gesture.
[00119] Hit view determination module 772 receives information related to sub-events of a touch-based gesture. When an application has multiple views organized in a hierarchy, hit view determination module 772 identifies a hit view as the lowest view in the hierarchy which should handle the sub-event. In most circumstances, the hit view is the lowest level view in which an initiating sub-event occurs (i.e., the first sub-event in the sequence of subevents that form an event or potential event). Once the hit view is identified by the hit view determination module, the hit view typically receives all sub-events related to the same touch or input source for which it was identified as the hit view.
[00120] Active event recognizer determination module 773 determines which view within a view hierarchy should receive a particular sequence of sub-events. In some embodiments, active event recognizer determination module 773 determines that a child region or a parent region of the hit view, or any other region in the view hierarchy related to the hit view should receive a particular sequence of sub-events, when the hit view does not have an event recognizer that is configured to recognize a particular sequence of sub-events. Similarly, active event recognizer determination module 773 repeats the determining operation until active event recognizer determination module 773 identifies a region that has an event recognizer that is configured to recognize a particular sequence of sub-events.
[00121] Event dispatcher module 774 dispatches the event information to an event recognizer (e.g., event recognizer 780). In embodiments including active event recognizer determination module 773, event dispatcher module 774 delivers the event information to an event recognizer determined by active event recognizer determination module 773. In some embodiments, event dispatcher module 774 stores in an event queue the event information, which is retrieved by a respective event receiver module 782.
[00122] In some embodiments, operating system 126 includes event sorter 770. Alternatively, application 132-1 includes event sorter 770. In yet other embodiments, event sorter 770 is a stand-alone module, or a part of another module stored in memory 102, such as contact/motion module 130.
[00123] In some embodiments, application 132-1 includes a plurality of event handlers 790 and one or more application views 791, each of which includes instructions for handling touch events that occur within a respective view of the application’s user interface. Each application view 791 of the application 132-1 includes one or more event recognizers 780. Typically, a respective application view 791 includes a plurality of event recognizers 780. In other embodiments, one or more of event recognizers 780 are part of a separate module, such as a user interface kit (not shown) or a higher level object from which application 132-1 inherits methods and other properties. In some embodiments, a respective event handler 790 includes one or more of: data updater 776, object updater 777, GUI updater 778, and/or event data 779 received from event sorter 770. Event handler 790 may utilize or call data updater 776, object updater 777 or GUI updater 778 to update the application internal state 792. Alternatively, one or more of the application views 791 includes one or more respective event handlers 790. Also, in some embodiments, one or more of data updater 776, object updater 777, and GUI updater 778 are included in a respective application view 791.
[00124] A respective event recognizer 780 receives event information (e.g., event data 779) from event sorter 770, and identifies an event from the event information. Event recognizer 780 includes event receiver 782 and event comparator 784. In some embodiments, event recognizer 780 also includes at least a subset of: metadata 783, and event delivery instructions 788 (which may include sub-event delivery instructions).
[00125] Event receiver 782 receives event information from event sorter 770. The event information includes information about a sub-event, for example, a touch or a touch movement. Depending on the sub-event, the event information also includes additional information, such as location of the sub-event. When the sub-event concerns motion of a touch the event information may also include speed and direction of the sub-event. In some embodiments, events include rotation of the device from one orientation to another (e.g., from a portrait orientation to a landscape orientation, or vice versa), and the event information includes corresponding information about the current orientation (also called device attitude) of the device.
[00126] Event comparator 784 compares the event information to predefined event or sub-event definitions and, based on the comparison, determines an event or sub-event, or determines or updates the state of an event or sub-event. In some embodiments, event comparator 784 includes event definitions 786. Event definitions 786 contain definitions of events (e.g., predefined sequences of sub-events), for example, event 1 (787-1), event 2 (787-2), and others. In some embodiments, sub-events in an event 787 include, for example, touch begin, touch end, touch movement, touch cancellation, and multiple touching. In one example, the definition for event 1 (787-1) is a double tap on a displayed object. The double tap, for example, comprises a first touch (touch begin) on the displayed object for a predetermined phase, a first lift-off (touch end) for a predetermined phase, a second touch (touch begin) on the displayed object for a predetermined phase, and a second lift-off (touch end) for a predetermined phase. In another example, the definition for event 2 (787-2) is a dragging on a displayed object. The dragging, for example, comprises a touch (or contact) on the displayed object for a predetermined phase, a movement of the touch across touch-sensitive display 156, and lift-off of the touch (touch end). In some embodiments, the event also includes information for one or more associated event handlers 790.
[00127] In some embodiments, event definition 787 includes a definition of an event for a respective user-interface object. In some embodiments, event comparator 784 performs a hit test to determine which user-interface object is associated with a sub-event. For example, in an application view in which three user-interface objects are displayed on touch-sensitive display 156, when a touch is detected on touch-sensitive display 156, event comparator 784 performs a hit test to determine which of the three user-interface objects is associated with the touch (sub-event). If each displayed object is associated with a respective event handler 790, the event comparator uses the result of the hit test to determine which event handler 790 should be activated. For example, event comparator 784 selects an event handler associated with the sub-event and the object triggering the hit test.
[00128] In some embodiments, the definition for a respective event 787 also includes delayed actions that delay delivery of the event information until after it has been determined whether the sequence of sub-events does or does not correspond to the event recognizer’s event type.
[00129] When a respective event recognizer 780 determines that the series of subevents do not match any of the events in event definitions 786, the respective event recognizer 780 enters an event impossible, event failed, or event ended state, after which it disregards subsequent sub-events of the touch-based gesture. In this situation, other event recognizers, if any, that remain active for the hit view continue to track and process subevents of an ongoing touch-based gesture.
[00130] In some embodiments, a respective event recognizer 780 includes metadata 783 with configurable properties, flags, and/or lists that indicate how the event delivery system should perform sub-event delivery to actively involved event recognizers. In some embodiments, metadata 783 includes configurable properties, flags, and/or lists that indicate how event recognizers may interact with one another. In some embodiments, metadata 783 includes configurable properties, flags, and/or lists that indicate whether sub-events are delivered to varying levels in the view or programmatic hierarchy.
[00131] In some embodiments, a respective event recognizer 780 activates event handler 790 associated with an event when one or more particular sub-events of an event are recognized. In some embodiments, a respective event recognizer 780 delivers event information associated with the event to event handler 790. Activating an event handler 790 is distinct from sending (and deferred sending) sub-events to a respective hit view. In some embodiments, event recognizer 780 throws a flag associated with the recognized event, and event handler 790 associated with the flag catches the flag and performs a predefined process.
[00132] In some embodiments, event delivery instructions 788 include sub-event delivery instructions that deliver event information about a sub-event without activating an event handler. Instead, the sub-event delivery instructions deliver event information to event handlers associated with the series of sub-events or to actively involved views. Event handlers associated with the series of sub-events or with actively involved views receive the event information and perform a predetermined process.
[00133] In some embodiments, event handler(s) 790 includes or has access to data updater 776, object updater 777, and GUI updater 778. In some embodiments, data updater 776, object updater 777, and GUI updater 778 are included in a single module of a respective application 132-1 or application view 791. In other embodiments, they are included in two or more software modules. In some embodiments, data updater 776 creates and updates data used in application 132-1. In some embodiments, object updater 777 creates and updates objects used in application 132-1. GUI updater 778 updates the GUI.
[00134] It shall be understood that the foregoing discussion regarding event handling of user touches on touch-sensitive displays also applies to other forms of user inputs to operate electronic devices 102 with input-devices, not all of which are initiated on touch screens, e.g., coordinating mouse movement and mouse button presses with or without single or multiple keyboard presses or holds, user movements such as taps, drags, scrolls, etc., on touch-pads, pen stylus inputs, movement of the device, oral instructions, detected eye movements, biometric inputs, and/or any combination thereof, which may be utilized as inputs corresponding to events and/or sub-events which define an event to be recognized.
[00135] In accordance with some embodiments, Figure 8 shows a functional block diagram of electronic device 800 configured in accordance with the embodiments as described above. The functional blocks of the device may be implemented by hardware, software, or a combination of hardware and software to carry out the described operations. It is understood by persons of skill in the art that the functional blocks described in Figure 800 may be combined or separated into sub-blocks to implement the principles of the invention as described above. Therefore, the description herein may support any possible combination or separation or further definition of the functional blocks described herein.
[00136] As shown in Figure 8, electronic device 800 includes touch-sensitive display unit 802 configured to display a user interface of an application and receive finger contacts. The displayed user interface includes a plurality of regions that are arranged in multiple hierarchical levels, and the plurality of regions includes a respective region at a respective hierarchy level. The respective region has two or more child regions at a hierarchy level below the respective hierarchy level. Electronic device 800 also includes processing unit 804 coupled to touch-sensitive display unit 802. In some embodiments, processing unit 804 includes detecting unit 806, determining unit 808, identifying unit 810, contact processing unit 812, confirming unit 814, and generating unit 816.
[00137] Processing unit 804 is configured to detect a first contact on touch-sensitive display unit 802 at a first location that corresponds to the respective region and that does not correspond to any of the two or more child regions of the respective region (e.g., with detecting unit 806). Processing unit 804 is configured to, in response to detecting the first contact, determine whether the application is configured to process the first contact in conjunction with the respective region (e.g., with determining unit 808). Processing unit 804 is further configured to, when the application is not configured to process the first contact in conjunction with the respective region, determine whether the application is configured to process the first contact in conjunction with at least one child region of the two or more child regions of the respective region (e.g., with determining unit 808). Processing unit 804 is further configured to, when the application is configured to process the first contact in conjunction with at least one child region of the two or more child regions of the respective region: identify a respective child region, of the two or more child regions of the respective region, in accordance with positions of the child regions relative to the first location (e.g., with identifying unit 810); and process the first contact in conjunction with the identified respective child region using the application (e.g., with contact processing unit 812).
[00138] In some embodiments, processing unit 804 is configured to, when the application is configured to process the first contact in conjunction with the respective region, process the first contact in conjunction with the respective region using the application (e.g., with contact processing unit 812).
[00139] In some embodiments, respective child regions of the two or more child regions have respective hit regions, at least one of which is different from the corresponding child region, and the processing unit is configured to determine that the first location does not correspond to any of the respective hit regions of the child regions.
[00140] In some embodiments, the first location is located outside any of the two or more child regions of the respective region.
[00141] In some embodiments, the respective region has a parent region at a hierarchy level above the respective hierarchy level.
[00142] In some embodiments, processing unit 804 is further configured to, when the application is not configured to process the first contact in conjunction with at least one child region of the two or more child regions of the respective region and the application is configured to process the first contact in conjunction with the parent region, process the first contact in conjunction with the parent region using the application (e.g., with contact processing unit 812).
[00143] In some embodiments, processing unit 804 is further configured to, when the application is not configured to process the first contact in conjunction with at least one child region of the two or more child regions of the respective region, process the first contact as a contact in the parent region (e.g., with contact processing unit 812).
[00144] In some embodiments, processing unit 804 is further configured to identify the child region, of the two or more child regions of the respective region, that best satisfies a proximity criterion with respect to the first location (e.g., with identifying unit 810).
[00145] In some embodiments, processing unit 804 is configured to: identify the child region, of the two or more child regions of the respective region, that best satisfies a proximity criterion with respect to the first location (e.g., with identifying unit 810); and confirm that the identified child region satisfies a maximum distance limit with respect to the first location (e.g., with confirming unit 814).
[00146] In some embodiments, one or more child regions of the two or more child regions have a predefined approximation property and at least one other child region does not have the predefined approximation property. In these embodiments, processing unit 804 is configured to identify a respective child region, of the one or more child regions of the respective region that have the predefined approximation property, in accordance with positions of the child regions relative to the first location (e.g., with identifying unit 810).
[00147] In some embodiments, the application is deemed to be configured to process the first contact in conjunction with the respective region when the respective region includes a user interface object having at least one property in a predefined set of properties.
[00148] In some embodiments, the application is deemed to be configured to process the first contact in conjunction with the respective region when the respective region comprises a user interface object that is configured to be activated in response to a gesture that includes the first contact.
[00149] In some embodiments, the application is deemed to be configured to process the first contact in conjunction with the respective region when at least one event recognizer is associated with the respective region.
[00150] In some embodiments, the application is deemed to be configured to process the first contact in conjunction with the respective region when an event recognizer configured to recognize a gesture that includes the first contact is associated with the respective region.
[00151] In some embodiments, the plurality of regions comprises a plurality of hierarchically arranged views corresponding to the regions. Each of the plurality of the views has at least one event recognizer associated with the respective view. Processing unit 804 is configured to generate an event to be processed by at least one event recognizer of the view corresponding to the identified respective child region (e.g., with generating unit 816).
[00152] In some embodiments, the plurality of regions comprises a plurality of hierarchically arranged views corresponding to the regions. Processing unit 804 is configured to process the first contact as a contact in the identified respective child region (e.g., with contact processing unit 812).
[00153] In accordance with some embodiments, Figure 9 shows a functional block diagram of electronic device 900 configured in accordance with the embodiments as described above. The functional blocks of the device may be implemented by hardware, software, or a combination of hardware and software to carry out the described operations. It is understood by persons of skill in the art that the functional blocks described in Figure 900 may be combined or separated into sub-blocks to implement the principles of the invention as described above. Therefore, the description herein may support any possible combination or separation or further definition of the functional blocks described herein.
[00154] As shown in Figure 9, electronic device 900 includes touch-sensitive display unit 902 configured to receive finger contacts and display a web page including a plurality of activatable user interface objects, and processing unit 904 coupled to the touch-sensitive display unit. In some embodiments, processing unit 904 includes detecting unit 906, determining unit 908, identifying unit 910, performing unit 912, and activating unit 914.
[00155] Processing unit 904 is configured to detect on touch-sensitive display unit 902 a first contact at a first location that corresponds to the displayed web page (e.g., with detecting unit 906); and, in response to detecting the first contact at the first location, determine whether the first location corresponds to at least one of the activatable user interface objects (e.g., with determining unit 908). Processing unit 904 is configured to, when the first location does not correspond to at least one of the activatable user interface objects: identify a user interface object, if any, that best satisfies a predefined rule with respect to the first location (e.g., with identifying unit 910); and perform an action corresponding to the identified user interface object (e.g., with performing unit 912).
[00156] In some embodiments, processing unit 904 is configured to, when the first location corresponds to one of the activatable user interface objects, perform an action corresponding to an activatable user interface object that corresponds to the first location (e.g., with performing unit 912).
[00157] In some embodiments, the predefined rule includes a proximity criterion with respect to the first location.
[00158] In some embodiments, processing unit 904 is configured to determine respective distances from the first location to at least a subset of the activatable user interface objects (e.g., with determining unit 908).
[00159] In some embodiments, each of the respective distances comprises a weighted average of distances from the first location to a plurality of points of a respective activatable user interface object.
[00160] In some embodiments, processing unit 904 is configured to activate the identified user interface object (e.g., with activating unit 914).
[00161] The foregoing description, for purpose of explanation, has been described with reference to specific embodiments. However, the illustrative discussions above are not intended to be exhaustive or to limit the invention to the precise forms disclosed. Many modifications and variations are possible in view of the above teachings. The embodiments were chosen and described in order to best explain the principles of the invention and its practical applications, to thereby enable others skilled in the art to best utilize the invention and various embodiments with various modifications as are suited to the particular use contemplated.

Claims (18)

  1. WHAT IS CLAIMED IS:
    1. A method, comprising: at an electronic device with a touch-sensitive display: displaying on the touch-sensitive display a user interface of an application, the user interface including a plurality of views and a plurality of activatable user interface objects in the plurality of views; detecting on the touch-sensitive display a first contact at a first location that corresponds to the displayed user interface; in response to detecting the first contact at the first location: identifying a hit view based on the first location, wherein the hit view is a lowest view, in a view hierarchy of the plurality of views, that corresponds to the first location; and determining whether the application is configured to process the first contact with the hit view; in accordance with determining that the application is not configured to process the first contact with the hit view, determining whether the application is configured to process the first contact with a child view of the hit view, wherein the hit view contains the child view and the child view is at a level lower than a level of the hit view in the view hierarchy; and, in accordance with determining that the application is configured to process the first contact with a child view of the hit view, processing the first contact with the child view of the hit view.
  2. 2. The method of claim 1, including, in accordance with determining that the application is configured to process the first contact with the hit view, processing the first contact with the hit view.
  3. 3. The method of claim 2, wherein: the hit view includes a first set of one or more gesture recognizers; processing the first contact with the hit view includes processing the first contact with at least one of the first set of gesture recognizers of the hit view.
  4. 4. The method ot claim 3, wherein: processing the first contact with the child view of the hit view includes processing the first contact with a gesture recognizer, of the child view, that is distinct from any of the first set of gesture recognizers of the hit view.
  5. 5. The method of any of claims 1-4, wherein the child view is one of a set of one or more child views of the hit view, and the hit view has a parent view at a hierarchy level higher than the hit view in the view hierarchy, and the method includes, in accordance with determining that the application is not configured to process the first contact with any child view of the hit view, processing the first contact with the parent view.
  6. 6. The method of claim 5, wherein processing the first contact with the parent view includes processing the first contact with a gesture recognizer of the parent view.
  7. 7. An electronic device comprising a touch-sensitive display, one or more processors, and memory storing one or more programs for execution by the one or more processors, the one or more programs including instructions for: displaying on the touch-sensitive display a user interface of an application, the user interface including a plurality of views and a plurality of activatable user interface objects in the plurality of views; detecting on the touch-sensitive display a first contact at a first location that corresponds to the displayed user interface; in response to detecting the first contact at the first location: identifying a hit view based on the first location, wherein the hit view is a lowest view, in a view hierarchy of the plurality of views, that corresponds to the first location; and determining whether the application is configured to process the first contact with the hit view; in accordance with determining that the application is not configured to process the first contact with the hit view, determining whether the application is configured to process the first contact with a child view of the hit view, wherein the hit view contains the child view and the child view is at a level lower than a level of the hit view in the view hierarchy; and, in accordance with determining that the application is configured to process the first contact with a child view of the hit view, processing the first contact with the child view of the hit view.
  8. 8. The device of claim 7, wherein the one or more programs include instructions for, in accordance with determining that the application is configured to process the first contact with the hit view, processing the first contact with the hit view.
  9. 9. The device of claim 8, wherein: the hit view includes a first set of one or more gesture recognizers; processing the first contact with the hit view includes processing the first contact with at least one of the first set of gesture recognizers of the hit view.
  10. 10. The device of claim 9, wherein: processing the first contact with the child view of the hit view includes processing the first contact with a gesture recognizer, of the child view, that is distinct from any of the first set of gesture recognizers of the hit view.
  11. 11. The device of any of claims 7-10, wherein the child view is one of a set of one or more child views of the hit view, and the hit view has a parent view at a hierarchy level higher than the hit view in the view hierarchy, and the one or more programs include instructions for, in accordance with determining that the application is not configured to process the first contact with any child view of the hit view, processing the first contact with the parent view.
  12. 12. The device of claim 11, wherein processing the first contact with the parent view includes processing the first contact with a gesture recognizer of the parent view.
  13. 13. A computer readable storage medium storing one or more programs for execution by one or more processors in an electronic device with a touch-sensitive display, the one or more programs including instructions for: displaying on the touch-sensitive display a user interface of an application, the user interface including a plurality of views and a plurality of activatable user interface objects in the plurality of views; detecting on the touch-sensitive display a first contact at a first location that corresponds to the displayed user interface; in response to detecting the first contact at the first location: identifying a hit view based on the first location, wherein the hit view is a lowest view, in a view hierarchy of the plurality of views, that corresponds to the first location; and determining whether the application is configured to process the first contact with the hit view; in accordance with determining that the application is not configured to process the first contact with the hit view, determining whether the application is configured to process the first contact with a child view of the hit view, wherein the hit view contains the child view and the child view is at a level lower than a level of the hit view in the view hierarchy; and, in accordance with determining that the application is configured to process the first contact with a child view of the hit view, processing the first contact with the child view of the hit view.
  14. 14. The computer readable storage medium of claim 13, wherein the one or more programs include instructions for, in accordance with determining that the application is configured to process the first contact with the hit view, processing the first contact with the hit view.
  15. 15. The computer readable storage medium of claim 14, wherein: the hit view includes a first set of one or more gesture recognizers; processing the first contact with the hit view includes processing the first contact with at least one of the first set of gesture recognizers of the hit view.
  16. 16. The computer readable storage medium of claim 15, wherein: processing the first contact with the child view of the hit view includes processing the first contact with a gesture recognizer, of the child view, that is distinct from any of the first set of gesture recognizers of the hit view.
  17. 17. The computer readable storage medium of any of claims 13-16, wherein the child view is one of a set of one or more child views of the hit view, and the hit view has a parent view at a hierarchy level higher than the hit view in the view hierarchy, and the one or more programs include instructions for, in accordance with determining that the application is not configured to process the first contact with any child view of the hit view, processing the first contact with the parent view.
  18. 18. The computer readable storage medium of claim 17, wherein processing the first contact with the parent view includes processing the first contact with a gesture recognizer of the parent view.
AU2016204284A 2010-06-14 2016-06-23 Control selection approximation Active AU2016204284B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
AU2016204284A AU2016204284B2 (en) 2010-06-14 2016-06-23 Control selection approximation

Applications Claiming Priority (6)

Application Number Priority Date Filing Date Title
US61/354,666 2010-06-14
US12/892,848 2010-09-28
US12/892,851 2010-09-28
AU2011268047A AU2011268047C1 (en) 2010-06-14 2011-06-08 Control selection approximation
AU2014200702A AU2014200702C1 (en) 2010-06-14 2014-02-10 Control selection approximation
AU2016204284A AU2016204284B2 (en) 2010-06-14 2016-06-23 Control selection approximation

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
AU2014200702A Division AU2014200702C1 (en) 2010-06-14 2014-02-10 Control selection approximation

Publications (2)

Publication Number Publication Date
AU2016204284A1 AU2016204284A1 (en) 2016-07-14
AU2016204284B2 true AU2016204284B2 (en) 2017-12-07

Family

ID=56682812

Family Applications (1)

Application Number Title Priority Date Filing Date
AU2016204284A Active AU2016204284B2 (en) 2010-06-14 2016-06-23 Control selection approximation

Country Status (1)

Country Link
AU (1) AU2016204284B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5627567A (en) * 1993-04-27 1997-05-06 Hewlett-Packard Company Method and apparatus for adaptive touch recognition in a touch sensitive user interface
US20070214436A1 (en) * 2006-03-13 2007-09-13 Myers Raymond L Jr Positional navigation graphic link system
US20090048000A1 (en) * 2007-08-16 2009-02-19 Sony Ericsson Mobile Communications Ab Systems and methods for providing a user interface
US20090064047A1 (en) * 2007-09-04 2009-03-05 Samsung Electronics Co., Ltd. Hyperlink selection method using touchscreen and mobile terminal operating with hyperlink selection method
US20100060666A1 (en) * 2008-09-09 2010-03-11 Microsoft Corporation Zooming graphical user interface

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5627567A (en) * 1993-04-27 1997-05-06 Hewlett-Packard Company Method and apparatus for adaptive touch recognition in a touch sensitive user interface
US20070214436A1 (en) * 2006-03-13 2007-09-13 Myers Raymond L Jr Positional navigation graphic link system
US20090048000A1 (en) * 2007-08-16 2009-02-19 Sony Ericsson Mobile Communications Ab Systems and methods for providing a user interface
US20090064047A1 (en) * 2007-09-04 2009-03-05 Samsung Electronics Co., Ltd. Hyperlink selection method using touchscreen and mobile terminal operating with hyperlink selection method
US20100060666A1 (en) * 2008-09-09 2010-03-11 Microsoft Corporation Zooming graphical user interface

Also Published As

Publication number Publication date
AU2016204284A1 (en) 2016-07-14

Similar Documents

Publication Publication Date Title
AU2011268047B2 (en) Control selection approximation
US20230244317A1 (en) Proxy Gesture Recognizer
TWI520044B (en) Event recognition method, related electronic device and computer readable storage medium
US11112959B2 (en) Linking multiple windows in a user interface display
CN112631484A (en) Position determination using communicatively coupled electronic devices
AU2021290380B2 (en) Event recognition
AU2016204284B2 (en) Control selection approximation
AU2014200702C1 (en) Control selection approximation

Legal Events

Date Code Title Description
FGA Letters patent sealed or granted (standard patent)