code
stringlengths 24
2.07M
| docstring
stringlengths 25
85.3k
| func_name
stringlengths 1
92
| language
stringclasses 1
value | repo
stringlengths 5
64
| path
stringlengths 4
172
| url
stringlengths 44
218
| license
stringclasses 7
values |
---|---|---|---|---|---|---|---|
get hovered()
{
return this._hovered;
}
|
@constructor
@extends {TreeElement}
@param {boolean=} elementCloseTag
|
hovered
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/ElementsTreeOutline.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ElementsTreeOutline.js
|
MIT
|
set hovered(x)
{
if (this._hovered === x)
return;
this._hovered = x;
if (this.listItemElement) {
if (x) {
this.updateSelection();
this.listItemElement.addStyleClass("hovered");
} else {
this.listItemElement.removeStyleClass("hovered");
}
}
}
|
@constructor
@extends {TreeElement}
@param {boolean=} elementCloseTag
|
hovered
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/ElementsTreeOutline.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ElementsTreeOutline.js
|
MIT
|
get expandedChildrenLimit()
{
return this._expandedChildrenLimit;
}
|
@constructor
@extends {TreeElement}
@param {boolean=} elementCloseTag
|
expandedChildrenLimit
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/ElementsTreeOutline.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ElementsTreeOutline.js
|
MIT
|
set expandedChildrenLimit(x)
{
if (this._expandedChildrenLimit === x)
return;
this._expandedChildrenLimit = x;
if (this.treeOutline && !this._updateChildrenInProgress)
this._updateChildren(true);
}
|
@constructor
@extends {TreeElement}
@param {boolean=} elementCloseTag
|
expandedChildrenLimit
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/ElementsTreeOutline.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ElementsTreeOutline.js
|
MIT
|
get expandedChildCount()
{
var count = this.children.length;
if (count && this.children[count - 1]._elementCloseTag)
count--;
if (count && this.children[count - 1].expandAllButton)
count--;
return count;
}
|
@constructor
@extends {TreeElement}
@param {boolean=} elementCloseTag
|
expandedChildCount
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/ElementsTreeOutline.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ElementsTreeOutline.js
|
MIT
|
get toolbarItemLabel()
{
return this._toolbarItemLabel;
}
|
@constructor
@extends {WebInspector.Panel}
@param {string} id
@param {string} label
@param {string} iconURL
|
toolbarItemLabel
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/ExtensionPanel.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ExtensionPanel.js
|
MIT
|
get defaultFocusedElement()
{
return this.sidebarTreeElement || this.element;
}
|
@constructor
@extends {WebInspector.Panel}
@param {string} id
@param {string} label
@param {string} iconURL
|
defaultFocusedElement
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/ExtensionPanel.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ExtensionPanel.js
|
MIT
|
get statusBarItems()
{
return this._statusBarItems;
}
|
@constructor
@extends {WebInspector.Panel}
@param {string} id
@param {string} label
@param {string} iconURL
|
statusBarItems
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/ExtensionPanel.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ExtensionPanel.js
|
MIT
|
function nextItem(itemElement, isPageScroll, forward)
{
var scrollItemsLeft = isPageScroll && this._rowsPerViewport ? this._rowsPerViewport : 1;
var candidate = itemElement;
var lastVisibleCandidate = candidate;
do {
candidate = forward ? candidate.nextSibling : candidate.previousSibling;
if (!candidate) {
if (isPageScroll)
return lastVisibleCandidate;
else
candidate = forward ? this._itemElementsContainer.firstChild : this._itemElementsContainer.lastChild;
}
if (!this._itemElementVisible(candidate))
continue;
lastVisibleCandidate = candidate;
--scrollItemsLeft;
} while (scrollItemsLeft && candidate !== this._selectedElement);
return candidate;
}
|
@param {string=} query
@param {boolean=} isGlobal
|
nextItem
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/FilteredItemSelectionDialog.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/FilteredItemSelectionDialog.js
|
MIT
|
function showJavaScriptOutlineDialog()
{
var view = viewGetter();
if (view)
WebInspector.JavaScriptOutlineDialog._show(panel, view);
}
|
@param {{chunk, index, total, id}} data
|
showJavaScriptOutlineDialog
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/FilteredItemSelectionDialog.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/FilteredItemSelectionDialog.js
|
MIT
|
function filterOutEmptyURLs(uiSourceCode)
{
return !!uiSourceCode.fileName;
}
|
@constructor
@implements {WebInspector.SelectionDialogContentProvider}
@param {WebInspector.ScriptsPanel} panel
@param {WebInspector.DebuggerPresentationModel} presentationModel
|
filterOutEmptyURLs
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/FilteredItemSelectionDialog.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/FilteredItemSelectionDialog.js
|
MIT
|
function compareFunction(uiSourceCode1, uiSourceCode2)
{
return uiSourceCode1.fileName.localeCompare(uiSourceCode2.fileName);
}
|
@constructor
@implements {WebInspector.SelectionDialogContentProvider}
@param {WebInspector.ScriptsPanel} panel
@param {WebInspector.DebuggerPresentationModel} presentationModel
|
compareFunction
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/FilteredItemSelectionDialog.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/FilteredItemSelectionDialog.js
|
MIT
|
function showOpenResourceDialog()
{
WebInspector.OpenResourceDialog._show(panel, presentationModel, relativeToElement);
}
|
@param {WebInspector.ScriptsPanel} panel
@param {WebInspector.DebuggerPresentationModel} presentationModel
|
showOpenResourceDialog
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/FilteredItemSelectionDialog.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/FilteredItemSelectionDialog.js
|
MIT
|
function innerCallback(dataEntries, hasMore)
{
var entries = [];
for (var i = 0; i < dataEntries.length; ++i) {
var key = WebInspector.IndexedDBModel.idbKeyFromKey(dataEntries[i].key);
var primaryKey = WebInspector.IndexedDBModel.idbKeyFromKey(dataEntries[i].primaryKey);
var value = WebInspector.RemoteObject.fromPayload(dataEntries[i].value);
entries.push(new WebInspector.IndexedDBModel.Entry(key, primaryKey, value));
}
callback(entries, hasMore);
}
|
@param {Array.<IndexedDBAgent.DataEntry>} dataEntries
@param {boolean} hasMore
|
innerCallback
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/IndexedDBModel.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/IndexedDBModel.js
|
MIT
|
function innerCallback(dataEntries, hasMore)
{
var entries = [];
for (var i = 0; i < dataEntries.length; ++i) {
var key = WebInspector.IndexedDBModel.idbKeyFromKey(dataEntries[i].key);
var primaryKey = WebInspector.IndexedDBModel.idbKeyFromKey(dataEntries[i].primaryKey);
var value = WebInspector.RemoteObject.fromPayload(dataEntries[i].value);
entries.push(new WebInspector.IndexedDBModel.Entry(key, primaryKey, value));
}
callback(entries, hasMore);
}
|
@param {Array.<IndexedDBAgent.DataEntry>} dataEntries
@param {boolean} hasMore
|
innerCallback
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/IndexedDBModel.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/IndexedDBModel.js
|
MIT
|
function innerCallback(error)
{
if (error) {
console.error("IndexedDBAgent error: " + error);
return;
}
}
|
@param {string} frameId
@param {function(IndexedDBAgent.SecurityOriginWithDatabaseNames)} callback
|
innerCallback
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/IndexedDBModel.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/IndexedDBModel.js
|
MIT
|
function innerCallback(error)
{
if (error) {
console.error("IndexedDBAgent error: " + error);
return;
}
}
|
@param {string} frameId
@param {string} databaseName
@param {function(IndexedDBAgent.DatabaseWithObjectStores)} callback
|
innerCallback
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/IndexedDBModel.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/IndexedDBModel.js
|
MIT
|
function innerCallback(error)
{
if (error) {
console.error("IndexedDBAgent error: " + error);
return;
}
}
|
@param {string} frameId
@param {string} databaseName
@param {string} objectStoreName
@param {string} indexName
@param {webkitIDBKeyRange} idbKeyRange
@param {number} skipCount
@param {number} pageSize
@param {function(Array.<IndexedDBAgent.DataEntry>, boolean)} callback
|
innerCallback
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/IndexedDBModel.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/IndexedDBModel.js
|
MIT
|
function callback(entries, hasMore)
{
this.clear();
this._entries = entries;
for (var i = 0; i < entries.length; ++i) {
var data = {};
data["number"] = i + skipCount;
data["key"] = entries[i].key;
data["primaryKey"] = entries[i].primaryKey;
data["value"] = entries[i].value;
var primaryKey = JSON.stringify(this._isIndex ? entries[i].primaryKey : entries[i].key);
var valueTitle = this._objectStore.name + "[" + primaryKey + "]";
var node = new WebInspector.IDBDataGridNode(valueTitle, data);
this._dataGrid.appendChild(node);
}
this._pageBackButton.disabled = skipCount === 0;
this._pageForwardButton.disabled = !hasMore;
}
|
@param {Array.<WebInspector.IndexedDBModel.Entry>} entries
@param {boolean} hasMore
|
callback
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/IndexedDBViews.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/IndexedDBViews.js
|
MIT
|
get statusBarItems()
{
return [this._refreshButton.element];
}
|
@param {Array.<WebInspector.IndexedDBModel.Entry>} entries
@param {boolean} hasMore
|
statusBarItems
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/IndexedDBViews.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/IndexedDBViews.js
|
MIT
|
function isLogAvailable()
{
return WebInspector.ConsoleMessage && WebInspector.RemoteObject && self.console;
}
|
@param {string=} messageLevel
@param {boolean=} showConsole
|
isLogAvailable
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/inspector.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/inspector.js
|
MIT
|
function flushQueue()
{
var queued = WebInspector.log.queued;
if (!queued)
return;
for (var i = 0; i < queued.length; ++i)
logMessage(queued[i]);
delete WebInspector.log.queued;
}
|
@param {string=} messageLevel
@param {boolean=} showConsole
|
flushQueue
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/inspector.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/inspector.js
|
MIT
|
function flushQueueIfAvailable()
{
if (!isLogAvailable())
return;
clearInterval(WebInspector.log.interval);
delete WebInspector.log.interval;
flushQueue();
}
|
@param {string=} messageLevel
@param {boolean=} showConsole
|
flushQueueIfAvailable
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/inspector.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/inspector.js
|
MIT
|
function logMessage(message)
{
// post the message
var msg = WebInspector.ConsoleMessage.create(
WebInspector.ConsoleMessage.MessageSource.Other,
messageLevel || WebInspector.ConsoleMessage.MessageLevel.Debug,
message);
self.console.addMessage(msg);
if (showConsole)
WebInspector.showConsole();
}
|
@param {string=} messageLevel
@param {boolean=} showConsole
|
logMessage
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/inspector.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/inspector.js
|
MIT
|
get uiSourceCode()
{
return this._uiSourceCode;
}
|
@constructor
@extends {WebInspector.SourceFrame}
@param {WebInspector.ScriptsPanel} scriptsPanel
@param {WebInspector.DebuggerPresentationModel} model
@param {WebInspector.UISourceCode} uiSourceCode
|
uiSourceCode
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/JavaScriptSourceFrame.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/JavaScriptSourceFrame.js
|
MIT
|
function mycallback(mimeType, content)
{
this._originalContent = content;
callback(mimeType, content);
}
|
@constructor
@extends {WebInspector.SourceFrame}
@param {WebInspector.ScriptsPanel} scriptsPanel
@param {WebInspector.DebuggerPresentationModel} model
@param {WebInspector.UISourceCode} uiSourceCode
|
mycallback
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/JavaScriptSourceFrame.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/JavaScriptSourceFrame.js
|
MIT
|
function addConditionalBreakpoint()
{
this.addBreakpoint(lineNumber, true, true, true, false);
function didEditBreakpointCondition(committed, condition)
{
this.removeBreakpoint(lineNumber);
if (committed)
this._setBreakpoint(lineNumber, condition, true);
}
this._editBreakpointCondition(lineNumber, "", didEditBreakpointCondition.bind(this));
}
|
@constructor
@extends {WebInspector.SourceFrame}
@param {WebInspector.ScriptsPanel} scriptsPanel
@param {WebInspector.DebuggerPresentationModel} model
@param {WebInspector.UISourceCode} uiSourceCode
|
addConditionalBreakpoint
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/JavaScriptSourceFrame.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/JavaScriptSourceFrame.js
|
MIT
|
function didEditBreakpointCondition(committed, condition)
{
this.removeBreakpoint(lineNumber);
if (committed)
this._setBreakpoint(lineNumber, condition, true);
}
|
@constructor
@extends {WebInspector.SourceFrame}
@param {WebInspector.ScriptsPanel} scriptsPanel
@param {WebInspector.DebuggerPresentationModel} model
@param {WebInspector.UISourceCode} uiSourceCode
|
didEditBreakpointCondition
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/JavaScriptSourceFrame.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/JavaScriptSourceFrame.js
|
MIT
|
function editBreakpointCondition()
{
function didEditBreakpointCondition(committed, condition)
{
if (committed)
this._model.updateBreakpoint(this._uiSourceCode, lineNumber, condition, breakpoint.enabled);
}
this._editBreakpointCondition(lineNumber, breakpoint.condition, didEditBreakpointCondition.bind(this));
}
|
@constructor
@extends {WebInspector.SourceFrame}
@param {WebInspector.ScriptsPanel} scriptsPanel
@param {WebInspector.DebuggerPresentationModel} model
@param {WebInspector.UISourceCode} uiSourceCode
|
editBreakpointCondition
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/JavaScriptSourceFrame.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/JavaScriptSourceFrame.js
|
MIT
|
function didEditBreakpointCondition(committed, condition)
{
if (committed)
this._model.updateBreakpoint(this._uiSourceCode, lineNumber, condition, breakpoint.enabled);
}
|
@constructor
@extends {WebInspector.SourceFrame}
@param {WebInspector.ScriptsPanel} scriptsPanel
@param {WebInspector.DebuggerPresentationModel} model
@param {WebInspector.UISourceCode} uiSourceCode
|
didEditBreakpointCondition
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/JavaScriptSourceFrame.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/JavaScriptSourceFrame.js
|
MIT
|
function setBreakpointEnabled(enabled)
{
this._model.updateBreakpoint(this._uiSourceCode, lineNumber, breakpoint.condition, enabled);
}
|
@constructor
@extends {WebInspector.SourceFrame}
@param {WebInspector.ScriptsPanel} scriptsPanel
@param {WebInspector.DebuggerPresentationModel} model
@param {WebInspector.UISourceCode} uiSourceCode
|
setBreakpointEnabled
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/JavaScriptSourceFrame.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/JavaScriptSourceFrame.js
|
MIT
|
function showObjectPopover(result, wasThrown)
{
if (!this._model.paused) {
this._popoverHelper.hidePopover();
return;
}
showCallback(WebInspector.RemoteObject.fromPayload(result), wasThrown, this._highlightElement);
// Popover may have been removed by showCallback().
if (this._highlightElement)
this._highlightElement.addStyleClass("source-frame-eval-expression");
}
|
@constructor
@extends {WebInspector.SourceFrame}
@param {WebInspector.ScriptsPanel} scriptsPanel
@param {WebInspector.DebuggerPresentationModel} model
@param {WebInspector.UISourceCode} uiSourceCode
|
showObjectPopover
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/JavaScriptSourceFrame.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/JavaScriptSourceFrame.js
|
MIT
|
function finishEditing(committed, element, newText)
{
this.textViewer.removeDecoration(lineNumber, this._conditionElement);
delete this._conditionEditorElement;
delete this._conditionElement;
callback(committed, newText);
}
|
@constructor
@extends {WebInspector.SourceFrame}
@param {WebInspector.ScriptsPanel} scriptsPanel
@param {WebInspector.DebuggerPresentationModel} model
@param {WebInspector.UISourceCode} uiSourceCode
|
finishEditing
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/JavaScriptSourceFrame.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/JavaScriptSourceFrame.js
|
MIT
|
get CtrlOrMeta()
{
// "default" command/ctrl key for platform, Command on Mac, Ctrl on other platforms
return WebInspector.isMac() ? this.Meta : this.Ctrl;
}
|
Constants for encoding modifier key set as a bit mask.
@see #_makeKeyFromCodeAndModifiers
|
CtrlOrMeta
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/KeyboardShortcut.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/KeyboardShortcut.js
|
MIT
|
function getDocumentCount(entry)
{
return entry.documentCount;
}
|
@param {WebInspector.TimelinePanel} timelinePanel
@param {number} sidebarWidth
@constructor
|
getDocumentCount
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/MemoryStatistics.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/MemoryStatistics.js
|
MIT
|
function getNodeCount(entry)
{
return entry.nodeCount;
}
|
@param {WebInspector.TimelinePanel} timelinePanel
@param {number} sidebarWidth
@constructor
|
getNodeCount
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/MemoryStatistics.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/MemoryStatistics.js
|
MIT
|
function getListenerCount(entry)
{
return entry.listenerCount;
}
|
@param {WebInspector.TimelinePanel} timelinePanel
@param {number} sidebarWidth
@constructor
|
getListenerCount
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/MemoryStatistics.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/MemoryStatistics.js
|
MIT
|
function callbackWrapper(error, content, contentEncoded)
{
if (error)
callback(null, false);
else
callback(content, content && contentEncoded);
}
|
@param {WebInspector.Resource} resource
@param {function(?string, boolean)} callback
|
callbackWrapper
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/NetworkManager.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/NetworkManager.js
|
MIT
|
function callback(error)
{
this.dispatchEventToListeners(WebInspector.NetworkManager.EventTypes.ResourceTrackingEnabled);
}
|
@param {WebInspector.Resource} resource
@param {function(?string, boolean)} callback
|
callback
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/NetworkManager.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/NetworkManager.js
|
MIT
|
function callback(error)
{
this.dispatchEventToListeners(WebInspector.NetworkManager.EventTypes.ResourceTrackingDisabled);
}
|
@param {WebInspector.Resource} resource
@param {function(?string, boolean)} callback
|
callback
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/NetworkManager.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/NetworkManager.js
|
MIT
|
function showObjectPopover(result, wasThrown, anchorOverride)
{
if (popover.disposed)
return;
if (wasThrown) {
this.hidePopover();
return;
}
var anchorElement = anchorOverride || element;
var popoverContentElement = null;
if (result.type !== "object") {
popoverContentElement = document.createElement("span");
popoverContentElement.className = "monospace console-formatted-" + result.type;
popoverContentElement.style.whiteSpace = "pre";
popoverContentElement.textContent = result.description;
if (result.type === "function") {
function didGetDetails(error, response)
{
if (error) {
console.error(error);
return;
}
var container = document.createElement("div");
container.style.display = "inline-block";
var title = container.createChild("div", "function-popover-title source-code");
var functionName = title.createChild("span", "function-name");
functionName.textContent = response.name || response.inferredName || response.displayName || WebInspector.UIString("(anonymous function)");
this._linkifier = WebInspector.debuggerPresentationModel.createLinkifier();
var link = this._linkifier.linkifyRawLocation(response.location, "function-location-link");
if (link)
title.appendChild(link);
container.appendChild(popoverContentElement);
popover.show(container, anchorElement);
}
DebuggerAgent.getFunctionDetails(result.objectId, didGetDetails.bind(this));
return;
}
if (result.type === "string")
popoverContentElement.textContent = "\"" + popoverContentElement.textContent + "\"";
popover.show(popoverContentElement, anchorElement);
} else {
popoverContentElement = document.createElement("div");
this._titleElement = document.createElement("div");
this._titleElement.className = "source-frame-popover-title monospace";
this._titleElement.textContent = result.description;
popoverContentElement.appendChild(this._titleElement);
var section = new WebInspector.ObjectPropertiesSection(result);
// For HTML DOM wrappers, append "#id" to title, if not empty.
if (result.description.substr(0, 4) === "HTML") {
this._sectionUpdateProperties = section.updateProperties.bind(section);
section.updateProperties = this._updateHTMLId.bind(this);
}
section.expanded = true;
section.element.addStyleClass("source-frame-popover-tree");
section.headerElement.addStyleClass("hidden");
popoverContentElement.appendChild(section.element);
const popoverWidth = 300;
const popoverHeight = 250;
popover.show(popoverContentElement, anchorElement, popoverWidth, popoverHeight);
}
}
|
@param {WebInspector.RemoteObject} result
@param {boolean} wasThrown
@param {Element=} anchorOverride
|
showObjectPopover
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/ObjectPopoverHelper.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ObjectPopoverHelper.js
|
MIT
|
function didGetDetails(error, response)
{
if (error) {
console.error(error);
return;
}
var container = document.createElement("div");
container.style.display = "inline-block";
var title = container.createChild("div", "function-popover-title source-code");
var functionName = title.createChild("span", "function-name");
functionName.textContent = response.name || response.inferredName || response.displayName || WebInspector.UIString("(anonymous function)");
this._linkifier = WebInspector.debuggerPresentationModel.createLinkifier();
var link = this._linkifier.linkifyRawLocation(response.location, "function-location-link");
if (link)
title.appendChild(link);
container.appendChild(popoverContentElement);
popover.show(container, anchorElement);
}
|
@param {WebInspector.RemoteObject} result
@param {boolean} wasThrown
@param {Element=} anchorOverride
|
didGetDetails
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/ObjectPopoverHelper.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ObjectPopoverHelper.js
|
MIT
|
function callback(properties)
{
if (!properties)
return;
this.updateProperties(properties);
}
|
@constructor
@extends {WebInspector.PropertiesSection}
@param {WebInspector.RemoteObject=} object
@param {string=} title
@param {string=} subtitle
@param {string=} emptyPlaceholder
@param {boolean=} ignoreHasOwnProperty
@param {Array.<WebInspector.RemoteObjectProperty>=} extraProperties
@param {function()=} treeElementConstructor
|
callback
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/ObjectPropertiesSection.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ObjectPropertiesSection.js
|
MIT
|
function callback(properties)
{
this.removeChildren();
if (!properties)
return;
properties.sort(WebInspector.ObjectPropertiesSection.CompareProperties);
for (var i = 0; i < properties.length; ++i) {
if (this.treeOutline.section.skipProto && properties[i].name === "__proto__")
continue;
properties[i].parentObject = this.property.value;
this.appendChild(new this.treeOutline.section.treeElementConstructor(properties[i]));
}
}
|
@constructor
@extends {TreeElement}
@param {WebInspector.RemoteObjectProperty} property
|
callback
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/ObjectPropertiesSection.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ObjectPropertiesSection.js
|
MIT
|
function selectNode(nodeId)
{
if (nodeId)
WebInspector.domAgent.inspectElement(nodeId);
}
|
@constructor
@extends {TreeElement}
@param {WebInspector.RemoteObjectProperty} property
|
selectNode
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/ObjectPropertiesSection.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ObjectPropertiesSection.js
|
MIT
|
function revealElement()
{
this.property.value.pushNodeToFrontend(selectNode);
}
|
@constructor
@extends {TreeElement}
@param {WebInspector.RemoteObjectProperty} property
|
revealElement
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/ObjectPropertiesSection.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ObjectPropertiesSection.js
|
MIT
|
function didGetDetails(error, response)
{
if (error) {
console.error(error);
return;
}
WebInspector.panels.scripts.showFunctionDefinition(response.location);
}
|
@constructor
@extends {TreeElement}
@param {WebInspector.RemoteObjectProperty} property
|
didGetDetails
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/ObjectPropertiesSection.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ObjectPropertiesSection.js
|
MIT
|
function revealFunction()
{
DebuggerAgent.getFunctionDetails(this.property.value.objectId, didGetDetails.bind(this));
}
|
@constructor
@extends {TreeElement}
@param {WebInspector.RemoteObjectProperty} property
|
revealFunction
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/ObjectPropertiesSection.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ObjectPropertiesSection.js
|
MIT
|
get visible()
{
return this._visible;
}
|
@param {number=} preferredWidth
@param {number=} preferredHeight
|
visible
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/Popover.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/Popover.js
|
MIT
|
get disposed()
{
return this._disposed;
}
|
@param {number=} preferredWidth
@param {number=} preferredHeight
|
disposed
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/Popover.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/Popover.js
|
MIT
|
function doHide()
{
self._hidePopover();
delete self._hidePopoverTimer;
}
|
@constructor
@param {Element} panelElement
@param {function(Element, Event):Element|undefined} getAnchor
@param {function(Element, WebInspector.Popover):undefined} showPopover
@param {function()=} onHide
@param {boolean=} disableOnClick
|
doHide
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/Popover.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/Popover.js
|
MIT
|
function didCreateSourceMapping(sourceMapping)
{
this._updatingSourceMapping = false;
if (sourceMapping && !this._updateNeeded)
this._saveSourceMapping(sourceMapping);
else
this._updateSourceMapping();
}
|
@this {WebInspector.RawSourceCode}
@param {WebInspector.RawSourceCode.SourceMapping} sourceMapping
|
didCreateSourceMapping
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/RawSourceCode.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/RawSourceCode.js
|
MIT
|
function didRequestContent(mimeType, content)
{
/**
* @this {WebInspector.RawSourceCode}
* @param {string} formattedContent
* @param {WebInspector.FormattedSourceMapping} mapping
*/
function didFormatContent(formattedContent, mapping)
{
var contentProvider = new WebInspector.StaticContentProvider(mimeType, formattedContent)
var uiSourceCode = this._createUISourceCode("deobfuscated:" + this.url, this.url, contentProvider);
var sourceMapping = new WebInspector.RawSourceCode.FormattedSourceMapping(this, uiSourceCode, mapping);
callback(sourceMapping);
}
this._formatter.formatContent(mimeType, content, didFormatContent.bind(this));
}
|
@this {WebInspector.RawSourceCode}
@param {string} mimeType
@param {string} content
|
didRequestContent
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/RawSourceCode.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/RawSourceCode.js
|
MIT
|
function didFormatContent(formattedContent, mapping)
{
var contentProvider = new WebInspector.StaticContentProvider(mimeType, formattedContent)
var uiSourceCode = this._createUISourceCode("deobfuscated:" + this.url, this.url, contentProvider);
var sourceMapping = new WebInspector.RawSourceCode.FormattedSourceMapping(this, uiSourceCode, mapping);
callback(sourceMapping);
}
|
@this {WebInspector.RawSourceCode}
@param {string} formattedContent
@param {WebInspector.FormattedSourceMapping} mapping
|
didFormatContent
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/RawSourceCode.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/RawSourceCode.js
|
MIT
|
function mycallback(error, object)
{
if (!callback)
return;
if (error || !object)
callback(null);
else
callback(WebInspector.RemoteObject.fromPayload(object));
}
|
@param {?Protocol.Error} error
@param {RuntimeAgent.RemoteObject} object
|
mycallback
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/RemoteObject.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/RemoteObject.js
|
MIT
|
function remoteObjectBinder(error, properties)
{
if (error) {
callback(null);
return;
}
var result = [];
for (var i = 0; properties && i < properties.length; ++i) {
var property = properties[i];
if (property.get || property.set) {
if (property.get)
result.push(new WebInspector.RemoteObjectProperty("get " + property.name, WebInspector.RemoteObject.fromPayload(property.get), property));
if (property.set)
result.push(new WebInspector.RemoteObjectProperty("set " + property.name, WebInspector.RemoteObject.fromPayload(property.set), property));
} else
result.push(new WebInspector.RemoteObjectProperty(property.name, WebInspector.RemoteObject.fromPayload(property.value), property));
}
callback(result);
}
|
@param {?Protocol.Error} error
@param {Array.<WebInspector.RemoteObjectProperty>} properties
|
remoteObjectBinder
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/RemoteObject.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/RemoteObject.js
|
MIT
|
function evaluatedCallback(error, result, wasThrown)
{
if (error || wasThrown) {
callback(error || result.description);
return;
}
function setPropertyValue(propertyName, propertyValue)
{
this[propertyName] = propertyValue;
}
delete result.description; // Optimize on traffic.
RuntimeAgent.callFunctionOn(this._objectId, setPropertyValue.toString(), [{ value:name }, result], undefined, propertySetCallback.bind(this));
if (result._objectId)
RuntimeAgent.releaseObject(result._objectId);
}
|
@param {?Protocol.Error} error
@param {RuntimeAgent.RemoteObject} result
@param {boolean=} wasThrown
|
evaluatedCallback
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/RemoteObject.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/RemoteObject.js
|
MIT
|
function setPropertyValue(propertyName, propertyValue)
{
this[propertyName] = propertyValue;
}
|
@param {?Protocol.Error} error
@param {RuntimeAgent.RemoteObject} result
@param {boolean=} wasThrown
|
setPropertyValue
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/RemoteObject.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/RemoteObject.js
|
MIT
|
function propertySetCallback(error, result, wasThrown)
{
if (error || wasThrown) {
callback(error || result.description);
return;
}
callback();
}
|
@param {?Protocol.Error} error
@param {RuntimeAgent.RemoteObject} result
@param {boolean=} wasThrown
|
propertySetCallback
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/RemoteObject.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/RemoteObject.js
|
MIT
|
function mycallback(error, result, wasThrown)
{
callback((error || wasThrown) ? null : WebInspector.RemoteObject.fromPayload(result));
}
|
@param {function(*)} functionDeclaration
@param {Array.<RuntimeAgent.CallArgument>|undefined} args
@param {function(?WebInspector.RemoteObject)} callback
|
mycallback
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/RemoteObject.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/RemoteObject.js
|
MIT
|
function mycallback(error, result, wasThrown)
{
callback((error || wasThrown) ? null : result.value);
}
|
@param {function(*)} functionDeclaration
@param {Array.<RuntimeAgent.CallArgument>|undefined} args
@param {function(*)} callback
|
mycallback
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/RemoteObject.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/RemoteObject.js
|
MIT
|
function persist()
{
window.localStorage["resource-history"] = JSON.stringify(filteredRegistry);
}
|
@param {number} type
@param {WebInspector.ResourceDomainModelBinding} binding
|
persist
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/Resource.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/Resource.js
|
MIT
|
function parseNameValue(pair)
{
var parameter = {};
var splitPair = pair.split("=", 2);
parameter.name = splitPair[0];
if (splitPair.length === 1)
parameter.value = "";
else
parameter.value = splitPair[1];
return parameter;
}
|
@param {string} queryString
@return {Array.<Object>}
|
parseNameValue
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/Resource.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/Resource.js
|
MIT
|
function callbackWrapper(error, searchMatches)
{
callback(searchMatches || []);
}
|
@param {?Protocol.Error} error
@param {Array.<PageAgent.SearchMatch>} searchMatches
|
callbackWrapper
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/Resource.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/Resource.js
|
MIT
|
get displayName()
{
return this._displayName;
}
|
@constructor
@extends {TreeElement}
@param {boolean=} hasChildren
@param {boolean=} noIcon
|
displayName
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/ResourcesPanel.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ResourcesPanel.js
|
MIT
|
get titleText()
{
return this._titleText;
}
|
@constructor
@extends {TreeElement}
@param {boolean=} hasChildren
@param {boolean=} noIcon
|
titleText
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/ResourcesPanel.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ResourcesPanel.js
|
MIT
|
set titleText(titleText)
{
this._titleText = titleText;
this._updateTitle();
}
|
@constructor
@extends {TreeElement}
@param {boolean=} hasChildren
@param {boolean=} noIcon
|
titleText
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/ResourcesPanel.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ResourcesPanel.js
|
MIT
|
get subtitleText()
{
return this._subtitleText;
}
|
@constructor
@extends {TreeElement}
@param {boolean=} hasChildren
@param {boolean=} noIcon
|
subtitleText
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/ResourcesPanel.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ResourcesPanel.js
|
MIT
|
set subtitleText(subtitleText)
{
this._subtitleText = subtitleText;
this._updateSubtitle();
}
|
@constructor
@extends {TreeElement}
@param {boolean=} hasChildren
@param {boolean=} noIcon
|
subtitleText
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/ResourcesPanel.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ResourcesPanel.js
|
MIT
|
get searchMatchesCount()
{
return 0;
}
|
@constructor
@extends {TreeElement}
@param {boolean=} hasChildren
@param {boolean=} noIcon
|
searchMatchesCount
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/ResourcesPanel.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ResourcesPanel.js
|
MIT
|
get itemURL()
{
return "category://" + this._categoryName;
}
|
@constructor
@extends {WebInspector.BaseStorageTreeElement}
@param {boolean=} noIcon
|
itemURL
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/ResourcesPanel.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ResourcesPanel.js
|
MIT
|
get itemURL()
{
return "indexedDB://" + this._databaseId.securityOrigin + "/" + this._databaseId.name;
}
|
@constructor
@extends {WebInspector.BaseStorageTreeElement}
@param {WebInspector.ResourcesPanel} storagePanel
@param {WebInspector.IndexedDBModel} model
@param {WebInspector.IndexedDBModel.DatabaseId} databaseId
|
itemURL
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/ResourcesPanel.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ResourcesPanel.js
|
MIT
|
get itemURL()
{
return "indexedDB://" + this._databaseId.securityOrigin + "/" + this._databaseId.name + "/" + this._objectStore.name;
}
|
@constructor
@extends {WebInspector.BaseStorageTreeElement}
@param {WebInspector.ResourcesPanel} storagePanel
@param {WebInspector.IndexedDBModel} model
@param {WebInspector.IndexedDBModel.DatabaseId} databaseId
@param {WebInspector.IndexedDBModel.ObjectStore} objectStore
|
itemURL
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/ResourcesPanel.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ResourcesPanel.js
|
MIT
|
get itemURL()
{
return "indexedDB://" + this._databaseId.securityOrigin + "/" + this._databaseId.name + "/" + this._objectStore.name + "/" + this._index.name;
}
|
@constructor
@extends {WebInspector.BaseStorageTreeElement}
@param {WebInspector.ResourcesPanel} storagePanel
@param {WebInspector.IndexedDBModel} model
@param {WebInspector.IndexedDBModel.DatabaseId} databaseId
@param {WebInspector.IndexedDBModel.ObjectStore} objectStore
@param {WebInspector.IndexedDBModel.Index} index
|
itemURL
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/ResourcesPanel.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ResourcesPanel.js
|
MIT
|
function callback(resource)
{
resource.clearErrorsAndWarnings();
}
|
@param {WebInspector.ConsoleMessage} msg
@param {WebInspector.Resource} resource
|
callback
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/ResourceTreeModel.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ResourceTreeModel.js
|
MIT
|
function filter(resource)
{
if (resource.url === url) {
result = resource;
return true;
}
}
|
@param {string} url
@return {?WebInspector.Resource}
|
filter
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/ResourceTreeModel.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ResourceTreeModel.js
|
MIT
|
function callback(resource)
{
if (resource.path === url) {
resourceURL = resource.url;
return true;
}
}
|
@return {?string} null if the specified resource MUST NOT have a URL (e.g. "javascript:...")
|
callback
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/ResourceUtils.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ResourceUtils.js
|
MIT
|
function didGetScriptSource(error, source)
{
this._source = error ? "" : source;
callback(this._source);
}
|
@this {WebInspector.Script}
@param {?Protocol.Error} error
@param {string} source
|
didGetScriptSource
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/Script.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/Script.js
|
MIT
|
function innerCallback(error, searchMatches)
{
if (error)
console.error(error);
var result = [];
for (var i = 0; i < searchMatches.length; ++i) {
var searchMatch = new WebInspector.ContentProvider.SearchMatch(searchMatches[i].lineNumber, searchMatches[i].lineContent);
result.push(searchMatch);
}
callback(result || []);
}
|
@this {WebInspector.Script}
@param {?Protocol.Error} error
@param {Array.<PageAgent.SearchMatch>} searchMatches
|
innerCallback
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/Script.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/Script.js
|
MIT
|
function didEditScriptSource(error, callFrames)
{
if (!error)
this._source = newSource;
callback(error, callFrames);
}
|
@this {WebInspector.Script}
@param {?Protocol.Error} error
@param {Array.<DebuggerAgent.CallFrame>|undefined} callFrames
|
didEditScriptSource
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/Script.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/Script.js
|
MIT
|
function typeWeight(treeElement)
{
if (treeElement instanceof WebInspector.NavigatorFolderTreeElement) {
if (treeElement.isDomain)
return 1;
return 2;
}
return 3;
}
|
@constructor
@extends {TreeOutline}
@param {Element} element
|
typeWeight
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/ScriptsNavigator.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ScriptsNavigator.js
|
MIT
|
function viewGetter()
{
return this.visibleView;
}
|
@constructor
@implements {WebInspector.EditorContainerDelegate}
@extends {WebInspector.Panel}
|
viewGetter
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/ScriptsPanel.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ScriptsPanel.js
|
MIT
|
get toolbarItemLabel()
{
return WebInspector.UIString("Scripts");
}
|
@constructor
@implements {WebInspector.EditorContainerDelegate}
@extends {WebInspector.Panel}
|
toolbarItemLabel
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/ScriptsPanel.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ScriptsPanel.js
|
MIT
|
get statusBarItems()
{
return [this.enableToggleButton.element, this._pauseOnExceptionButton.element, this._toggleFormatSourceButton.element, this._scriptViewStatusBarItemsContainer];
}
|
@constructor
@implements {WebInspector.EditorContainerDelegate}
@extends {WebInspector.Panel}
|
statusBarItems
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/ScriptsPanel.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ScriptsPanel.js
|
MIT
|
get defaultFocusedElement()
{
return this._fileSelector.defaultFocusedElement;
}
|
@constructor
@implements {WebInspector.EditorContainerDelegate}
@extends {WebInspector.Panel}
|
defaultFocusedElement
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/ScriptsPanel.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ScriptsPanel.js
|
MIT
|
get paused()
{
return this._paused;
}
|
@constructor
@implements {WebInspector.EditorContainerDelegate}
@extends {WebInspector.Panel}
|
paused
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/ScriptsPanel.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ScriptsPanel.js
|
MIT
|
function contentCallback(mimeType, content)
{
if (this._outlineWorker)
this._outlineWorker.terminate();
this._outlineWorker = new Worker("ScriptFormatterWorker.js");
this._outlineWorker.onmessage = this._didBuildOutlineChunk.bind(this);
const method = "outline";
this._outlineWorker.postMessage({ method: method, params: { content: content, id: this.visibleView.uiSourceCode.id } });
}
|
@param {WebInspector.UISourceCode} uiSourceCode
@return {WebInspector.SourceFrame}
|
contentCallback
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/ScriptsPanel.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ScriptsPanel.js
|
MIT
|
get defaultFocusedElement()
{
return this._filesSelectElement;
}
|
@implements {WebInspector.ScriptsPanel.FileSelector}
@extends {WebInspector.Object}
@constructor
|
defaultFocusedElement
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/ScriptsPanel.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ScriptsPanel.js
|
MIT
|
function filterOutContentScripts(uiSourceCode)
{
return !uiSourceCode.isContentScript;
}
|
@param {WebInspector.SearchConfig} searchConfig
@param {function(Object)} searchResultCallback
@param {function(boolean)} searchFinishedCallback
|
filterOutContentScripts
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/ScriptsSearchScope.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ScriptsSearchScope.js
|
MIT
|
function continueSearch()
{
// FIXME: Enable support for counting matches for incremental search.
// FIXME: Enable support for bounding search results/matches number to keep inspector responsive.
if (uiSourceCodeIndex < uiSourceCodes.length) {
var uiSourceCode = uiSourceCodes[uiSourceCodeIndex++];
uiSourceCode.searchInContent(searchConfig.query, !searchConfig.ignoreCase, searchConfig.isRegex, searchCallbackWrapper.bind(this, this._searchId, uiSourceCode));
} else
searchFinishedCallback(true);
}
|
@param {WebInspector.SearchConfig} searchConfig
@param {function(Object)} searchResultCallback
@param {function(boolean)} searchFinishedCallback
|
continueSearch
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/ScriptsSearchScope.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ScriptsSearchScope.js
|
MIT
|
function searchCallbackWrapper(searchId, uiSourceCode, searchMatches)
{
if (searchId !== this._searchId) {
searchFinishedCallback(false);
return;
}
var searchResult = new WebInspector.FileBasedSearchResultsPane.SearchResult(uiSourceCode, searchMatches);
searchResultCallback(searchResult);
continueSearch.call(this);
}
|
@param {WebInspector.SearchConfig} searchConfig
@param {function(Object)} searchResultCallback
@param {function(boolean)} searchFinishedCallback
|
searchCallbackWrapper
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/ScriptsSearchScope.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/ScriptsSearchScope.js
|
MIT
|
get small()
{
return this._small;
}
|
@constructor
@extends {TreeElement}
@param {string=} subtitle
@param {Object=} representedObject
@param {boolean=} hasChildren
|
small
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/SidebarTreeElement.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/SidebarTreeElement.js
|
MIT
|
set small(x)
{
this._small = x;
if (this._listItemNode) {
if (this._small)
this._listItemNode.addStyleClass("small");
else
this._listItemNode.removeStyleClass("small");
}
}
|
@constructor
@extends {TreeElement}
@param {string=} subtitle
@param {Object=} representedObject
@param {boolean=} hasChildren
|
small
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/SidebarTreeElement.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/SidebarTreeElement.js
|
MIT
|
get mainTitle()
{
return this._mainTitle;
}
|
@constructor
@extends {TreeElement}
@param {string=} subtitle
@param {Object=} representedObject
@param {boolean=} hasChildren
|
mainTitle
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/SidebarTreeElement.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/SidebarTreeElement.js
|
MIT
|
set mainTitle(x)
{
this._mainTitle = x;
this.refreshTitles();
}
|
@constructor
@extends {TreeElement}
@param {string=} subtitle
@param {Object=} representedObject
@param {boolean=} hasChildren
|
mainTitle
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/SidebarTreeElement.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/SidebarTreeElement.js
|
MIT
|
get subtitle()
{
return this._subtitle;
}
|
@constructor
@extends {TreeElement}
@param {string=} subtitle
@param {Object=} representedObject
@param {boolean=} hasChildren
|
subtitle
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/SidebarTreeElement.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/SidebarTreeElement.js
|
MIT
|
set subtitle(x)
{
this._subtitle = x;
this.refreshTitles();
}
|
@constructor
@extends {TreeElement}
@param {string=} subtitle
@param {Object=} representedObject
@param {boolean=} hasChildren
|
subtitle
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/SidebarTreeElement.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/SidebarTreeElement.js
|
MIT
|
get bubbleText()
{
return this._bubbleText;
}
|
@constructor
@extends {TreeElement}
@param {string=} subtitle
@param {Object=} representedObject
@param {boolean=} hasChildren
|
bubbleText
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/SidebarTreeElement.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/SidebarTreeElement.js
|
MIT
|
set bubbleText(x)
{
if (!this.bubbleElement) {
this.bubbleElement = document.createElement("div");
this.bubbleElement.className = "bubble";
this.statusElement.appendChild(this.bubbleElement);
}
this._bubbleText = x;
this.bubbleElement.textContent = x;
}
|
@constructor
@extends {TreeElement}
@param {string=} subtitle
@param {Object=} representedObject
@param {boolean=} hasChildren
|
bubbleText
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/SidebarTreeElement.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/SidebarTreeElement.js
|
MIT
|
set wait(x)
{
if (x)
this._listItemNode.addStyleClass("wait");
else
this._listItemNode.removeStyleClass("wait");
}
|
@constructor
@extends {TreeElement}
@param {string=} subtitle
@param {Object=} representedObject
@param {boolean=} hasChildren
|
wait
|
javascript
|
node-pinus/pinus
|
tools/pinus-admin-web/public/front/SidebarTreeElement.js
|
https://github.com/node-pinus/pinus/blob/master/tools/pinus-admin-web/public/front/SidebarTreeElement.js
|
MIT
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.