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

Side by Side Diff: Source/core/page/Performance.idl

Issue 14246023: Unprefix User Timing. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix tests Created 7 years, 8 months 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/page/Performance.cpp ('k') | Source/core/page/UseCounter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 19 matching lines...) Expand all
30 */ 30 */
31 31
32 // See: http://dev.w3.org/2006/webapi/WebTiming/ 32 // See: http://dev.w3.org/2006/webapi/WebTiming/
33 [ 33 [
34 EventTarget, 34 EventTarget,
35 ] interface Performance { 35 ] interface Performance {
36 readonly attribute PerformanceNavigation navigation; 36 readonly attribute PerformanceNavigation navigation;
37 readonly attribute PerformanceTiming timing; 37 readonly attribute PerformanceTiming timing;
38 readonly attribute MemoryInfo memory; 38 readonly attribute MemoryInfo memory;
39 39
40 sequence<PerformanceEntry> webkitGetEntries(); 40 [MeasureAs=UnprefixedPerformanceTimeline] sequence<PerformanceEntry> getEntr ies();
41 sequence<PerformanceEntry> webkitGetEntriesByType(DOMString entryType); 41 [MeasureAs=UnprefixedPerformanceTimeline] sequence<PerformanceEntry> getEntr iesByType(DOMString entryType);
42 sequence<PerformanceEntry> webkitGetEntriesByName(DOMString name, [Default=N ullString] optional DOMString entryType); 42 [MeasureAs=UnprefixedPerformanceTimeline] sequence<PerformanceEntry> getEntr iesByName(DOMString name, [Default=NullString] optional DOMString entryType);
43 [MeasureAs=PrefixedPerformanceTimeline,ImplementedAs=getEntries] sequence<Pe rformanceEntry> webkitGetEntries();
44 [MeasureAs=PrefixedPerformanceTimeline,ImplementedAs=getEntriesByType] seque nce<PerformanceEntry> webkitGetEntriesByType(DOMString entryType);
45 [MeasureAs=PrefixedPerformanceTimeline,ImplementedAs=getEntriesByName] seque nce<PerformanceEntry> webkitGetEntriesByName(DOMString name, [Default=NullString ] optional DOMString entryType);
43 46
44 void webkitClearResourceTimings(); 47 void webkitClearResourceTimings();
45 void webkitSetResourceTimingBufferSize(unsigned long maxSize); 48 void webkitSetResourceTimingBufferSize(unsigned long maxSize);
46 49
47 attribute EventListener onwebkitresourcetimingbufferfull; 50 attribute EventListener onwebkitresourcetimingbufferfull;
48 51
49 // See http://www.w3.org/TR/2012/CR-user-timing-20120726/ 52 // See http://www.w3.org/TR/2012/CR-user-timing-20120726/
50 [RaisesException] void webkitMark(DOMString markName); 53 [RaisesException,MeasureAs=UnprefixedUserTiming] void mark(DOMString markNam e);
51 void webkitClearMarks([Default=NullString] optional DOMString markName); 54 [MeasureAs=UnprefixedUserTiming] void clearMarks([Default=NullString] option al DOMString markName);
52 55
53 [RaisesException] void webkitMeasure(DOMString measureName, [Default=NullStr ing] optional DOMString startMark, [Default=NullString] optional DOMString endMa rk); 56 [RaisesException,MeasureAs=UnprefixedUserTiming] void measure(DOMString meas ureName, [Default=NullString] optional DOMString startMark, [Default=NullString] optional DOMString endMark);
54 void webkitClearMeasures([Default=NullString] optional DOMString measureName ); 57 [MeasureAs=UnprefixedUserTiming] void clearMeasures([Default=NullString] opt ional DOMString measureName);
58
59 [RaisesException,MeasureAs=PrefixedUserTiming,ImplementedAs=mark] void webki tMark(DOMString markName);
60 [MeasureAs=PrefixedUserTiming,ImplementedAs=clearMarks] void webkitClearMark s([Default=NullString] optional DOMString markName);
61
62 [RaisesException,MeasureAs=PrefixedUserTiming,ImplementedAs=measure] void we bkitMeasure(DOMString measureName, [Default=NullString] optional DOMString start Mark, [Default=NullString] optional DOMString endMark);
63 [MeasureAs=PrefixedUserTiming,ImplementedAs=clearMeasures] void webkitClearM easures([Default=NullString] optional DOMString measureName);
55 64
56 // See http://www.w3.org/TR/hr-time/ for details. 65 // See http://www.w3.org/TR/hr-time/ for details.
57 double now(); 66 double now();
58 }; 67 };
59 68
OLDNEW
« no previous file with comments | « Source/core/page/Performance.cpp ('k') | Source/core/page/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698