| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2012 Intel Inc. All rights reserved. | 3 * Copyright (C) 2012 Intel Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 [MeasureAs=UnprefixedPerformanceTimeline] PerformanceEntryList getEntriesByN
ame(DOMString name, optional DOMString entryType = null); | 46 [MeasureAs=UnprefixedPerformanceTimeline] PerformanceEntryList getEntriesByN
ame(DOMString name, optional DOMString entryType = null); |
| 47 | 47 |
| 48 // Resource Timing | 48 // Resource Timing |
| 49 // https://w3c.github.io/resource-timing/#extensions-performance-interface | 49 // https://w3c.github.io/resource-timing/#extensions-performance-interface |
| 50 // TODO(philipj): Unprefix these APIs. | 50 // TODO(philipj): Unprefix these APIs. |
| 51 [MeasureAs=PrefixedPerformanceClearResourceTimings] void webkitClearResource
Timings(); | 51 [MeasureAs=PrefixedPerformanceClearResourceTimings] void webkitClearResource
Timings(); |
| 52 [MeasureAs=PrefixedPerformanceSetResourceTimingBufferSize] void webkitSetRes
ourceTimingBufferSize(unsigned long maxSize); | 52 [MeasureAs=PrefixedPerformanceSetResourceTimingBufferSize] void webkitSetRes
ourceTimingBufferSize(unsigned long maxSize); |
| 53 attribute EventHandler onwebkitresourcetimingbufferfull; | 53 attribute EventHandler onwebkitresourcetimingbufferfull; |
| 54 | 54 |
| 55 // Navigation Timing | 55 // Navigation Timing |
| 56 // http://www.w3.org/TR/navigation-timing/#sec-window.performance-attribute | 56 // https://w3c.github.io/navigation-timing/#extensions-to-the-performance-in
terface |
| 57 // TODO(philipj): The Navigation Timing Rec. defines the (not partial) | 57 [SameObject, Measure] readonly attribute PerformanceTiming timing; |
| 58 // Performance interface, while https://w3c.github.io/navigation-timing/ has | 58 [SameObject, Measure] readonly attribute PerformanceNavigation navigation; |
| 59 // changed the interface in an incompatible way: | |
| 60 // https://github.com/w3c/navigation-timing/issues/22 | |
| 61 [Measure] readonly attribute PerformanceTiming timing; | |
| 62 [Measure] readonly attribute PerformanceNavigation navigation; | |
| 63 | 59 |
| 64 // User Timing | 60 // User Timing |
| 65 // https://w3c.github.io/user-timing/#extensions-performance-interface | 61 // https://w3c.github.io/user-timing/#extensions-performance-interface |
| 66 [MeasureAs=UnprefixedUserTiming, RaisesException] void mark(DOMString markNa
me); | 62 [MeasureAs=UnprefixedUserTiming, RaisesException] void mark(DOMString markNa
me); |
| 67 [MeasureAs=UnprefixedUserTiming] void clearMarks(optional DOMString markName
= null); | 63 [MeasureAs=UnprefixedUserTiming] void clearMarks(optional DOMString markName
= null); |
| 68 | 64 |
| 69 [MeasureAs=UnprefixedUserTiming, RaisesException] void measure(DOMString mea
sureName, optional DOMString startMark = null, optional DOMString endMark = null
); | 65 [MeasureAs=UnprefixedUserTiming, RaisesException] void measure(DOMString mea
sureName, optional DOMString startMark = null, optional DOMString endMark = null
); |
| 70 [MeasureAs=UnprefixedUserTiming] void clearMeasures(optional DOMString measu
reName = null); | 66 [MeasureAs=UnprefixedUserTiming] void clearMeasures(optional DOMString measu
reName = null); |
| 71 | 67 |
| 72 // Frame Timing | 68 // Frame Timing |
| 73 // https://w3c.github.io/frame-timing/#extensions-performance-interface | 69 // https://w3c.github.io/frame-timing/#extensions-performance-interface |
| 74 [RuntimeEnabled=FrameTimingSupport, MeasureAs=PerformanceFrameTiming] void c
learFrameTimings(); | 70 [RuntimeEnabled=FrameTimingSupport, MeasureAs=PerformanceFrameTiming] void c
learFrameTimings(); |
| 75 [RuntimeEnabled=FrameTimingSupport, MeasureAs=PerformanceFrameTiming] void s
etFrameTimingBufferSize(unsigned long maxSize); | 71 [RuntimeEnabled=FrameTimingSupport, MeasureAs=PerformanceFrameTiming] void s
etFrameTimingBufferSize(unsigned long maxSize); |
| 76 [RuntimeEnabled=FrameTimingSupport] attribute EventHandler onframetimingbuff
erfull; | 72 [RuntimeEnabled=FrameTimingSupport] attribute EventHandler onframetimingbuff
erfull; |
| 77 | 73 |
| 78 // TODO(philipj): There is no spec for the Memory Info API, see blink-dev: | 74 // TODO(philipj): There is no spec for the Memory Info API, see blink-dev: |
| 79 // https://groups.google.com/a/chromium.org/d/msg/blink-dev/g5YRCGpC9vs/b4OJ
z71NmPwJ | 75 // https://groups.google.com/a/chromium.org/d/msg/blink-dev/g5YRCGpC9vs/b4OJ
z71NmPwJ |
| 80 [Measure] readonly attribute MemoryInfo memory; | 76 [Measure] readonly attribute MemoryInfo memory; |
| 81 }; | 77 }; |
| OLD | NEW |