发明名称 PROCESSING USER INPUT EVENTS IN A WEB BROWSER
摘要 A method and computing device are provided for processing user events received via a user interface, such as a touchscreen, in multiple threads. When a user event is received for a target element in a webpage, the user event is dispatched to both a main browser thread and a secondary thread. The secondary thread processes user events in accordance with established default actions defined within the browser, while the main thread processes the user events in accordance with any event handlers defined for that target element. The main thread processing may be delayed by other interleaved task, and the secondary thread may be given priority over the main thread. When the secondary thread completes processing, an updated webpage is displayed. When the main thread subsequently completes processing, its updated rendering of the webpage is displayed. The secondary thread thus provides an early user interface response to the user event.
申请公布号 US2016055040(A1) 申请公布日期 2016.02.25
申请号 US201514922566 申请日期 2015.10.26
申请人 BlackBerry Limited 发明人 TREAT Adam Chester;FIDLER Eli Joshua;NILSSON Karl Arvid;TAPUSKA David Francis;MAK Genevieve Elizabeth
分类号 G06F9/54 主分类号 G06F9/54
代理机构 代理人
主权项 1. A method comprising: receiving a user event at a touchscreen of an electronic device during display of a document by the touchscreen; dispatching the user event for processing by a main thread of a web browser, the main thread of the web browser configured to process user events and non-user events; after a predetermined period of time has elapsed following the dispatch of the user event for processing by the main thread of the web browser, processing the user event by a secondary thread, the secondary thread configured to process the user event using a default handling method; and upon a first one of the main thread and the secondary thread completing processing of the user event, updating the display of the document according to the processing completed by that first one of the main thread and the secondary thread.
地址 Waterloo CA