- From: Philippe Le Hegaret <plh@w3.org>
- Date: Fri, 13 Feb 2015 12:54:55 -0500
- To: Nat Duca <nduca@google.com>
- Cc: Boris Zbarsky <bzbarsky@mit.edu>, Ilya Grigorik <igrigorik@google.com>, public-web-perf <public-web-perf@w3.org>, Eli Perelman <eperelman@mozilla.com>
On Thu, 2015-02-12 at 16:15 -0800, Nat Duca wrote: > As I think about it, maybe there shouldn't be any index/etc getters and > only an AsSequence(). Eg: > > interface LazyPerformanceEntryList { > bool HasEntryNamed(string); > PerformanceEntryList AsList(); > } Note that we already have on the window.performance object: [[ PerformanceEntryList getEntries(); PerformanceEntryList getEntriesByType(DOMString entryType); ]] http://w3c.github.io/performance-timeline/#sec-window.performance-attribute so, at least for consistency, I'd suggest something like: interface LazyPerformanceEntryList { bool HasEntryType(string); PerformanceEntryList getEntries(); PerformanceEntryList getEntriesByType(DOMString entryType); } Philippe
Received on Friday, 13 February 2015 17:55:11 UTC