15c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)/* 25c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. 35c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> 45c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * Copyright (C) 2010 Google Inc. All rights reserved. 55c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * 65c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * Redistribution and use in source and binary forms, with or without 75c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * modification, are permitted provided that the following conditions are 85c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * met: 95c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * 105c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * * Redistributions of source code must retain the above copyright 115c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * notice, this list of conditions and the following disclaimer. 125c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * * Redistributions in binary form must reproduce the above 135c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * copyright notice, this list of conditions and the following disclaimer 145c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * in the documentation and/or other materials provided with the 155c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * distribution. 165c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * * Neither the name of Google Inc. nor the names of its 175c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * contributors may be used to endorse or promote products derived from 185c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * this software without specific prior written permission. 195c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * 205c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 215c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 225c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 235c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 245c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 255c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 265c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 275c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 285c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 295c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 305c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 315c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) */ 325c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) 335c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)[ 34c1847b1379d12d0e05df27436bf19a9b1bf12deaTorne (Richard Coles) WillBeGarbageCollected, 3593ac45cfc74041c8ae536ce58a9534d46db2024eTorne (Richard Coles) NoInterfaceObject 365c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)] interface InjectedScriptHost { 37e38fbeeb576b5094e34e038ab88d9d6a5c5c2214Torne (Richard Coles) [NotEnumerable, Unforgeable] void clearConsoleMessages(); 385c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) 397242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano Tucci [NotEnumerable, Unforgeable, Custom] void inspect(any objectId, object hints); 40e38fbeeb576b5094e34e038ab88d9d6a5c5c2214Torne (Richard Coles) [NotEnumerable, Unforgeable, Custom] any inspectedObject(long num); 417242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano Tucci [NotEnumerable, Unforgeable, Custom] DOMString internalConstructorName(any obj); 42e38fbeeb576b5094e34e038ab88d9d6a5c5c2214Torne (Richard Coles) [NotEnumerable, Unforgeable, Custom] boolean isHTMLAllCollection(any obj); 437242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano Tucci [NotEnumerable, Unforgeable, Custom] DOMString subtype(any obj); 447242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano Tucci [NotEnumerable, Unforgeable, Custom] any functionDetails(Function obj); 457242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano Tucci [NotEnumerable, Unforgeable, Custom] any[]? collectionEntries(object obj); 46e38fbeeb576b5094e34e038ab88d9d6a5c5c2214Torne (Richard Coles) [NotEnumerable, Unforgeable, Custom] any[] getInternalProperties(any obj); 477242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano Tucci [NotEnumerable, Unforgeable, Custom] any[] getEventListeners(EventTarget target); 48e38fbeeb576b5094e34e038ab88d9d6a5c5c2214Torne (Richard Coles) [NotEnumerable, Unforgeable, Custom] any eval(DOMString text); 49e38fbeeb576b5094e34e038ab88d9d6a5c5c2214Torne (Richard Coles) [NotEnumerable, Unforgeable, Custom] any evaluateWithExceptionDetails(DOMString text); 50e38fbeeb576b5094e34e038ab88d9d6a5c5c2214Torne (Richard Coles) [NotEnumerable, Unforgeable, Custom] void debugFunction(any fn); 51e38fbeeb576b5094e34e038ab88d9d6a5c5c2214Torne (Richard Coles) [NotEnumerable, Unforgeable, Custom] void undebugFunction(any fn); 52e38fbeeb576b5094e34e038ab88d9d6a5c5c2214Torne (Richard Coles) [NotEnumerable, Unforgeable, Custom] void monitorFunction(any fn); 53e38fbeeb576b5094e34e038ab88d9d6a5c5c2214Torne (Richard Coles) [NotEnumerable, Unforgeable, Custom] void unmonitorFunction(any fn); 547242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano Tucci [NotEnumerable, Unforgeable, Custom] any callFunction(Function fn, any receiver, optional any[] argv); 557242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano Tucci [NotEnumerable, Unforgeable, Custom] any suppressWarningsAndCallFunction(Function fn, any receiver, optional any[] argv); 567242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano Tucci [NotEnumerable, Unforgeable, Custom] void setNonEnumProperty(object obj, DOMString key, any value); 57926b001d589ce2f10facb93dd4b87578ea35a855Torne (Richard Coles) 5802772c6a72f1ee0b226341a4f4439970c29fc861Ben Murdoch // Only declarative scope (local, with and catch) is accepted. Returns undefined. 597242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano Tucci [NotEnumerable, Unforgeable, Custom] any setFunctionVariableValue(Function functionObject, long scopeIndex, DOMString variableName, any newValue); 605c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)}; 61