Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google 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 | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. 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 16 matching lines...) Expand all Loading... | |
| 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 28 */ | 28 */ |
| 29 | 29 |
| 30 // Console API | 30 // Console API |
| 31 // https://console.spec.whatwg.org/#console-interface | 31 // https://console.spec.whatwg.org/#console-interface |
| 32 | 32 |
| 33 [ | 33 [ |
| 34 NoInterfaceObject, | 34 NoInterfaceObject, |
| 35 GarbageCollected, | 35 GarbageCollected, |
| 36 ] interface ConsoleBase { | 36 ] interface ConsoleBase { |
| 37 [CallWith=(ScriptArguments,ScriptState)] void debug(); | 37 [Custom, Replaceable] readonly attribute object debug; |
|
dgozman
2016/04/06 15:51:33
Should not be readonly.
kozy
2016/04/06 17:45:20
It's replaceable - users can replace this property
| |
| 38 [CallWith=(ScriptArguments,ScriptState)] void error(); | 38 [Custom, Replaceable] readonly attribute object error; |
| 39 [CallWith=(ScriptArguments,ScriptState)] void info(); | 39 [Custom, Replaceable] readonly attribute object info; |
| 40 [CallWith=(ScriptArguments,ScriptState)] void log(); | 40 [Custom, Replaceable] readonly attribute object log; |
|
dgozman
2016/04/06 15:51:33
Why object?
kozy
2016/04/06 17:45:20
There is no function type in WebIDL spec so functi
| |
| 41 [CallWith=(ScriptArguments,ScriptState)] void warn(); | 41 [Custom, Replaceable] readonly attribute object warn; |
| 42 [CallWith=(ScriptArguments,ScriptState)] void dir(); | 42 [Custom, Replaceable] readonly attribute object dir; |
| 43 [CallWith=(ScriptArguments,ScriptState)] void dirxml(); | 43 [Custom, Replaceable] readonly attribute object dirxml; |
| 44 [CallWith=(ScriptArguments,ScriptState)] void table(); | 44 [Custom, Replaceable] readonly attribute object table; |
| 45 [CallWith=(ScriptArguments,ScriptState)] void trace(); | 45 [Custom, Replaceable] readonly attribute object trace; |
| 46 [CallWith=(ScriptArguments,ScriptState), ImplementedAs=assertCondition] void assert([Default=Undefined] optional boolean condition); | 46 [Custom, Replaceable] readonly attribute object assert; |
| 47 [CallWith=(ScriptArguments,ScriptState)] void count(); | 47 [Custom, Replaceable] readonly attribute object count; |
| 48 [DeprecateAs=ConsoleMarkTimeline] void markTimeline(optional DOMString title = null); | 48 [Custom, Replaceable] readonly attribute object markTimeline; |
| 49 | 49 |
| 50 void profile(optional DOMString title = null); | 50 [Custom, Replaceable] readonly attribute object profile; |
| 51 void profileEnd(optional DOMString title = null); | 51 [Custom, Replaceable] readonly attribute object profileEnd; |
| 52 | 52 |
| 53 void time(optional DOMString title = null); | 53 [Custom, Replaceable] readonly attribute object time; |
| 54 [CallWith=ScriptState] void timeEnd(optional DOMString title = null); | 54 [Custom, Replaceable] readonly attribute object timeEnd; |
| 55 void timeStamp(optional DOMString title = null); | 55 [Custom, Replaceable] readonly attribute object timeStamp; |
| 56 | 56 |
| 57 [DeprecateAs=ConsoleTimeline,CallWith=ScriptState] void timeline(optional DO MString title = null); | 57 [Custom, Replaceable] readonly attribute object timeline; |
| 58 [DeprecateAs=ConsoleTimelineEnd,CallWith=ScriptState] void timelineEnd(optio nal DOMString title = null); | 58 [Custom, Replaceable] readonly attribute object timelineEnd; |
| 59 | 59 |
| 60 [CallWith=(ScriptArguments,ScriptState)] void group(); | 60 [Custom, Replaceable] readonly attribute object group; |
| 61 [CallWith=(ScriptArguments,ScriptState)] void groupCollapsed(); | 61 [Custom, Replaceable] readonly attribute object groupCollapsed; |
| 62 void groupEnd(); | 62 [Custom, Replaceable] readonly attribute object groupEnd; |
| 63 [CallWith=(ScriptArguments,ScriptState)] void clear(); | 63 [Custom, Replaceable] readonly attribute object clear; |
| 64 }; | 64 }; |
| OLD | NEW |