blob: 678a36cb89aae12048dece41eea0cab29cf6df99 [file] [log] [blame]
Torne (Richard Coles)53e740f2013-05-09 18:38:43 +01001/*
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com>
4 * Copyright (C) 2009 Google Inc. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met:
9 *
10 * * Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * * Redistributions in binary form must reproduce the above
13 * copyright notice, this list of conditions and the following disclaimer
14 * in the documentation and/or other materials provided with the
15 * distribution.
16 * * Neither the name of Google Inc. nor the names of its
17 * contributors may be used to endorse or promote products derived from
18 * this software without specific prior written permission.
19 *
20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 */
32
33[
Torne (Richard Coles)93ac45c2013-05-29 14:40:20 +010034 NoInterfaceObject
Torne (Richard Coles)53e740f2013-05-09 18:38:43 +010035] interface InspectorFrontendHost {
36 void closeWindow();
Torne (Richard Coles)53e740f2013-05-09 18:38:43 +010037 void setZoomFactor(float zoom);
38 void inspectedURLChanged(DOMString newURL);
39
Torne (Richard Coles)53e740f2013-05-09 18:38:43 +010040 void setAttachedWindowHeight(unsigned long height);
Torne (Richard Coles)53e740f2013-05-09 18:38:43 +010041 void setInjectedScriptForOrigin(DOMString origin, DOMString script);
42
43 void copyText(DOMString text);
Torne (Richard Coles)53e740f2013-05-09 18:38:43 +010044 void close(DOMString url);
45
46 [Custom] DOMString platform();
47 [Custom] DOMString port();
48 [Custom] void showContextMenu(MouseEvent event, any items);
49 void sendMessageToBackend(DOMString message);
Torne (Richard Coles)8abfc582013-09-12 12:10:38 +010050 void sendMessageToEmbedder(DOMString message);
Torne (Richard Coles)53e740f2013-05-09 18:38:43 +010051
52 [Custom] void recordActionTaken(unsigned long actionCode);
53 [Custom] void recordPanelShown(unsigned long panelCode);
54 [Custom] void recordSettingChanged(unsigned long settingChanged);
55
56 DOMString loadResourceSynchronously(DOMString url);
57 DOMString getSelectionBackgroundColor();
58 DOMString getSelectionForegroundColor();
59
Torne (Richard Coles)53e740f2013-05-09 18:38:43 +010060 DOMFileSystem isolatedFileSystem(DOMString fileSystemId, DOMString registeredName);
Torne (Richard Coles)53e740f2013-05-09 18:38:43 +010061
62 boolean isUnderTest();
63
64 // Deprecated
65 boolean canInspectWorkers();
66 boolean canSaveAs();
67 boolean canSave();
68 boolean supportsFileSystems();
69 void loaded();
70 DOMString hiddenPanels();
71 DOMString localizedStringsURL();
72};