Declarative style rules for default touch behaviors
First Claim
1. A computer-implemented method of improving response time for a webpage when determining a response to user gestures relative to content located on the webpage, the computer-implemented method comprising:
- at a manipulation thread, receiving an input message associated with a touch input for a user gesture relative to content on a webpage, wherein the webpage comprises;
at least one dependent region in which content is processed in response to a user gesture by a user interface thread that performs full hit testing;
at least one independent region in which content is processed in response to a user gesture by an independent hit test thread;
wherein the content that is associated with the independent region is associated with hit testing of a display tree associated with the webpage;
wherein one or more declared values are associated with one or more properties for an element of the independent region; and
wherein the element is associated with the declared one or more values;
in response to the touch input, the manipulation thread sending notification of the input message associated with the touch input to an independent hit test thread rather than sending the notification to the user interface thread, wherein full hit testing by the user interface thread is bypassed for any input message associated with a touch input for the independent region; and
the independent hit thread performing hit testing for any independent regions associated with the touch input by traversing at least a portion of the display tree, and once the hit test is performed, the independent hit test thread then notifying the manipulation thread to initiate one or more default touch behaviors associated with the touch input.
2 Assignments
0 Petitions
Accused Products
Abstract
In at least some embodiments, a mechanism is provided for web developers to request specific default behaviors, such as touch behaviors, on their webpages. In at least some implementations, a Cascading Style Sheets (CSS) rule is utilized to enable or disable manipulations such as panning, pinch zoom, and double-tap-zoom manipulations. The mechanism can be extensible to accommodate additional default behaviors that are added in the future. In various embodiments, the behaviors are declared up front and thus differ from solutions which employ an imperative model. The declarative nature of this approach allows achievement of full independence from the main thread and deciding the correct response using independent hit testing.
39 Citations
19 Claims
-
1. A computer-implemented method of improving response time for a webpage when determining a response to user gestures relative to content located on the webpage, the computer-implemented method comprising:
-
at a manipulation thread, receiving an input message associated with a touch input for a user gesture relative to content on a webpage, wherein the webpage comprises; at least one dependent region in which content is processed in response to a user gesture by a user interface thread that performs full hit testing; at least one independent region in which content is processed in response to a user gesture by an independent hit test thread; wherein the content that is associated with the independent region is associated with hit testing of a display tree associated with the webpage; wherein one or more declared values are associated with one or more properties for an element of the independent region; and wherein the element is associated with the declared one or more values; in response to the touch input, the manipulation thread sending notification of the input message associated with the touch input to an independent hit test thread rather than sending the notification to the user interface thread, wherein full hit testing by the user interface thread is bypassed for any input message associated with a touch input for the independent region; and the independent hit thread performing hit testing for any independent regions associated with the touch input by traversing at least a portion of the display tree, and once the hit test is performed, the independent hit test thread then notifying the manipulation thread to initiate one or more default touch behaviors associated with the touch input. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A computing device comprising:
-
one or more processors; and one or more computer readable media embodying computer readable instructions which, when executed by the one or more processors, perform operations for implementing a computer-controlled method of improving response time for a webpage when determining a response to user gestures relative to content located on the webpage, the computer-controlled method comprising; at a manipulation thread, receiving an input message associated with a touch input for a user gesture relative to content on a webpage, wherein the webpage comprises; at least one dependent region in which content is processed in response to a user gesture by a user interface thread that performs full hit testing; at least one independent region in which content is processed in response to a user gesture by an independent hit test thread; wherein the content that is associated with the independent region is associated with hit testing of a display tree associated with the webpage; wherein one or more declared values are associated with one or more properties for an element of the independent region; and wherein the element is associated with the declared one or more values; in response to the touch input, the manipulation thread sending notification of the input message associated with the touch input to an independent hit test thread rather than sending the notification to the user interface thread, wherein full hit testing by the user interface thread is bypassed for any input message associated with a touch input for the independent region; and the independent hit thread performing hit testing for any independent regions associated with the touch input by traversing at least a portion of the display tree, and once the hit test is performed, the independent hit test thread then notifying the manipulation thread to initiate one or more default touch behaviors associated with the touch input. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18)
-
-
19. A hardware memory device containing computer-executable instructions which, when implemented by one or more processors, perform a computer-controlled method of improving response time for a webpage when determining a response to user gestures relative to content located on the webpage, the computer-controlled method comprising:
-
at a manipulation thread, receiving an input message associated with a touch input for a user gesture relative to content on a webpage, wherein the webpage comprises; at least one dependent region in which content is processed in response to a user gesture by a user interface thread that performs full hit testing; at least one independent region in which content is processed in response to a user gesture by an independent hit test thread; wherein the content that is associated with the independent region is associated with hit testing of a display tree associated with the webpage; wherein one or more declared values are associated with one or more properties for an element of the independent region; and wherein the element is associated with the declared one or more values; in response to the touch input, the manipulation thread sending notification of the input message associated with the touch input to an independent hit test thread rather than sending the notification to the user interface thread, wherein full hit testing by the user interface thread is bypassed for any input message associated with a touch input for the independent region; and the independent hit thread performing hit testing for any independent regions associated with the touch input by traversing at least a portion of the display tree, and once the hit test is performed, the independent hit test thread then notifying the manipulation thread to initiate one or more default touch behaviors associated with the touch input.
-
Specification