| 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 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 OmitConstructor | 31 OmitConstructor |
| 32 ] interface Console { | 32 ] interface Console { |
| 33 | 33 |
| 34 [CallWith=ScriptArguments|ScriptState] void debug(); | 34 [CallWith=ScriptArguments|ScriptState] void debug(); |
| 35 [CallWith=ScriptArguments|ScriptState] void error(); | 35 [CallWith=ScriptArguments|ScriptState] void error(); |
| 36 [CallWith=ScriptArguments|ScriptState] void info(); | 36 [CallWith=ScriptArguments|ScriptState] void info(); |
| 37 [CallWith=ScriptArguments|ScriptState] void log(); | 37 [CallWith=ScriptArguments|ScriptState] void log(); |
| 38 [CallWith=ScriptArguments|ScriptState] void warn(); | 38 [CallWith=ScriptArguments|ScriptState] void warn(); |
| 39 [CallWith=ScriptArguments|ScriptState] void dir(); | 39 [CallWith=ScriptArguments|ScriptState] void dir(); |
| 40 [CallWith=ScriptArguments|ScriptState] void dirxml(); | 40 [CallWith=ScriptArguments|ScriptState] void dirxml(); |
| 41 [CallWith=ScriptArguments|ScriptState] void table(); |
| 41 [V8Custom, CallWith=ScriptArguments|ScriptState] void trace(); | 42 [V8Custom, CallWith=ScriptArguments|ScriptState] void trace(); |
| 42 [V8Custom, CallWith=ScriptArguments|ScriptState, ImplementedAs=assertConditi
on] void assert(in boolean condition); | 43 [V8Custom, CallWith=ScriptArguments|ScriptState, ImplementedAs=assertConditi
on] void assert(in boolean condition); |
| 43 [CallWith=ScriptArguments|ScriptState] void count(); | 44 [CallWith=ScriptArguments|ScriptState] void count(); |
| 44 [CallWith=ScriptArguments] void markTimeline(); | 45 [CallWith=ScriptArguments] void markTimeline(); |
| 45 | 46 |
| 46 #if defined(ENABLE_JAVASCRIPT_DEBUGGER) && ENABLE_JAVASCRIPT_DEBUGGER | 47 #if defined(ENABLE_JAVASCRIPT_DEBUGGER) && ENABLE_JAVASCRIPT_DEBUGGER |
| 47 // As per spec: http://www.w3.org/TR/WebIDL/#idl-sequence | 48 // As per spec: http://www.w3.org/TR/WebIDL/#idl-sequence |
| 48 // "Sequences must not be used as the type of an attribute, constant or exce
ption field." | 49 // "Sequences must not be used as the type of an attribute, constant or exce
ption field." |
| 49 // FIXME: this will lead to BUG console.profiles !== console.profiles as pro
file will always returns new array. | 50 // FIXME: this will lead to BUG console.profiles !== console.profiles as pro
file will always returns new array. |
| 50 readonly attribute ScriptProfile[] profiles; | 51 readonly attribute ScriptProfile[] profiles; |
| 51 [Custom] void profile(in DOMString title); | 52 [Custom] void profile(in DOMString title); |
| 52 [Custom] void profileEnd(in DOMString title); | 53 [Custom] void profileEnd(in DOMString title); |
| 53 #endif | 54 #endif |
| 54 | 55 |
| 55 void time(in [TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString
title); | 56 void time(in [TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString
title); |
| 56 [CallWith=ScriptState] void timeEnd(in [TreatNullAs=NullString, TreatUndefin
edAs=NullString] DOMString title); | 57 [CallWith=ScriptState] void timeEnd(in [TreatNullAs=NullString, TreatUndefin
edAs=NullString] DOMString title); |
| 57 [CallWith=ScriptArguments] void timeStamp(); | 58 [CallWith=ScriptArguments] void timeStamp(); |
| 58 [CallWith=ScriptArguments|ScriptState] void group(); | 59 [CallWith=ScriptArguments|ScriptState] void group(); |
| 59 [CallWith=ScriptArguments|ScriptState] void groupCollapsed(); | 60 [CallWith=ScriptArguments|ScriptState] void groupCollapsed(); |
| 60 void groupEnd(); | 61 void groupEnd(); |
| 61 [CallWith=ScriptArguments|ScriptState] void clear(); | 62 [CallWith=ScriptArguments|ScriptState] void clear(); |
| 62 | 63 |
| 63 readonly attribute MemoryInfo memory; | 64 readonly attribute MemoryInfo memory; |
| 64 }; | 65 }; |
| 65 | 66 |
| OLD | NEW |