- From: James Simonsen <simonjam@google.com>
- Date: Mon, 18 Aug 2014 16:52:11 -0700
- To: Arvind Jain <arvind@google.com>
- Cc: Ms2ger <ms2ger@gmail.com>, Jatinder Mann <jmann@microsoft.com>, public-web-perf <public-web-perf@w3.org>
- Message-ID: <CAPVJQi=_7QcJ7fsaVmLxQe4MT9zaRWKJ0ABo6JV-mSVQQwsNCw@mail.gmail.com>
It could work. This is the first I'd heard of Exposed (admittedly, I haven't worked on browsers for a while now). The main thing would be that Performance is defined in Navigation Timing [1] and added on to in other specs, like Resource Timing [2]. For worker scope, we don't want the attributes from any of those, but we do want the now() function, which we'd be redefining from [3]. Is Exposed able to express that without monkeying with the older specs (which are already recommendations)? The net result would end up looking something like this, I think: [ Exposed=(Window,Workers) ] interface Performance : EventTarget { [Exposed=Window] readonly attribute PerformanceNavigation navigation; [Exposed=Window] readonly attribute PerformanceTiming timing; [Exposed=Window] sequence<PerformanceEntry> getEntries(); [Exposed=Window] sequence<PerformanceEntry> getEntriesByType(DOMString entryType); [Exposed=Window] sequence<PerformanceEntry> getEntriesByName(DOMString name, optional DOMString entryType = null); [Exposed=Window] attribute EventHandler onresourcetimingbufferfull; [Exposed=Window] void mark(DOMString markName); [Exposed=Window] void clearMarks(optional DOMString markName = null); [Exposed=Window] void measure(DOMString measureName, optional DOMString startMark = null, optional DOMString endMark = null); [Exposed=Window] void clearMeasures(optional DOMString measureName = null); [Exposed=(Window,Worker)] double now(); }; Is there a simpler way to communicate this? Does Exposed work with partial interfaces? James [1] https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/NavigationTiming/Overview.html [2] https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/ResourceTiming/Overview.html [3] https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/HighResolutionTime/Overview.html On Sun, Aug 17, 2014 at 1:51 PM, Arvind Jain <arvind@google.com> wrote: > Adding Jatinder and James who are the editors of the spec for their > comments. > > Arvind > > On Mon, Jul 14, 2014 at 3:05 AM, Ms2ger <ms2ger@gmail.com> wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > Hi all, > > > > It appears that the High Resolution Time spec defines [1] a new > > WorkerPerformance interface (presumably only exposed in workers, see > > my other email [2]). There does not seem to be a need for this; it > > would be simple to reuse the interface and only expose the > > window-specific members on window scopes with the [Exposed] extended > > attribute. > > > > Thoughts? > > Ms2ger > > > > [1] > > > https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/HighResolutionTime2/Overview.html#sec-now-method > > [2] > http://lists.w3.org/Archives/Public/public-web-perf/2014Jul/0076.html > > -----BEGIN PGP SIGNATURE----- > > Version: GnuPG v1.4.11 (GNU/Linux) > > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > > > iQEcBAEBAgAGBQJTw6tcAAoJEOXgvIL+s8n2Yc0H/jIbL+DW+lWrwE/uUNqw0qvx > > 5gMmTMbwfj2smt5auWZdNjtdNlRrbLuf8AONk/B96dimKdXwqtqki44eZAxfOvkF > > IEua1Qwpws9tksfuEdwd49r6LmOFYPYOYxszYbt9X8IrTmGUDFZ6Sf71daP/moFF > > IOqfDD7pOuP/1mJN8isIMZXbh7m54SBivc9CMUOs4POKpNZ74GxkSuSL/Lw7EFAm > > BDM1yRkrnK19jswSEAODUZz4usywZq9DpN9kUJRmD9wDwa6Qx1E/p+qnfDHFyMsg > > fnHYJ6Je31dmqSYaI7n3D1GhL4FNo9HVZUrGPI/Ol/7Wk4gc+2A12UodTMutmOQ= > > =658c > > -----END PGP SIGNATURE----- > > >
Received on Monday, 18 August 2014 23:52:38 UTC