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) 2008 Matt Lilek <webkit@mattlilek.com> | 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> |
4 * Copyright (C) 2010 Google Inc. All rights reserved. | 4 * Copyright (C) 2010 Google Inc. All rights reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions are | 7 * modification, are permitted provided that the following conditions are |
8 * met: | 8 * met: |
9 * | 9 * |
10 * * Redistributions of source code must retain the above copyright | 10 * * Redistributions of source code must retain the above copyright |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 [ | 33 [ |
34 WillBeGarbageCollected, | 34 WillBeGarbageCollected, |
35 NoInterfaceObject | 35 NoInterfaceObject |
36 ] interface InjectedScriptHost { | 36 ] interface InjectedScriptHost { |
37 [NotEnumerable, Unforgeable] void clearConsoleMessages(); | 37 [NotEnumerable, Unforgeable] void clearConsoleMessages(); |
38 | 38 |
39 [NotEnumerable, Unforgeable, Custom] void inspect(any objectId, object hints
); | 39 [NotEnumerable, Unforgeable, Custom] void inspect(any objectId, object hints
); |
40 [NotEnumerable, Unforgeable, Custom] any inspectedObject(long num); | 40 [NotEnumerable, Unforgeable, Custom] any inspectedObject(long num); |
41 [NotEnumerable, Unforgeable, Custom] DOMString internalConstructorName(any o
bj); | 41 [NotEnumerable, Unforgeable, Custom] DOMString internalConstructorName(any o
bj); |
| 42 [NotEnumerable, Unforgeable, Custom] boolean isDOMWrapper(any obj); |
42 [NotEnumerable, Unforgeable, Custom] boolean isHTMLAllCollection(any obj); | 43 [NotEnumerable, Unforgeable, Custom] boolean isHTMLAllCollection(any obj); |
43 [NotEnumerable, Unforgeable, Custom] boolean isPopularDOMObject(any obj); | |
44 [NotEnumerable, Unforgeable, Custom] boolean isTypedArray(any obj); | 44 [NotEnumerable, Unforgeable, Custom] boolean isTypedArray(any obj); |
45 [NotEnumerable, Unforgeable, Custom] DOMString subtype(any obj); | 45 [NotEnumerable, Unforgeable, Custom] DOMString subtype(any obj); |
46 [NotEnumerable, Unforgeable, Custom] any functionDetails(Function obj); | 46 [NotEnumerable, Unforgeable, Custom] any functionDetails(Function obj); |
47 [NotEnumerable, Unforgeable, Custom] object? generatorObjectDetails(object o
bj); | 47 [NotEnumerable, Unforgeable, Custom] object? generatorObjectDetails(object o
bj); |
48 [NotEnumerable, Unforgeable, Custom] any[]? collectionEntries(object obj); | 48 [NotEnumerable, Unforgeable, Custom] any[]? collectionEntries(object obj); |
49 [NotEnumerable, Unforgeable, Custom] any[] getInternalProperties(any obj); | 49 [NotEnumerable, Unforgeable, Custom] any[] getInternalProperties(any obj); |
50 [NotEnumerable, Unforgeable, Custom] any[] getEventListeners(EventTarget tar
get); | 50 [NotEnumerable, Unforgeable, Custom] any[] getEventListeners(EventTarget tar
get); |
51 [NotEnumerable, Unforgeable, Custom] any eval(DOMString text); | 51 [NotEnumerable, Unforgeable, Custom] any eval(DOMString text); |
52 [NotEnumerable, Unforgeable, Custom] any evaluateWithExceptionDetails(DOMStr
ing text); | 52 [NotEnumerable, Unforgeable, Custom] any evaluateWithExceptionDetails(DOMStr
ing text); |
53 [NotEnumerable, Unforgeable, Custom] void debugFunction(any fn); | 53 [NotEnumerable, Unforgeable, Custom] void debugFunction(any fn); |
54 [NotEnumerable, Unforgeable, Custom] void undebugFunction(any fn); | 54 [NotEnumerable, Unforgeable, Custom] void undebugFunction(any fn); |
55 [NotEnumerable, Unforgeable, Custom] void monitorFunction(any fn); | 55 [NotEnumerable, Unforgeable, Custom] void monitorFunction(any fn); |
56 [NotEnumerable, Unforgeable, Custom] void unmonitorFunction(any fn); | 56 [NotEnumerable, Unforgeable, Custom] void unmonitorFunction(any fn); |
57 [NotEnumerable, Unforgeable, Custom] any callFunction(Function fn, any recei
ver, optional any[] argv); | 57 [NotEnumerable, Unforgeable, Custom] any callFunction(Function fn, any recei
ver, optional any[] argv); |
58 [NotEnumerable, Unforgeable, Custom] any suppressWarningsAndCallFunction(Fun
ction fn, any receiver, optional any[] argv); | 58 [NotEnumerable, Unforgeable, Custom] any suppressWarningsAndCallFunction(Fun
ction fn, any receiver, optional any[] argv); |
59 [NotEnumerable, Unforgeable, Custom] void setNonEnumProperty(object obj, DOM
String key, any value); | 59 [NotEnumerable, Unforgeable, Custom] void setNonEnumProperty(object obj, DOM
String key, any value); |
60 | 60 |
61 // Only declarative scope (local, with and catch) is accepted. Returns undef
ined. | 61 // Only declarative scope (local, with and catch) is accepted. Returns undef
ined. |
62 [NotEnumerable, Unforgeable, Custom] any setFunctionVariableValue(Function f
unctionObject, long scopeIndex, DOMString variableName, any newValue); | 62 [NotEnumerable, Unforgeable, Custom] any setFunctionVariableValue(Function f
unctionObject, long scopeIndex, DOMString variableName, any newValue); |
63 | 63 |
64 // Accessors to InjectedScriptNative | 64 // Accessors to InjectedScriptNative |
65 [NotEnumerable, Unforgeable, Custom] long bind(any value, DOMString groupNam
e); | 65 [NotEnumerable, Unforgeable, Custom] long bind(any value, DOMString groupNam
e); |
66 [NotEnumerable, Unforgeable, Custom] any objectForId(long id); | 66 [NotEnumerable, Unforgeable, Custom] any objectForId(long id); |
67 | 67 |
68 [NotEnumerable, Unforgeable, Custom] DOMString idToObjectGroupName(long id); | 68 [NotEnumerable, Unforgeable, Custom] DOMString idToObjectGroupName(long id); |
69 }; | 69 }; |
OLD | NEW |