1. Field
The present application generally relates to browser-enabled devices, and, more particularly, to browser-enabled devices having browser-based user interface and control architectures with priority attributes.
2. Related Art
An ever increasing number of electronic devices (e.g., mobile phones, handhelds, home appliances, set top boxes, etc.) include browser software. In some of these browser-enabled devices, the user interface and control architecture is implemented using the browser software (i.e., a browser-based interface and control architecture) rather than a full-function operating system (O/S).
The user interface portion of the browser-based interface and control architecture can be written using a markup language (e.g., hypertext markup language (HTML), Javascript, etc.), which can be faster to write and more flexible than if written using C/C++, as an example. However, markup languages typically do not support prioritization of events.
For example, if a mobile phone has a browser-based interface and control architecture and the user interface portion is written using HTML, then the browser-based interface and control architecture may not be able to interrupt an event that is currently being performed (e.g., the downloading of a page) to perform an event with a higher priority (e.g., an incoming call). Thus, in this example, the user of the mobile phone may not be informed about the incoming call until the downloading of the page is completed. This may result in the incoming call going unanswered, which may be undesirable.
With regard to mobile phones that support both telephony and browsing functions, one conventional approach to allowing for an incoming call to halt the downloading of a page is to perform the telephony and browsing functions on separate threads (one thread for telephony functions and another thread for browsing functions). This (running multiple threads) requires the use of a full-function OS. It may be undesirable, however, to use a full-function OS in some circumstances. For example, it may be desirable for a browser-enabled device to use a less powerful processor and less memory than are typically required to support a full-function OS. Additionally, it may be desirable to run only a single thread because of simplified programming model.
In one exemplary embodiment, a browser-enabled device includes a browser-based user interface and control architecture, which has a browser core, a browser framework, and a user interface. The user interface is written using a markup language. In processing event registrations, the browser framework receives an event registration. The received event registration having a response unique resource identifier (URI) content and a priority field. The priority field of the received event registration is examined to determine priority of the received event registration. If the browser core is loading the response URI content of a prior event registration and if the priority of the received event registration is higher than the priority of the prior event registration, then the loading of the response URI content of the prior event registration is halted, and loading of the response URI content of the received event registration is begun.
The following description sets forth numerous specific configurations, parameters and the like. It should be recognized, however, that such description is not intended as a limitation on the scope of the present invention, but is instead provided as a description of exemplary embodiments.
As depicted in
It should be recognized that browser-enabled device 100 can include any number of additional components 110 depending on the functions supported on browser-enabled device 100. For example, returning to the example of browser-enabled device 100 being a mobile phone, additional components 110 of browser-enabled device 100 can include various telephony components, such as a speaker and microphone, to support the telephony functions.
As described above, browser-enabled device 100 can include a user interface and control architecture that is implemented using browser software (i.e., a browser-based user interface and control architecture).
In the present exemplary embodiment, browser-based user interface and control architecture 200 includes an OS kernel 202, a browser core 204, a browser framework 206, and a user interface 210. It should be recognized that browser-based user interface and control architecture 200 can include any number of additional components.
OS kernel 202 and browser core 204 can be written in any desirable device native code. As described above, user interface 210, however, can be written using a markup language, such as HTML, Javascript, etc. For information on a markup language based man-machine interface, see U.S. Pat. No. 6,173,316, which is incorporated herein by reference in its entirety for all purposes.
In the present exemplary embodiment, OS kernel 202 is not a full-function OS. Thus, OS kernel 202 possesses limited capabilities in comparison to a full-function OS. For example, OS kernel 202 is capable of running only a single thread in contrast to a full-function OS that can run multiple threads. The limited capabilities of OS kernel 202 permit browser-enabled device 100 (
Browser core 204 can include extensions or plug-ins to map native OS commands to the markup language used to write user interface 210 of browser-based user interface and control architecture 200. Browser framework 206 controls the event loops and calls on browser core 204 periodically to process incoming events. The source code for user interface 210 can be stored as a file on browser enabled device 100 (
In the present exemplary embodiment, browser-based user interface and control architecture 200 is configured to have priority attributes (i.e., events are handled using a priority-based system). In particular, as depicted in
For example, an exemplary event registration is depicted below for an event (EventType evt) with a priority field (UInt priority) and URI field (String uri):
It should also be recognized that the event registration can include any number of additional fields and/or parameters. For example, the following exemplary event registration includes a timeout parameter (UInt timeout):
If an event is triggered, browser framework 206 calls on browser core 204 to load the response URI content of the event. If a subsequent event is triggered while the response URI content of an earlier event is still being loaded, then browser framework 206 checks the priority levels of the two events. If the subsequent event has a higher priority than the earlier event, then browser framework 206 calls on browser core 204 to halt the loading of the response URI content of the earlier event and start to load the response URI content of the subsequent event. If the subsequent event does not have a higher priority than the earlier event, then the URI content of the earlier event will continue to load.
For example,
In step 402, an event registration is received by the browser framework. As noted above, the event registration includes a priority field. In step 404, the priority field in the event registration is examined by the browser framework.
In step 406, the browser framework determines if the browser core is processing another event. If there is no other event being processed, then the current event is processed on the browser core in step 408. If there is another event being processed, the browser framework determines the priority of the event being processed in step 410.
In step 412, the browser framework compares the priority of the current event to the priority of the event being processed. If the priority of the current event is higher than the priority of the event being processed, then the current event is processed in step 416. In particular, the browser framework directs the browser core to halt the loading of the response URI content of the event being processed and begin to load the response URI content of the current event. If the priority of the current event is not higher (i.e., lower or the same) than the priority of the event being processed, then the event being processed continues to be processed in step 414.
In one exemplary embodiment, the various events to be processed by the browser core are assigned priorities in advance. In particular, all events to be processed by the browser core are defined in advance, such as when the browser framework is being written. Priorities are then assigned to the events. The assignment of priorities to events can be stored in various formats, such as a table.
For example, assume again that browser-enabled device 100 (
In one exemplary embodiment, event registrations can be queued before being processed. The browser framework processes the event registrations from the queue based on their priorities. In particular, the event priority in the queue with the highest priority is the first event priority to be processed from the queue. The queue can be stored in memory or any other desirable location. It should be recognized that the queue can be managed according to various known techniques.
As described above, with reference again to
For example, assume that the two events relate to two web pages. In particular, assume that the earlier event relates to web page A, while the subsequent event relates to web page B. As is well known, browser core 204 can load multiple web pages simultaneously, such as by alternating between loading portions of the multiple web pages.
Thus, in the present example, after halting the loading of the response URI content of web page A, browser core 204 can begin the loading of the response URI content of web page B. After beginning the loading of the response URI content of web page B, browser core 204 can then return to loading the response URI content of web page A. This process of switching between the loading of the response URI contents of web pages A and B can continue until the response URI content of web page B has been completely loaded. In one exemplary embodiment, browser core 204 devotes longer time for loading of the higher priority event than the lower priority event. Web page B is then displayed on browser-enabled device 100 (
In the example above, if web page A has already been loaded and is being displayed on browser-enabled device 100 (
Although only certain exemplary embodiments of this invention have been described in detail above, those skilled in the art will readily appreciate that many modifications are possible in the exemplary embodiments without materially departing from the novel teachings and advantages of this invention. For example, aspects of embodiments disclosed above can be combined in other combinations to form additional embodiments. Accordingly, all such modifications are intended to be included within the scope of this invention.
This application is a 35 U.S.C. § 371 National Stage filing of International Patent Application No. PCT/US2008/087543, filed Dec. 18, 2008, which is a continuation-in-part of U.S. Nonprovisional Patent Application No. 12/004,663, filed Dec. 20, 2007, both of which are hereby incorporated by reference for all purposes.
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/US2008/087543 | 12/18/2008 | WO | 00 | 8/5/2010 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2009/082673 | 7/2/2009 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
6154646 | Tran et al. | Nov 2000 | A |
6173316 | De Boor et al. | Jan 2001 | B1 |
6317781 | De Boor et al. | Nov 2001 | B1 |
6385644 | Devine et al. | May 2002 | B1 |
6445776 | Shank et al. | Sep 2002 | B1 |
6470381 | De Boor et al. | Oct 2002 | B2 |
6509913 | Martin, Jr. et al. | Jan 2003 | B2 |
6675204 | De Boor et al. | Jan 2004 | B2 |
7076275 | Karstens et al. | Jul 2006 | B1 |
7143214 | Hayes et al. | Nov 2006 | B2 |
7428723 | Greene et al. | Sep 2008 | B2 |
7519687 | Tsuda et al. | Apr 2009 | B2 |
7721032 | Bushell et al. | May 2010 | B2 |
20040023646 | Inami et al. | Feb 2004 | A1 |
20060026526 | Simister et al. | Feb 2006 | A1 |
20070038722 | Yoshii et al. | Feb 2007 | A1 |
20070286381 | Abramson et al. | Dec 2007 | A1 |
20090144756 | Inami | Jun 2009 | A1 |
20090165023 | Tian et al. | Jun 2009 | A1 |
Entry |
---|
International Search Report and Written Opinion mailed Feb. 20, 2009, for PCT Application No. PCT/US08/87543 filed Dec. 18, 2008, 9 pages. |
International Preliminary Report on Patentability and Written Opinion received for PCT Patent Application No. PCT/US2008/087543, mailed on Jul. 1, 2010, 7 pages. |
Non-Final Office Action received for U.S. Appl. No. 12/004,663, mailed on Apr. 15, 2011, 17 pages. |
Final Office Action received for U.S. Appl. No. 12/004,663, mailed on Oct. 26, 2011, 13 pages. |
Notice of Allowance received for U.S. Appl. No. 12/004,663, mailed on May 11, 2012, 9 pages. |
Number | Date | Country | |
---|---|---|---|
20100299607 A1 | Nov 2010 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 12004663 | Dec 2007 | US |
Child | 12809982 | US |