diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/timing/Performance.idl')
-rw-r--r-- | chromium/third_party/WebKit/Source/core/timing/Performance.idl | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/chromium/third_party/WebKit/Source/core/timing/Performance.idl b/chromium/third_party/WebKit/Source/core/timing/Performance.idl index b29b83e4985..50e62a8ff41 100644 --- a/chromium/third_party/WebKit/Source/core/timing/Performance.idl +++ b/chromium/third_party/WebKit/Source/core/timing/Performance.idl @@ -30,35 +30,28 @@ */ // See: http://www.w3.org/TR/navigation-timing/ -interface Performance : EventTarget { +[ + WillBeGarbageCollected +] interface Performance : EventTarget { readonly attribute PerformanceNavigation navigation; readonly attribute PerformanceTiming timing; readonly attribute MemoryInfo memory; [MeasureAs=UnprefixedPerformanceTimeline] sequence<PerformanceEntry> getEntries(); [MeasureAs=UnprefixedPerformanceTimeline] sequence<PerformanceEntry> getEntriesByType(DOMString entryType); - [MeasureAs=UnprefixedPerformanceTimeline] sequence<PerformanceEntry> getEntriesByName(DOMString name, [Default=NullString] optional DOMString entryType); - [DeprecateAs=PrefixedPerformanceTimeline,ImplementedAs=getEntries] sequence<PerformanceEntry> webkitGetEntries(); - [DeprecateAs=PrefixedPerformanceTimeline,ImplementedAs=getEntriesByType] sequence<PerformanceEntry> webkitGetEntriesByType(DOMString entryType); - [DeprecateAs=PrefixedPerformanceTimeline,ImplementedAs=getEntriesByName] sequence<PerformanceEntry> webkitGetEntriesByName(DOMString name, [Default=NullString] optional DOMString entryType); + [MeasureAs=UnprefixedPerformanceTimeline] sequence<PerformanceEntry> getEntriesByName(DOMString name, optional DOMString entryType = null); - void webkitClearResourceTimings(); - void webkitSetResourceTimingBufferSize(unsigned long maxSize); + [MeasureAs=PrefixedPerformanceClearResourceTimings] void webkitClearResourceTimings(); + [MeasureAs=PrefixedPerformanceSetResourceTimingBufferSize] void webkitSetResourceTimingBufferSize(unsigned long maxSize); attribute EventHandler onwebkitresourcetimingbufferfull; // See http://www.w3.org/TR/2012/CR-user-timing-20120726/ [RaisesException,MeasureAs=UnprefixedUserTiming] void mark(DOMString markName); - [MeasureAs=UnprefixedUserTiming] void clearMarks([Default=NullString] optional DOMString markName); + [MeasureAs=UnprefixedUserTiming] void clearMarks(optional DOMString markName = null); - [RaisesException,MeasureAs=UnprefixedUserTiming] void measure(DOMString measureName, [Default=NullString] optional DOMString startMark, [Default=NullString] optional DOMString endMark); - [MeasureAs=UnprefixedUserTiming] void clearMeasures([Default=NullString] optional DOMString measureName); - - [RaisesException,DeprecateAs=PrefixedUserTiming,ImplementedAs=mark] void webkitMark(DOMString markName); - [DeprecateAs=PrefixedUserTiming,ImplementedAs=clearMarks] void webkitClearMarks([Default=NullString] optional DOMString markName); - - [RaisesException,DeprecateAs=PrefixedUserTiming,ImplementedAs=measure] void webkitMeasure(DOMString measureName, [Default=NullString] optional DOMString startMark, [Default=NullString] optional DOMString endMark); - [DeprecateAs=PrefixedUserTiming,ImplementedAs=clearMeasures] void webkitClearMeasures([Default=NullString] optional DOMString measureName); + [RaisesException,MeasureAs=UnprefixedUserTiming] void measure(DOMString measureName, optional DOMString startMark = null, optional DOMString endMark = null); + [MeasureAs=UnprefixedUserTiming] void clearMeasures(optional DOMString measureName = null); // See http://www.w3.org/TR/hr-time/ for details. double now(); |