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) 2009 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 InspectorFrontendHost { 3709380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) // FIXME: setZoomFactor is here only for old frontends. Remove in M38. 3853e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) void setZoomFactor(float zoom); 3909380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) float zoomFactor(); 405c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) 4153e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) void setInjectedScriptForOrigin(DOMString origin, DOMString script); 425c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) 4353e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) void copyText(DOMString text); 445c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) 455c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) [Custom] DOMString platform(); 465c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) [Custom] DOMString port(); 47197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch // FIXME: showContextMenu is here only for old frontends. Remove in M43. 4853e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) [Custom] void showContextMenu(MouseEvent event, any items); 49197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch [Custom] void showContextMenuAtPoint(float x, float y, any items); 5053e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) void sendMessageToBackend(DOMString message); 518abfc5808a4e34d6e03867af8bc440dee641886fTorne (Richard Coles) void sendMessageToEmbedder(DOMString message); 525c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) 5353e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) [Custom] void recordActionTaken(unsigned long actionCode); 5453e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) [Custom] void recordPanelShown(unsigned long panelCode); 55926b001d589ce2f10facb93dd4b87578ea35a855Torne (Richard Coles) 5653e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) DOMString getSelectionBackgroundColor(); 5753e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) DOMString getSelectionForegroundColor(); 58926b001d589ce2f10facb93dd4b87578ea35a855Torne (Richard Coles) 59926b001d589ce2f10facb93dd4b87578ea35a855Torne (Richard Coles) boolean isUnderTest(); 60197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch boolean isHostedMode(); 615c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)}; 62