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

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

Issue 312683005: IDL: Support optional argument default value syntax (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: address nits Created 6 years, 6 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
« no previous file with comments | « Source/core/testing/TypeConversions.idl ('k') | Source/core/workers/SharedWorker.idl » ('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 21 matching lines...) Expand all
32 // See: http://www.w3.org/TR/navigation-timing/ 32 // See: http://www.w3.org/TR/navigation-timing/
33 [ 33 [
34 WillBeGarbageCollected 34 WillBeGarbageCollected
35 ] interface Performance : EventTarget { 35 ] interface Performance : EventTarget {
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 [MeasureAs=UnprefixedPerformanceTimeline] sequence<PerformanceEntry> getEntr ies(); 40 [MeasureAs=UnprefixedPerformanceTimeline] sequence<PerformanceEntry> getEntr ies();
41 [MeasureAs=UnprefixedPerformanceTimeline] sequence<PerformanceEntry> getEntr iesByType(DOMString entryType); 41 [MeasureAs=UnprefixedPerformanceTimeline] sequence<PerformanceEntry> getEntr iesByType(DOMString entryType);
42 [MeasureAs=UnprefixedPerformanceTimeline] sequence<PerformanceEntry> getEntr iesByName(DOMString name, [Default=NullString] optional DOMString entryType); 42 [MeasureAs=UnprefixedPerformanceTimeline] sequence<PerformanceEntry> getEntr iesByName(DOMString name, optional DOMString entryType = null);
43 43
44 [MeasureAs=PrefixedPerformanceClearResourceTimings] void webkitClearResource Timings(); 44 [MeasureAs=PrefixedPerformanceClearResourceTimings] void webkitClearResource Timings();
45 [MeasureAs=PrefixedPerformanceSetResourceTimingBufferSize] void webkitSetRes ourceTimingBufferSize(unsigned long maxSize); 45 [MeasureAs=PrefixedPerformanceSetResourceTimingBufferSize] void webkitSetRes ourceTimingBufferSize(unsigned long maxSize);
46 46
47 attribute EventHandler onwebkitresourcetimingbufferfull; 47 attribute EventHandler onwebkitresourcetimingbufferfull;
48 48
49 // See http://www.w3.org/TR/2012/CR-user-timing-20120726/ 49 // See http://www.w3.org/TR/2012/CR-user-timing-20120726/
50 [RaisesException,MeasureAs=UnprefixedUserTiming] void mark(DOMString markNam e); 50 [RaisesException,MeasureAs=UnprefixedUserTiming] void mark(DOMString markNam e);
51 [MeasureAs=UnprefixedUserTiming] void clearMarks([Default=NullString] option al DOMString markName); 51 [MeasureAs=UnprefixedUserTiming] void clearMarks(optional DOMString markName = null);
52 52
53 [RaisesException,MeasureAs=UnprefixedUserTiming] void measure(DOMString meas ureName, [Default=NullString] optional DOMString startMark, [Default=NullString] optional DOMString endMark); 53 [RaisesException,MeasureAs=UnprefixedUserTiming] void measure(DOMString meas ureName, optional DOMString startMark = null, optional DOMString endMark = null) ;
54 [MeasureAs=UnprefixedUserTiming] void clearMeasures([Default=NullString] opt ional DOMString measureName); 54 [MeasureAs=UnprefixedUserTiming] void clearMeasures(optional DOMString measu reName = null);
55 55
56 // See http://www.w3.org/TR/hr-time/ for details. 56 // See http://www.w3.org/TR/hr-time/ for details.
57 double now(); 57 double now();
58 }; 58 };
59 59
OLDNEW
« no previous file with comments | « Source/core/testing/TypeConversions.idl ('k') | Source/core/workers/SharedWorker.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698