W3C home > Mailing lists > Public > public-web-perf@w3.org > July 2011

Re: Aligning Navigation Timing IDL with latest WebIDL

From: Anne van Kesteren <annevk@opera.com>
Date: Tue, 12 Jul 2011 11:53:15 +0200
To: public-web-perf <public-web-perf@w3.org>, "Philippe Le Hegaret" <plh@w3.org>
Message-ID: <op.vyh221fj64w2qv@annevk-macbookpro.local>
On Mon, 11 Jul 2011 17:52:02 +0200, Philippe Le Hegaret <plh@w3.org> wrote:
> At the moment, we have:
> [[
> [Supplemental]
> interface Window {
>   [Replaceable] readonly attribute Performance performance;
> };
> ]]
>
> with the new WebIDL spec, i think it would become:
> [[
> [NoInterfaceObject]
> interface WindowPerformance {
>   [Replaceable] readonly attribute Performance performance;
> };
>
> Window implements WindowPerformance;
> ]]
>
> While I'm at it, should PerformanceTiming inherits from
> PerformanceEntryList instead of PerformanceEntry?

If performance does not need to be exposed in Web Workers you can simply  
use

partial interface Window {
   ...
}

rather than the whole convoluted thing with [NoInterfaceObject], custom  
name, and implements.


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Tuesday, 12 July 2011 09:53:44 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:04:31 UTC