Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Side by Side Diff: third_party/WebKit/Source/core/timing/Performance.idl

Issue 2526943002: Add use counters for lots of DOM APIs.
Patch Set: Add use counters for lots of DOM APIs. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 29 matching lines...) Expand all
40 40
41 // Performance Timeline 41 // Performance Timeline
42 // https://w3c.github.io/performance-timeline/#the-performance-interface 42 // https://w3c.github.io/performance-timeline/#the-performance-interface
43 // TODO(foolip): getEntries() should take an optional FilterOptions argument . 43 // TODO(foolip): getEntries() should take an optional FilterOptions argument .
44 [MeasureAs=UnprefixedPerformanceTimeline] PerformanceEntryList getEntries(); 44 [MeasureAs=UnprefixedPerformanceTimeline] PerformanceEntryList getEntries();
45 [MeasureAs=UnprefixedPerformanceTimeline] PerformanceEntryList getEntriesByT ype(DOMString entryType); 45 [MeasureAs=UnprefixedPerformanceTimeline] PerformanceEntryList getEntriesByT ype(DOMString entryType);
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 void clearResourceTimings(); 50 [Measure] void clearResourceTimings();
51 void setResourceTimingBufferSize(unsigned long maxSize); 51 [Measure] void setResourceTimingBufferSize(unsigned long maxSize);
52 attribute EventHandler onresourcetimingbufferfull; 52 [Measure] attribute EventHandler onresourcetimingbufferfull;
53 53
54 // TODO(ksakamoto): Remove these prefixed APIs. 54 // TODO(ksakamoto): Remove these prefixed APIs.
55 [DeprecateAs=PrefixedPerformanceClearResourceTimings, ImplementedAs=clearRes ourceTimings] void webkitClearResourceTimings(); 55 [DeprecateAs=PrefixedPerformanceClearResourceTimings, ImplementedAs=clearRes ourceTimings] void webkitClearResourceTimings();
56 [DeprecateAs=PrefixedPerformanceSetResourceTimingBufferSize, ImplementedAs=s etResourceTimingBufferSize] void webkitSetResourceTimingBufferSize(unsigned long maxSize); 56 [DeprecateAs=PrefixedPerformanceSetResourceTimingBufferSize, ImplementedAs=s etResourceTimingBufferSize] void webkitSetResourceTimingBufferSize(unsigned long maxSize);
57 [DeprecateAs=PrefixedPerformanceResourceTimingBufferFull] attribute EventHan dler onwebkitresourcetimingbufferfull; 57 [DeprecateAs=PrefixedPerformanceResourceTimingBufferFull] attribute EventHan dler onwebkitresourcetimingbufferfull;
58 58
59 // Navigation Timing 59 // Navigation Timing
60 // https://w3c.github.io/navigation-timing/#extensions-to-the-performance-in terface 60 // https://w3c.github.io/navigation-timing/#extensions-to-the-performance-in terface
61 [SameObject, Measure] readonly attribute PerformanceTiming timing; 61 [SameObject, Measure] readonly attribute PerformanceTiming timing;
62 [SameObject, Measure] readonly attribute PerformanceNavigation navigation; 62 [SameObject, Measure] readonly attribute PerformanceNavigation navigation;
(...skipping 11 matching lines...) Expand all
74 [RuntimeEnabled=FrameTimingSupport, MeasureAs=PerformanceFrameTiming] void c learFrameTimings(); 74 [RuntimeEnabled=FrameTimingSupport, MeasureAs=PerformanceFrameTiming] void c learFrameTimings();
75 [RuntimeEnabled=FrameTimingSupport, MeasureAs=PerformanceFrameTiming] void s etFrameTimingBufferSize(unsigned long maxSize); 75 [RuntimeEnabled=FrameTimingSupport, MeasureAs=PerformanceFrameTiming] void s etFrameTimingBufferSize(unsigned long maxSize);
76 [RuntimeEnabled=FrameTimingSupport] attribute EventHandler onframetimingbuff erfull; 76 [RuntimeEnabled=FrameTimingSupport] attribute EventHandler onframetimingbuff erfull;
77 77
78 // TODO(foolip): There is no spec for the Memory Info API, see blink-dev: 78 // TODO(foolip): 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 79 // https://groups.google.com/a/chromium.org/d/msg/blink-dev/g5YRCGpC9vs/b4OJ z71NmPwJ
80 [Measure] readonly attribute MemoryInfo memory; 80 [Measure] readonly attribute MemoryInfo memory;
81 81
82 serializer = {attribute}; 82 serializer = {attribute};
83 }; 83 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698