2 * Copyright (C) 2011 Google Inc. All rights reserved.
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above
11 * copyright notice, this list of conditions and the following disclaimer
12 * in the documentation and/or other materials provided with the
14 * * Neither the name of Google Inc. nor the names of its
15 * contributors may be used to endorse or promote products derived from
16 * this software without specific prior written permission.
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 // WebKit Web Facing API
33 /** @param {...*} vararg */
34 console.warn = function(vararg) {}
35 /** @param {...*} vararg */
36 console.assert = function(vararg) {}
37 /** @param {...*} vararg */
38 console.error = function(vararg) {}
39 console.trace = function() {}
42 /** @param {string} str */
43 JSON.parse = function(str) {}
44 /** @param {Object} obj */
45 /** @return {string} */
46 JSON.stringify = function(str) {}
48 /** @param {boolean=} param */
49 Element.prototype.scrollIntoViewIfNeeded = function(param) {}
50 /** @type {boolean} */
51 Event.prototype.isMetaOrCtrlForTest = false;
52 /** @param {...*} vararg */
53 Event.prototype.initWebKitWheelEvent = function(vararg) {}
54 /** @param {Element} element */
55 window.getComputedStyle = function(element) {}
57 /** @param {boolean=} onlyFirst */
58 Array.prototype.remove = function(obj, onlyFirst) {}
59 Array.prototype.keySet = function() {}
61 DOMApplicationCache.prototype.UNCACHED = 0;
62 DOMApplicationCache.prototype.IDLE = 1;
63 DOMApplicationCache.prototype.CHECKING = 2;
64 DOMApplicationCache.prototype.DOWNLOADING = 3;
65 DOMApplicationCache.prototype.UPDATEREADY = 4;
66 DOMApplicationCache.prototype.OBSOLETE = 5;
71 var InspectorBackend = {}
72 InspectorBackend.runAfterPendingDispatches = function(message) {}
75 // FIXME: remove everything below.
79 * @param {NetworkAgent.RequestId} requestId
80 * @return {?WebInspector.Resource}
82 WebInspector.networkResourceById = function(requestId)
86 WebInspector.panels = {};
89 * @type {WebInspector.InspectorView}
91 WebInspector.inspectorView;
94 * @type {WebInspector.ScriptsPanel}
96 WebInspector.panels.scripts = null;
99 * @param {WebInspector.View} view
101 WebInspector.showViewInDrawer = function(view) {}
105 * @param {string=} messageLevel
106 * @param {boolean=} showConsole
108 WebInspector.log = function(message, messageLevel, showConsole) {}
110 WebInspector.addMainEventListeners = function(doc) {}
112 WebInspector.openResource = function(url, external) {}
114 WebInspector.openRequestInNetworkPanel = function(request) {}
116 WebInspector.populateResourceContextMenu = function(contextMenu, url) {}
118 WebInspector.evaluateInConsole = function(expression) {}
120 var InjectedFakeWorker = function() {}
122 WebInspector.queryParamsObject = {}
124 WebInspector.Events = {
125 InspectorClosing: "InspectorClosing"
128 /** Extensions API */
131 function AuditCategory() {}
133 function AuditResult() {}
135 function EventSink() {}
137 function ExtensionSidebarPane() {}
141 function PanelWithSidebar() {}
143 function Request() {}
145 function Resource() {}
147 function Timeline() {}
149 /** @type {string} */
150 Location.prototype.origin = "";
155 function ExtensionDescriptor() {
163 function ExtensionReloadOptions() {
164 this.ignoreCache = false;
165 this.injectedScript = "";
170 * @type {WebInspector.HandlerRegistry}
172 WebInspector.openAnchorLocationRegistry = null;
175 * @param {WebInspector.Panel} panel
177 WebInspector.showPanelForAnchorNavigation = function(panel)
181 WebInspector.showPanel = function(panel)
188 WebInspector.inspectedPageDomain;