|
Lines 37-64
typedef double DOMHighResTimeStamp;
Source/WebCore/page/Performance.idl_sec1
|
| 37 |
Exposed=(Window,Worker), |
37 |
Exposed=(Window,Worker), |
| 38 |
GenerateIsReachable=ImplScriptExecutionContext, |
38 |
GenerateIsReachable=ImplScriptExecutionContext, |
| 39 |
] interface Performance : EventTarget { |
39 |
] interface Performance : EventTarget { |
| 40 |
|
|
|
| 41 |
DOMHighResTimeStamp now(); |
40 |
DOMHighResTimeStamp now(); |
|
|
41 |
// FIXME: Implement 'timeOrigin'. |
| 42 |
// readonly attribute DOMHighResTimeStamp timeOrigin; |
| 43 |
// FIXME: Implement 'toJSON'. |
| 44 |
// [Default] object toJSON(); |
| 42 |
|
45 |
|
| 43 |
// https://w3c.github.io/navigation-timing/ |
46 |
// https://w3c.github.io/navigation-timing/ |
| 44 |
readonly attribute PerformanceNavigation navigation; |
47 |
readonly attribute PerformanceNavigation navigation; |
| 45 |
readonly attribute PerformanceTiming timing; |
48 |
readonly attribute PerformanceTiming timing; |
| 46 |
|
49 |
|
| 47 |
// https://w3c.github.io/performance-timeline/ |
50 |
// https://w3c.github.io/performance-timeline/ |
| 48 |
[EnabledAtRuntime=PerformanceTimeline] PerformanceEntryList getEntries(); |
51 |
PerformanceEntryList getEntries(); |
| 49 |
[EnabledAtRuntime=PerformanceTimeline] PerformanceEntryList getEntriesByType(DOMString entryType); |
52 |
PerformanceEntryList getEntriesByType(DOMString entryType); |
| 50 |
[EnabledAtRuntime=PerformanceTimeline] PerformanceEntryList getEntriesByName(DOMString name, optional DOMString entryType); |
53 |
PerformanceEntryList getEntriesByName(DOMString name, optional DOMString entryType); |
| 51 |
|
54 |
|
| 52 |
// https://w3c.github.io/resource-timing/ |
55 |
// https://w3c.github.io/resource-timing/ |
| 53 |
[EnabledAtRuntime=ResourceTiming] undefined clearResourceTimings(); |
56 |
undefined clearResourceTimings(); |
| 54 |
[EnabledAtRuntime=ResourceTiming] undefined setResourceTimingBufferSize(unsigned long maxSize); |
57 |
undefined setResourceTimingBufferSize(unsigned long maxSize); |
| 55 |
[EnabledAtRuntime=ResourceTiming] attribute EventHandler onresourcetimingbufferfull; |
58 |
attribute EventHandler onresourcetimingbufferfull; |
| 56 |
|
59 |
|
| 57 |
// https://w3c.github.io/user-timing/ |
60 |
// https://w3c.github.io/user-timing/ |
| 58 |
[EnabledAtRuntime=UserTiming, MayThrowException] undefined mark(DOMString markName); |
61 |
MayThrowException] undefined mark(DOMString markName); |
| 59 |
[EnabledAtRuntime=UserTiming] undefined clearMarks(optional DOMString markName); |
62 |
undefined clearMarks(optional DOMString markName); |
| 60 |
[EnabledAtRuntime=UserTiming, MayThrowException] undefined measure(DOMString measureName, optional DOMString startMark, optional DOMString endMark); |
63 |
MayThrowException] undefined measure(DOMString measureName, optional DOMString startMark, optional DOMString endMark); |
| 61 |
[EnabledAtRuntime=UserTiming] undefined clearMeasures(optional DOMString measureName); |
64 |
undefined clearMeasures(optional DOMString measureName); |
| 62 |
}; |
65 |
}; |
| 63 |
|
66 |
|
| 64 |
typedef sequence<PerformanceEntry> PerformanceEntryList; |
67 |
typedef sequence<PerformanceEntry> PerformanceEntryList; |