OLD | NEW |
1 WebInspector.JavaScriptBreakpointsSidebarPane=function(breakpointManager,showSou
rceLineDelegate) | 1 WebInspector.JavaScriptBreakpointsSidebarPane=function(breakpointManager,showSou
rceLineDelegate) |
2 {WebInspector.SidebarPane.call(this,WebInspector.UIString("Breakpoints"));this.r
egisterRequiredCSS("breakpointsList.css");this._breakpointManager=breakpointMana
ger;this._showSourceLineDelegate=showSourceLineDelegate;this.listElement=documen
t.createElement("ol");this.listElement.className="breakpoint-list";this.emptyEle
ment=document.createElement("div");this.emptyElement.className="info";this.empty
Element.textContent=WebInspector.UIString("No Breakpoints");this.bodyElement.app
endChild(this.emptyElement);this._items=new Map();var breakpointLocations=this._
breakpointManager.allBreakpointLocations();for(var i=0;i<breakpointLocations.len
gth;++i) | 2 {WebInspector.SidebarPane.call(this,WebInspector.UIString("Breakpoints"));this.r
egisterRequiredCSS("breakpointsList.css");this._breakpointManager=breakpointMana
ger;this._showSourceLineDelegate=showSourceLineDelegate;this.listElement=documen
t.createElement("ol");this.listElement.className="breakpoint-list";this.emptyEle
ment=document.createElement("div");this.emptyElement.className="info";this.empty
Element.textContent=WebInspector.UIString("No Breakpoints");this.bodyElement.app
endChild(this.emptyElement);this._items=new Map();var breakpointLocations=this._
breakpointManager.allBreakpointLocations();for(var i=0;i<breakpointLocations.len
gth;++i) |
3 this._addBreakpoint(breakpointLocations[i].breakpoint,breakpointLocations[i].uiL
ocation);this._breakpointManager.addEventListener(WebInspector.BreakpointManager
.Events.BreakpointAdded,this._breakpointAdded,this);this._breakpointManager.addE
ventListener(WebInspector.BreakpointManager.Events.BreakpointRemoved,this._break
pointRemoved,this);this.emptyElement.addEventListener("contextmenu",this._emptyE
lementContextMenu.bind(this),true);} | 3 this._addBreakpoint(breakpointLocations[i].breakpoint,breakpointLocations[i].uiL
ocation);this._breakpointManager.addEventListener(WebInspector.BreakpointManager
.Events.BreakpointAdded,this._breakpointAdded,this);this._breakpointManager.addE
ventListener(WebInspector.BreakpointManager.Events.BreakpointRemoved,this._break
pointRemoved,this);this.emptyElement.addEventListener("contextmenu",this._emptyE
lementContextMenu.bind(this),true);} |
4 WebInspector.JavaScriptBreakpointsSidebarPane.prototype={_emptyElementContextMen
u:function(event) | 4 WebInspector.JavaScriptBreakpointsSidebarPane.prototype={_emptyElementContextMen
u:function(event) |
5 {var contextMenu=new WebInspector.ContextMenu(event);var breakpointActive=WebIns
pector.debuggerModel.breakpointsActive();var breakpointActiveTitle=breakpointAct
ive?WebInspector.UIString(WebInspector.useLowerCaseMenuTitles()?"Deactivate brea
kpoints":"Deactivate Breakpoints"):WebInspector.UIString(WebInspector.useLowerCa
seMenuTitles()?"Activate breakpoints":"Activate Breakpoints");contextMenu.append
Item(breakpointActiveTitle,WebInspector.debuggerModel.setBreakpointsActive.bind(
WebInspector.debuggerModel,!breakpointActive));contextMenu.show();},_breakpointA
dded:function(event) | 5 {var contextMenu=new WebInspector.ContextMenu(event);var breakpointActive=WebIns
pector.debuggerModel.breakpointsActive();var breakpointActiveTitle=breakpointAct
ive?WebInspector.UIString(WebInspector.useLowerCaseMenuTitles()?"Deactivate brea
kpoints":"Deactivate Breakpoints"):WebInspector.UIString(WebInspector.useLowerCa
seMenuTitles()?"Activate breakpoints":"Activate Breakpoints");contextMenu.append
Item(breakpointActiveTitle,WebInspector.debuggerModel.setBreakpointsActive.bind(
WebInspector.debuggerModel,!breakpointActive));contextMenu.show();},_breakpointA
dded:function(event) |
6 {this._breakpointRemoved(event);var breakpoint=(event.data.breakpoint);var uiLoc
ation=(event.data.uiLocation);this._addBreakpoint(breakpoint,uiLocation);},_addB
reakpoint:function(breakpoint,uiLocation) | 6 {this._breakpointRemoved(event);var breakpoint=(event.data.breakpoint);var uiLoc
ation=(event.data.uiLocation);this._addBreakpoint(breakpoint,uiLocation);},_addB
reakpoint:function(breakpoint,uiLocation) |
7 {var element=document.createElement("li");element.addStyleClass("cursor-pointer"
);element.addEventListener("contextmenu",this._breakpointContextMenu.bind(this,b
reakpoint),true);element.addEventListener("click",this._breakpointClicked.bind(t
his,uiLocation),false);var checkbox=document.createElement("input");checkbox.cla
ssName="checkbox-elem";checkbox.type="checkbox";checkbox.checked=breakpoint.enab
led();checkbox.addEventListener("click",this._breakpointCheckboxClicked.bind(thi
s,breakpoint),false);element.appendChild(checkbox);var labelElement=document.cre
ateTextNode(uiLocation.linkText());element.appendChild(labelElement);var snippet
Element=document.createElement("div");snippetElement.className="source-text mono
space";element.appendChild(snippetElement);function didRequestContent(content,co
ntentEncoded,mimeType) | 7 {var element=document.createElement("li");element.addStyleClass("cursor-pointer"
);element.addEventListener("contextmenu",this._breakpointContextMenu.bind(this,b
reakpoint),true);element.addEventListener("click",this._breakpointClicked.bind(t
his,uiLocation),false);var checkbox=document.createElement("input");checkbox.cla
ssName="checkbox-elem";checkbox.type="checkbox";checkbox.checked=breakpoint.enab
led();checkbox.addEventListener("click",this._breakpointCheckboxClicked.bind(thi
s,breakpoint),false);element.appendChild(checkbox);var labelElement=document.cre
ateTextNode(uiLocation.linkText());element.appendChild(labelElement);var snippet
Element=document.createElement("div");snippetElement.className="source-text mono
space";element.appendChild(snippetElement);function didRequestContent(content) |
8 {var lineEndings=content.lineEndings();if(uiLocation.lineNumber<lineEndings.leng
th) | 8 {var lineEndings=content.lineEndings();if(uiLocation.lineNumber<lineEndings.leng
th) |
9 snippetElement.textContent=content.substring(lineEndings[uiLocation.lineNumber-1
],lineEndings[uiLocation.lineNumber]);} | 9 snippetElement.textContent=content.substring(lineEndings[uiLocation.lineNumber-1
],lineEndings[uiLocation.lineNumber]);} |
10 uiLocation.uiSourceCode.requestContent(didRequestContent.bind(this));element._da
ta=uiLocation;var currentElement=this.listElement.firstChild;while(currentElemen
t){if(currentElement._data&&this._compareBreakpoints(currentElement._data,elemen
t._data)>0) | 10 uiLocation.uiSourceCode.requestContent(didRequestContent.bind(this));element._da
ta=uiLocation;var currentElement=this.listElement.firstChild;while(currentElemen
t){if(currentElement._data&&this._compareBreakpoints(currentElement._data,elemen
t._data)>0) |
11 break;currentElement=currentElement.nextSibling;} | 11 break;currentElement=currentElement.nextSibling;} |
12 this._addListElement(element,currentElement);var breakpointItem={};breakpointIte
m.element=element;breakpointItem.checkbox=checkbox;this._items.put(breakpoint,br
eakpointItem);this.expand();},_breakpointRemoved:function(event) | 12 this._addListElement(element,currentElement);var breakpointItem={};breakpointIte
m.element=element;breakpointItem.checkbox=checkbox;this._items.put(breakpoint,br
eakpointItem);this.expand();},_breakpointRemoved:function(event) |
13 {var breakpoint=(event.data.breakpoint);var uiLocation=(event.data.uiLocation);v
ar breakpointItem=this._items.get(breakpoint);if(!breakpointItem) | 13 {var breakpoint=(event.data.breakpoint);var uiLocation=(event.data.uiLocation);v
ar breakpointItem=this._items.get(breakpoint);if(!breakpointItem) |
14 return;this._items.remove(breakpoint);this._removeListElement(breakpointItem.ele
ment);},highlightBreakpoint:function(breakpoint) | 14 return;this._items.remove(breakpoint);this._removeListElement(breakpointItem.ele
ment);},highlightBreakpoint:function(breakpoint) |
15 {var breakpointItem=this._items.get(breakpoint);if(!breakpointItem) | 15 {var breakpointItem=this._items.get(breakpoint);if(!breakpointItem) |
16 return;breakpointItem.element.addStyleClass("breakpoint-hit");this._highlightedB
reakpointItem=breakpointItem;},clearBreakpointHighlight:function() | 16 return;breakpointItem.element.addStyleClass("breakpoint-hit");this._highlightedB
reakpointItem=breakpointItem;},clearBreakpointHighlight:function() |
17 {if(this._highlightedBreakpointItem){this._highlightedBreakpointItem.element.rem
oveStyleClass("breakpoint-hit");delete this._highlightedBreakpointItem;}},_break
pointClicked:function(uiLocation,event) | 17 {if(this._highlightedBreakpointItem){this._highlightedBreakpointItem.element.rem
oveStyleClass("breakpoint-hit");delete this._highlightedBreakpointItem;}},_break
pointClicked:function(uiLocation,event) |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 return false;},selectItem:function(itemIndex,promptValue) | 233 return false;},selectItem:function(itemIndex,promptValue) |
234 {},refresh:function() | 234 {},refresh:function() |
235 {this._refreshCallback();},rewriteQuery:function(query) | 235 {this._refreshCallback();},rewriteQuery:function(query) |
236 {return query;},dispose:function() | 236 {return query;},dispose:function() |
237 {}} | 237 {}} |
238 WebInspector.JavaScriptOutlineDialog=function(view,contentProvider) | 238 WebInspector.JavaScriptOutlineDialog=function(view,contentProvider) |
239 {WebInspector.SelectionDialogContentProvider.call(this);this._functionItems=[];t
his._view=view;contentProvider.requestContent(this._contentAvailable.bind(this))
;} | 239 {WebInspector.SelectionDialogContentProvider.call(this);this._functionItems=[];t
his._view=view;contentProvider.requestContent(this._contentAvailable.bind(this))
;} |
240 WebInspector.JavaScriptOutlineDialog.show=function(view,contentProvider) | 240 WebInspector.JavaScriptOutlineDialog.show=function(view,contentProvider) |
241 {if(WebInspector.Dialog.currentInstance()) | 241 {if(WebInspector.Dialog.currentInstance()) |
242 return null;var filteredItemSelectionDialog=new WebInspector.FilteredItemSelecti
onDialog(new WebInspector.JavaScriptOutlineDialog(view,contentProvider));WebInsp
ector.Dialog.show(view.element,filteredItemSelectionDialog);} | 242 return null;var filteredItemSelectionDialog=new WebInspector.FilteredItemSelecti
onDialog(new WebInspector.JavaScriptOutlineDialog(view,contentProvider));WebInsp
ector.Dialog.show(view.element,filteredItemSelectionDialog);} |
243 WebInspector.JavaScriptOutlineDialog.prototype={_contentAvailable:function(conte
nt,contentEncoded,mimeType) | 243 WebInspector.JavaScriptOutlineDialog.prototype={_contentAvailable:function(conte
nt) |
244 {this._outlineWorker=new Worker("ScriptFormatterWorker.js");this._outlineWorker.
onmessage=this._didBuildOutlineChunk.bind(this);const method="outline";this._out
lineWorker.postMessage({method:method,params:{content:content}});},_didBuildOutl
ineChunk:function(event) | 244 {this._outlineWorker=new Worker("ScriptFormatterWorker.js");this._outlineWorker.
onmessage=this._didBuildOutlineChunk.bind(this);const method="outline";this._out
lineWorker.postMessage({method:method,params:{content:content}});},_didBuildOutl
ineChunk:function(event) |
245 {var data=event.data;var chunk=data["chunk"];for(var i=0;i<chunk.length;++i) | 245 {var data=event.data;var chunk=data["chunk"];for(var i=0;i<chunk.length;++i) |
246 this._functionItems.push(chunk[i]);if(data.total===data.index) | 246 this._functionItems.push(chunk[i]);if(data.total===data.index) |
247 this.dispose();this.refresh();},itemCount:function() | 247 this.dispose();this.refresh();},itemCount:function() |
248 {return this._functionItems.length;},itemKeyAt:function(itemIndex) | 248 {return this._functionItems.length;},itemKeyAt:function(itemIndex) |
249 {return this._functionItems[itemIndex].name;},itemScoreAt:function(itemIndex,que
ry) | 249 {return this._functionItems[itemIndex].name;},itemScoreAt:function(itemIndex,que
ry) |
250 {var item=this._functionItems[itemIndex];return-item.line;},renderItem:function(
itemIndex,query,titleElement,subtitleElement) | 250 {var item=this._functionItems[itemIndex];return-item.line;},renderItem:function(
itemIndex,query,titleElement,subtitleElement) |
251 {var item=this._functionItems[itemIndex];titleElement.textContent=item.name+(ite
m.arguments?item.arguments:"");this.highlightRanges(titleElement,query);subtitle
Element.textContent=":"+(item.line+1);},selectItem:function(itemIndex,promptValu
e) | 251 {var item=this._functionItems[itemIndex];titleElement.textContent=item.name+(ite
m.arguments?item.arguments:"");this.highlightRanges(titleElement,query);subtitle
Element.textContent=":"+(item.line+1);},selectItem:function(itemIndex,promptValu
e) |
252 {var lineNumber=this._functionItems[itemIndex].line;if(!isNaN(lineNumber)&&lineN
umber>=0) | 252 {var lineNumber=this._functionItems[itemIndex].line;if(!isNaN(lineNumber)&&lineN
umber>=0) |
253 this._view.highlightPosition(lineNumber,this._functionItems[itemIndex].column);t
his._view.focus();},dispose:function() | 253 this._view.highlightPosition(lineNumber,this._functionItems[itemIndex].column);t
his._view.focus();},dispose:function() |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 return;var filteredItemSelectionDialog=new WebInspector.FilteredItemSelectionDia
log(new WebInspector.OpenResourceDialog(panel,defaultScores));filteredItemSelect
ionDialog.renderAsTwoRows();if(name) | 288 return;var filteredItemSelectionDialog=new WebInspector.FilteredItemSelectionDia
log(new WebInspector.OpenResourceDialog(panel,defaultScores));filteredItemSelect
ionDialog.renderAsTwoRows();if(name) |
289 filteredItemSelectionDialog.setQuery(name);WebInspector.Dialog.show(relativeToEl
ement,filteredItemSelectionDialog);} | 289 filteredItemSelectionDialog.setQuery(name);WebInspector.Dialog.show(relativeToEl
ement,filteredItemSelectionDialog);} |
290 WebInspector.SelectUISourceCodeForProjectTypeDialog=function(type,callback) | 290 WebInspector.SelectUISourceCodeForProjectTypeDialog=function(type,callback) |
291 {this._type=type;WebInspector.SelectUISourceCodeDialog.call(this);this._callback
=callback;} | 291 {this._type=type;WebInspector.SelectUISourceCodeDialog.call(this);this._callback
=callback;} |
292 WebInspector.SelectUISourceCodeForProjectTypeDialog.prototype={uiSourceCodeSelec
ted:function(uiSourceCode,lineNumber) | 292 WebInspector.SelectUISourceCodeForProjectTypeDialog.prototype={uiSourceCodeSelec
ted:function(uiSourceCode,lineNumber) |
293 {this._callback(uiSourceCode);},filterProject:function(project) | 293 {this._callback(uiSourceCode);},filterProject:function(project) |
294 {return project.type()===this._type;},__proto__:WebInspector.SelectUISourceCodeD
ialog.prototype} | 294 {return project.type()===this._type;},__proto__:WebInspector.SelectUISourceCodeD
ialog.prototype} |
295 WebInspector.SelectUISourceCodeForProjectTypeDialog.show=function(name,type,call
back,relativeToElement) | 295 WebInspector.SelectUISourceCodeForProjectTypeDialog.show=function(name,type,call
back,relativeToElement) |
296 {if(WebInspector.Dialog.currentInstance()) | 296 {if(WebInspector.Dialog.currentInstance()) |
297 return;var filteredItemSelectionDialog=new WebInspector.FilteredItemSelectionDia
log(new WebInspector.SelectUISourceCodeForProjectTypeDialog(type,callback));filt
eredItemSelectionDialog.setQuery(name);filteredItemSelectionDialog.renderAsTwoRo
ws();WebInspector.Dialog.show(relativeToElement,filteredItemSelectionDialog);};W
ebInspector.UISourceCodeFrame=function(uiSourceCode) | 297 return;var filteredItemSelectionDialog=new WebInspector.FilteredItemSelectionDia
log(new WebInspector.SelectUISourceCodeForProjectTypeDialog(type,callback));filt
eredItemSelectionDialog.setQuery(name);filteredItemSelectionDialog.renderAsTwoRo
ws();WebInspector.Dialog.show(relativeToElement,filteredItemSelectionDialog);};W
ebInspector.UISourceCodeFrame=function(uiSourceCode) |
298 {this._uiSourceCode=uiSourceCode;WebInspector.SourceFrame.call(this,this._uiSour
ceCode);this.textEditor.setCompletionDictionary(new WebInspector.SampleCompletio
nDictionary());this._uiSourceCode.addEventListener(WebInspector.UISourceCode.Eve
nts.FormattedChanged,this._onFormattedChanged,this);this._uiSourceCode.addEventL
istener(WebInspector.UISourceCode.Events.WorkingCopyChanged,this._onWorkingCopyC
hanged,this);this._uiSourceCode.addEventListener(WebInspector.UISourceCode.Event
s.WorkingCopyCommitted,this._onWorkingCopyCommitted,this);this._updateStyle();} | 298 {this._uiSourceCode=uiSourceCode;WebInspector.SourceFrame.call(this,this._uiSour
ceCode);WebInspector.settings.textEditorAutocompletion.addChangeListener(this._e
nableAutocompletionIfNeeded,this);this._enableAutocompletionIfNeeded();this._uiS
ourceCode.addEventListener(WebInspector.UISourceCode.Events.FormattedChanged,thi
s._onFormattedChanged,this);this._uiSourceCode.addEventListener(WebInspector.UIS
ourceCode.Events.WorkingCopyChanged,this._onWorkingCopyChanged,this);this._uiSou
rceCode.addEventListener(WebInspector.UISourceCode.Events.WorkingCopyCommitted,t
his._onWorkingCopyCommitted,this);this._updateStyle();} |
299 WebInspector.UISourceCodeFrame.prototype={wasShown:function() | 299 WebInspector.UISourceCodeFrame.prototype={_enableAutocompletionIfNeeded:function
() |
| 300 {this.textEditor.setCompletionDictionary(WebInspector.settings.textEditorAutocom
pletion.get()?new WebInspector.SampleCompletionDictionary():null);},wasShown:fun
ction() |
300 {WebInspector.SourceFrame.prototype.wasShown.call(this);this._boundWindowFocused
=this._windowFocused.bind(this);window.addEventListener("focus",this._boundWindo
wFocused,false);this._checkContentUpdated();},willHide:function() | 301 {WebInspector.SourceFrame.prototype.wasShown.call(this);this._boundWindowFocused
=this._windowFocused.bind(this);window.addEventListener("focus",this._boundWindo
wFocused,false);this._checkContentUpdated();},willHide:function() |
301 {WebInspector.SourceFrame.prototype.willHide.call(this);window.removeEventListen
er("focus",this._boundWindowFocused,false);delete this._boundWindowFocused;this.
_uiSourceCode.removeWorkingCopyGetter();},canEditSource:function() | 302 {WebInspector.SourceFrame.prototype.willHide.call(this);window.removeEventListen
er("focus",this._boundWindowFocused,false);delete this._boundWindowFocused;this.
_uiSourceCode.removeWorkingCopyGetter();},canEditSource:function() |
302 {return this._uiSourceCode.isEditable();},_windowFocused:function(event) | 303 {return this._uiSourceCode.isEditable();},_windowFocused:function(event) |
303 {this._checkContentUpdated();},_checkContentUpdated:function() | 304 {this._checkContentUpdated();},_checkContentUpdated:function() |
304 {if(!this.loaded||!this.isShowing()) | 305 {if(!this.loaded||!this.isShowing()) |
305 return;this._uiSourceCode.checkContentUpdated();},commitEditing:function(text) | 306 return;this._uiSourceCode.checkContentUpdated();},commitEditing:function(text) |
306 {if(!this._uiSourceCode.isDirty()) | 307 {if(!this._uiSourceCode.isDirty()) |
307 return;this._muteSourceCodeEvents=true;this._uiSourceCode.commitWorkingCopy(this
._didEditContent.bind(this));delete this._muteSourceCodeEvents;},onTextChanged:f
unction(oldRange,newRange) | 308 return;this._muteSourceCodeEvents=true;this._uiSourceCode.commitWorkingCopy(this
._didEditContent.bind(this));delete this._muteSourceCodeEvents;},onTextChanged:f
unction(oldRange,newRange) |
308 {WebInspector.SourceFrame.prototype.onTextChanged.call(this,oldRange,newRange);i
f(this._isSettingContent) | 309 {WebInspector.SourceFrame.prototype.onTextChanged.call(this,oldRange,newRange);i
f(this._isSettingContent) |
309 return;this._muteSourceCodeEvents=true;if(this._textEditor.isClean()) | 310 return;this._muteSourceCodeEvents=true;if(this._textEditor.isClean()) |
310 this._uiSourceCode.resetWorkingCopy();else | 311 this._uiSourceCode.resetWorkingCopy();else |
311 this._uiSourceCode.setWorkingCopyGetter(this._textEditor.text.bind(this._textEdi
tor));delete this._muteSourceCodeEvents;},_didEditContent:function(error) | 312 this._uiSourceCode.setWorkingCopyGetter(this._textEditor.text.bind(this._textEdi
tor));delete this._muteSourceCodeEvents;},_didEditContent:function(error) |
312 {if(error){WebInspector.log(error,WebInspector.ConsoleMessage.MessageLevel.Error
,true);return;}},_onFormattedChanged:function(event) | 313 {if(error){WebInspector.log(error,WebInspector.ConsoleMessage.MessageLevel.Error
,true);return;}},_onFormattedChanged:function(event) |
313 {var content=(event.data.content);this._textEditor.setReadOnly(this._uiSourceCod
e.formatted());this._innerSetContent(content);},_onWorkingCopyChanged:function(e
vent) | 314 {var content=(event.data.content);this._textEditor.setReadOnly(this._uiSourceCod
e.formatted());var selection=this._textEditor.selection();this._innerSetContent(
content);var start=null;var end=null;if(this._uiSourceCode.formatted()){start=ev
ent.data.newFormatter.originalToFormatted(selection.startLine,selection.startCol
umn);end=event.data.newFormatter.originalToFormatted(selection.endLine,selection
.endColumn);}else{start=event.data.oldFormatter.formattedToOriginal(selection.st
artLine,selection.startColumn);end=event.data.oldFormatter.formattedToOriginal(s
election.endLine,selection.endColumn);} |
| 315 this.textEditor.setSelection(new WebInspector.TextRange(start[0],start[1],end[0]
,end[1]));this.textEditor.revealLine(start[0]);},_onWorkingCopyChanged:function(
event) |
314 {if(this._muteSourceCodeEvents) | 316 {if(this._muteSourceCodeEvents) |
315 return;this._innerSetContent(this._uiSourceCode.workingCopy());this.onUISourceCo
deContentChanged();},_onWorkingCopyCommitted:function(event) | 317 return;this._innerSetContent(this._uiSourceCode.workingCopy());this.onUISourceCo
deContentChanged();},_onWorkingCopyCommitted:function(event) |
316 {if(!this._muteSourceCodeEvents){this._innerSetContent(this._uiSourceCode.workin
gCopy());this.onUISourceCodeContentChanged();} | 318 {if(!this._muteSourceCodeEvents){this._innerSetContent(this._uiSourceCode.workin
gCopy());this.onUISourceCodeContentChanged();} |
317 this._textEditor.markClean();this._updateStyle();},_updateStyle:function() | 319 this._textEditor.markClean();this._updateStyle();},_updateStyle:function() |
318 {this.element.enableStyleClass("source-frame-unsaved-committed-changes",this._ui
SourceCode.hasUnsavedCommittedChanges());},onUISourceCodeContentChanged:function
() | 320 {this.element.enableStyleClass("source-frame-unsaved-committed-changes",this._ui
SourceCode.hasUnsavedCommittedChanges());},onUISourceCodeContentChanged:function
() |
319 {},_innerSetContent:function(content) | 321 {},_innerSetContent:function(content) |
320 {this._isSettingContent=true;this.setContent(content,false,this._uiSourceCode.mi
meType());delete this._isSettingContent;},populateTextAreaContextMenu:function(c
ontextMenu,lineNumber) | 322 {this._isSettingContent=true;this.setContent(content);delete this._isSettingCont
ent;},populateTextAreaContextMenu:function(contextMenu,lineNumber) |
321 {WebInspector.SourceFrame.prototype.populateTextAreaContextMenu.call(this,contex
tMenu,lineNumber);contextMenu.appendApplicableItems(this._uiSourceCode);contextM
enu.appendSeparator();},dispose:function() | 323 {WebInspector.SourceFrame.prototype.populateTextAreaContextMenu.call(this,contex
tMenu,lineNumber);contextMenu.appendApplicableItems(this._uiSourceCode);contextM
enu.appendSeparator();},dispose:function() |
322 {this.detach();},__proto__:WebInspector.SourceFrame.prototype};WebInspector.Java
ScriptSourceFrame=function(scriptsPanel,uiSourceCode) | 324 {this.detach();},__proto__:WebInspector.SourceFrame.prototype};WebInspector.Java
ScriptSourceFrame=function(scriptsPanel,uiSourceCode) |
323 {this._scriptsPanel=scriptsPanel;this._breakpointManager=WebInspector.breakpoint
Manager;this._uiSourceCode=uiSourceCode;WebInspector.UISourceCodeFrame.call(this
,uiSourceCode);if(uiSourceCode.project().type()===WebInspector.projectTypes.Debu
gger) | 325 {this._scriptsPanel=scriptsPanel;this._breakpointManager=WebInspector.breakpoint
Manager;this._uiSourceCode=uiSourceCode;WebInspector.UISourceCodeFrame.call(this
,uiSourceCode);if(uiSourceCode.project().type()===WebInspector.projectTypes.Debu
gger) |
324 this.element.addStyleClass("source-frame-debugger-script");this._popoverHelper=n
ew WebInspector.ObjectPopoverHelper(this.textEditor.element,this._getPopoverAnch
or.bind(this),this._resolveObjectForPopover.bind(this),this._onHidePopover.bind(
this),true);this.textEditor.element.addEventListener("keydown",this._onKeyDown.b
ind(this),true);this.textEditor.addEventListener(WebInspector.TextEditor.Events.
GutterClick,this._handleGutterClick.bind(this),this);this.textEditor.element.add
EventListener("mousedown",this._onMouseDownAndClick.bind(this,true),true);this.t
extEditor.element.addEventListener("click",this._onMouseDownAndClick.bind(this,f
alse),true);this._breakpointManager.addEventListener(WebInspector.BreakpointMana
ger.Events.BreakpointAdded,this._breakpointAdded,this);this._breakpointManager.a
ddEventListener(WebInspector.BreakpointManager.Events.BreakpointRemoved,this._br
eakpointRemoved,this);this._uiSourceCode.addEventListener(WebInspector.UISourceC
ode.Events.ConsoleMessageAdded,this._consoleMessageAdded,this);this._uiSourceCod
e.addEventListener(WebInspector.UISourceCode.Events.ConsoleMessageRemoved,this._
consoleMessageRemoved,this);this._uiSourceCode.addEventListener(WebInspector.UIS
ourceCode.Events.ConsoleMessagesCleared,this._consoleMessagesCleared,this);this.
_uiSourceCode.addEventListener(WebInspector.UISourceCode.Events.SourceMappingCha
nged,this._onSourceMappingChanged,this);this._uiSourceCode.addEventListener(WebI
nspector.UISourceCode.Events.WorkingCopyChanged,this._workingCopyChanged,this);t
his._uiSourceCode.addEventListener(WebInspector.UISourceCode.Events.WorkingCopyC
ommitted,this._workingCopyCommitted,this);this._registerShortcuts();this._update
ScriptFile();} | 326 this.element.addStyleClass("source-frame-debugger-script");this._popoverHelper=n
ew WebInspector.ObjectPopoverHelper(this.textEditor.element,this._getPopoverAnch
or.bind(this),this._resolveObjectForPopover.bind(this),this._onHidePopover.bind(
this),true);this.textEditor.element.addEventListener("keydown",this._onKeyDown.b
ind(this),true);this.textEditor.addEventListener(WebInspector.TextEditor.Events.
GutterClick,this._handleGutterClick.bind(this),this);this.textEditor.element.add
EventListener("mousedown",this._onMouseDownAndClick.bind(this,true),true);this.t
extEditor.element.addEventListener("click",this._onMouseDownAndClick.bind(this,f
alse),true);this._breakpointManager.addEventListener(WebInspector.BreakpointMana
ger.Events.BreakpointAdded,this._breakpointAdded,this);this._breakpointManager.a
ddEventListener(WebInspector.BreakpointManager.Events.BreakpointRemoved,this._br
eakpointRemoved,this);this._uiSourceCode.addEventListener(WebInspector.UISourceC
ode.Events.ConsoleMessageAdded,this._consoleMessageAdded,this);this._uiSourceCod
e.addEventListener(WebInspector.UISourceCode.Events.ConsoleMessageRemoved,this._
consoleMessageRemoved,this);this._uiSourceCode.addEventListener(WebInspector.UIS
ourceCode.Events.ConsoleMessagesCleared,this._consoleMessagesCleared,this);this.
_uiSourceCode.addEventListener(WebInspector.UISourceCode.Events.SourceMappingCha
nged,this._onSourceMappingChanged,this);this._uiSourceCode.addEventListener(WebI
nspector.UISourceCode.Events.WorkingCopyChanged,this._workingCopyChanged,this);t
his._uiSourceCode.addEventListener(WebInspector.UISourceCode.Events.WorkingCopyC
ommitted,this._workingCopyCommitted,this);this._registerShortcuts();this._update
ScriptFile();} |
325 WebInspector.JavaScriptSourceFrame.prototype={_registerShortcuts:function() | 327 WebInspector.JavaScriptSourceFrame.prototype={_registerShortcuts:function() |
326 {var modifiers=WebInspector.KeyboardShortcut.Modifiers;this.addShortcut(WebInspe
ctor.KeyboardShortcut.makeKey("e",modifiers.Shift|modifiers.Ctrl),this._evaluate
SelectionInConsole.bind(this));},_evaluateSelectionInConsole:function(event) | 328 {var shortcutKeys=WebInspector.SourcesPanelDescriptor.ShortcutKeys;for(var i=0;i
<shortcutKeys.EvaluateSelectionInConsole.length;++i){var keyDescriptor=shortcutK
eys.EvaluateSelectionInConsole[i];this.addShortcut(keyDescriptor.key,this._evalu
ateSelectionInConsole.bind(this));} |
| 329 for(var i=0;i<shortcutKeys.AddSelectionToWatch.length;++i){var keyDescriptor=sho
rtcutKeys.AddSelectionToWatch[i];this.addShortcut(keyDescriptor.key,this._addCur
rentSelectionToWatch.bind(this));}},_addCurrentSelectionToWatch:function() |
| 330 {var textSelection=this.textEditor.selection();if(textSelection&&!textSelection.
isEmpty()) |
| 331 this._innerAddToWatch(this.textEditor.copyRange(textSelection));},_innerAddToWat
ch:function(expression) |
| 332 {this._scriptsPanel.addToWatch(expression);},_evaluateSelectionInConsole:functio
n(event) |
327 {var selection=this.textEditor.selection();if(!selection||selection.isEmpty()) | 333 {var selection=this.textEditor.selection();if(!selection||selection.isEmpty()) |
328 return false;WebInspector.evaluateInConsole(this.textEditor.copyRange(selection)
);return true;},wasShown:function() | 334 return false;WebInspector.evaluateInConsole(this.textEditor.copyRange(selection)
);return true;},wasShown:function() |
329 {WebInspector.UISourceCodeFrame.prototype.wasShown.call(this);},willHide:functio
n() | 335 {WebInspector.UISourceCodeFrame.prototype.wasShown.call(this);},willHide:functio
n() |
330 {WebInspector.UISourceCodeFrame.prototype.willHide.call(this);this._popoverHelpe
r.hidePopover();},onUISourceCodeContentChanged:function() | 336 {WebInspector.UISourceCodeFrame.prototype.willHide.call(this);this._popoverHelpe
r.hidePopover();},onUISourceCodeContentChanged:function() |
331 {this._removeAllBreakpoints();WebInspector.UISourceCodeFrame.prototype.onUISourc
eCodeContentChanged.call(this);},populateLineGutterContextMenu:function(contextM
enu,lineNumber) | 337 {this._removeAllBreakpoints();WebInspector.UISourceCodeFrame.prototype.onUISourc
eCodeContentChanged.call(this);},populateLineGutterContextMenu:function(contextM
enu,lineNumber) |
332 {contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCaseMenuTitle
s()?"Continue to here":"Continue to Here"),this._continueToLine.bind(this,lineNu
mber));var breakpoint=this._breakpointManager.findBreakpoint(this._uiSourceCode,
lineNumber);if(!breakpoint){contextMenu.appendItem(WebInspector.UIString(WebInsp
ector.useLowerCaseMenuTitles()?"Add breakpoint":"Add Breakpoint"),this._setBreak
point.bind(this,lineNumber,"",true));contextMenu.appendItem(WebInspector.UIStrin
g(WebInspector.useLowerCaseMenuTitles()?"Add conditional breakpoint…":"Add Condi
tional Breakpoint…"),this._editBreakpointCondition.bind(this,lineNumber));}else{
contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCaseMenuTitles
()?"Remove breakpoint":"Remove Breakpoint"),breakpoint.remove.bind(breakpoint));
contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCaseMenuTitles
()?"Edit breakpoint…":"Edit Breakpoint…"),this._editBreakpointCondition.bind(thi
s,lineNumber,breakpoint));if(breakpoint.enabled()) | 338 {contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCaseMenuTitle
s()?"Continue to here":"Continue to Here"),this._continueToLine.bind(this,lineNu
mber));var breakpoint=this._breakpointManager.findBreakpoint(this._uiSourceCode,
lineNumber);if(!breakpoint){contextMenu.appendItem(WebInspector.UIString(WebInsp
ector.useLowerCaseMenuTitles()?"Add breakpoint":"Add Breakpoint"),this._setBreak
point.bind(this,lineNumber,"",true));contextMenu.appendItem(WebInspector.UIStrin
g(WebInspector.useLowerCaseMenuTitles()?"Add conditional breakpoint…":"Add Condi
tional Breakpoint…"),this._editBreakpointCondition.bind(this,lineNumber));}else{
contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCaseMenuTitles
()?"Remove breakpoint":"Remove Breakpoint"),breakpoint.remove.bind(breakpoint));
contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCaseMenuTitles
()?"Edit breakpoint…":"Edit Breakpoint…"),this._editBreakpointCondition.bind(thi
s,lineNumber,breakpoint));if(breakpoint.enabled()) |
333 contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCaseMenuTitles
()?"Disable breakpoint":"Disable Breakpoint"),breakpoint.setEnabled.bind(breakpo
int,false));else | 339 contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCaseMenuTitles
()?"Disable breakpoint":"Disable Breakpoint"),breakpoint.setEnabled.bind(breakpo
int,false));else |
334 contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCaseMenuTitles
()?"Enable breakpoint":"Enable Breakpoint"),breakpoint.setEnabled.bind(breakpoin
t,true));}},populateTextAreaContextMenu:function(contextMenu,lineNumber) | 340 contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCaseMenuTitles
()?"Enable breakpoint":"Enable Breakpoint"),breakpoint.setEnabled.bind(breakpoin
t,true));}},populateTextAreaContextMenu:function(contextMenu,lineNumber) |
335 {var textSelection=this.textEditor.selection();if(textSelection&&!textSelection.
isEmpty()){var selection=this.textEditor.copyRange(textSelection);var addToWatch
Label=WebInspector.UIString(WebInspector.useLowerCaseMenuTitles()?"Add to watch"
:"Add to Watch");contextMenu.appendItem(addToWatchLabel,this._scriptsPanel.addTo
Watch.bind(this._scriptsPanel,selection));var evaluateLabel=WebInspector.UIStrin
g(WebInspector.useLowerCaseMenuTitles()?"Evaluate in console":"Evaluate in Conso
le");contextMenu.appendItem(evaluateLabel,WebInspector.evaluateInConsole.bind(We
bInspector,selection));contextMenu.appendSeparator();}else if(!this._uiSourceCod
e.isEditable()&&this._uiSourceCode.contentType()===WebInspector.resourceTypes.Sc
ript){function liveEdit(event) | 341 {var textSelection=this.textEditor.selection();if(textSelection&&!textSelection.
isEmpty()){var selection=this.textEditor.copyRange(textSelection);var addToWatch
Label=WebInspector.UIString(WebInspector.useLowerCaseMenuTitles()?"Add to watch"
:"Add to Watch");contextMenu.appendItem(addToWatchLabel,this._innerAddToWatch.bi
nd(this,selection));var evaluateLabel=WebInspector.UIString(WebInspector.useLowe
rCaseMenuTitles()?"Evaluate in console":"Evaluate in Console");contextMenu.appen
dItem(evaluateLabel,WebInspector.evaluateInConsole.bind(WebInspector,selection))
;contextMenu.appendSeparator();}else if(!this._uiSourceCode.isEditable()&&this._
uiSourceCode.contentType()===WebInspector.resourceTypes.Script){function liveEdi
t(event) |
336 {var liveEditUISourceCode=WebInspector.liveEditSupport.uiSourceCodeForLiveEdit(t
his._uiSourceCode);this._scriptsPanel.showUISourceCode(liveEditUISourceCode,line
Number)} | 342 {var liveEditUISourceCode=WebInspector.liveEditSupport.uiSourceCodeForLiveEdit(t
his._uiSourceCode);this._scriptsPanel.showUISourceCode(liveEditUISourceCode,line
Number)} |
337 var liveEditLabel=WebInspector.UIString(WebInspector.useLowerCaseMenuTitles()?"L
ive edit":"Live Edit");contextMenu.appendItem(liveEditLabel,liveEdit.bind(this))
;contextMenu.appendSeparator();} | 343 var liveEditLabel=WebInspector.UIString(WebInspector.useLowerCaseMenuTitles()?"L
ive edit":"Live Edit");contextMenu.appendItem(liveEditLabel,liveEdit.bind(this))
;contextMenu.appendSeparator();} |
338 WebInspector.UISourceCodeFrame.prototype.populateTextAreaContextMenu.call(this,c
ontextMenu,lineNumber);},_workingCopyChanged:function(event) | 344 WebInspector.UISourceCodeFrame.prototype.populateTextAreaContextMenu.call(this,c
ontextMenu,lineNumber);},_workingCopyChanged:function(event) |
339 {if(this._supportsEnabledBreakpointsWhileEditing()||this._scriptFile) | 345 {if(this._supportsEnabledBreakpointsWhileEditing()||this._scriptFile) |
340 return;if(this._uiSourceCode.isDirty()) | 346 return;if(this._uiSourceCode.isDirty()) |
341 this._muteBreakpointsWhileEditing();else | 347 this._muteBreakpointsWhileEditing();else |
342 this._restoreBreakpointsAfterEditing();},_workingCopyCommitted:function(event) | 348 this._restoreBreakpointsAfterEditing();},_workingCopyCommitted:function(event) |
343 {if(this._supportsEnabledBreakpointsWhileEditing()||this._scriptFile) | 349 {if(this._supportsEnabledBreakpointsWhileEditing()||this._scriptFile) |
344 return;this._restoreBreakpointsAfterEditing();},_didMergeToVM:function() | 350 return;this._restoreBreakpointsAfterEditing();},_didMergeToVM:function() |
345 {if(this._supportsEnabledBreakpointsWhileEditing()) | 351 {if(this._supportsEnabledBreakpointsWhileEditing()) |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 return i;}},getSelectedItemIndex:function() | 467 return i;}},getSelectedItemIndex:function() |
462 {if(this._currentSelection===this._positions.length) | 468 {if(this._currentSelection===this._positions.length) |
463 return undefined;return this._currentSelection;},getRawPosition:function(positio
n) | 469 return undefined;return this._currentSelection;},getRawPosition:function(positio
n) |
464 {return(this._positions[position]);}};WebInspector.JavaScriptSourceFrame.StepInt
oMarkup.create=function(sourceFrame,stepIntoRawLocations) | 470 {return(this._positions[position]);}};WebInspector.JavaScriptSourceFrame.StepInt
oMarkup.create=function(sourceFrame,stepIntoRawLocations) |
465 {if(!stepIntoRawLocations.length) | 471 {if(!stepIntoRawLocations.length) |
466 return null;var firstToExecute=stepIntoRawLocations[0];stepIntoRawLocations.sort
(WebInspector.JavaScriptSourceFrame.StepIntoMarkup._Comparator);var firstToExecu
teIndex=stepIntoRawLocations.indexOf(firstToExecute);var textEditor=sourceFrame.
textEditor;var uiRanges=[];for(var i=0;i<stepIntoRawLocations.length;++i){var ui
Location=WebInspector.debuggerModel.rawLocationToUILocation((stepIntoRawLocation
s[i]));var token=textEditor.tokenAtTextPosition(uiLocation.lineNumber,uiLocation
.columnNumber);var startColumn;var endColumn;if(token){startColumn=token.startCo
lumn;endColumn=token.endColumn;}else{startColumn=uiLocation.columnNumber;endColu
mn=uiLocation.columnNumber;} | 472 return null;var firstToExecute=stepIntoRawLocations[0];stepIntoRawLocations.sort
(WebInspector.JavaScriptSourceFrame.StepIntoMarkup._Comparator);var firstToExecu
teIndex=stepIntoRawLocations.indexOf(firstToExecute);var textEditor=sourceFrame.
textEditor;var uiRanges=[];for(var i=0;i<stepIntoRawLocations.length;++i){var ui
Location=WebInspector.debuggerModel.rawLocationToUILocation((stepIntoRawLocation
s[i]));var token=textEditor.tokenAtTextPosition(uiLocation.lineNumber,uiLocation
.columnNumber);var startColumn;var endColumn;if(token){startColumn=token.startCo
lumn;endColumn=token.endColumn;}else{startColumn=uiLocation.columnNumber;endColu
mn=uiLocation.columnNumber;} |
467 var range=new WebInspector.TextRange(uiLocation.lineNumber,startColumn,uiLocatio
n.lineNumber,endColumn);uiRanges.push(range);} | 473 var range=new WebInspector.TextRange(uiLocation.lineNumber,startColumn,uiLocatio
n.lineNumber,endColumn);uiRanges.push(range);} |
468 return new WebInspector.JavaScriptSourceFrame.StepIntoMarkup(stepIntoRawLocation
s,uiRanges,firstToExecuteIndex,sourceFrame);};WebInspector.JavaScriptSourceFrame
.StepIntoMarkup._Comparator=function(locationA,locationB) | 474 return new WebInspector.JavaScriptSourceFrame.StepIntoMarkup(stepIntoRawLocation
s,uiRanges,firstToExecuteIndex,sourceFrame);};WebInspector.JavaScriptSourceFrame
.StepIntoMarkup._Comparator=function(locationA,locationB) |
469 {if(locationA.lineNumber===locationB.lineNumber) | 475 {if(locationA.lineNumber===locationB.lineNumber) |
470 return locationA.columnNumber-locationB.columnNumber;else | 476 return locationA.columnNumber-locationB.columnNumber;else |
471 return locationA.lineNumber-locationB.lineNumber;};;WebInspector.NavigatorOverla
yController=function(parentSidebarView,navigatorView,editorView) | 477 return locationA.lineNumber-locationB.lineNumber;};;WebInspector.CSSSourceFrame=
function(uiSourceCode) |
472 {this._parentSidebarView=parentSidebarView;this._navigatorView=navigatorView;thi
s._editorView=editorView;this._navigatorSidebarResizeWidgetElement=this._navigat
orView.element.createChild("div","resizer-widget");this._parentSidebarView.insta
llResizer(this._navigatorSidebarResizeWidgetElement);this._navigatorShowHideButt
on=new WebInspector.StatusBarButton(WebInspector.UIString("Hide navigator"),"lef
t-sidebar-show-hide-button scripts-navigator-show-hide-button",3);this._navigato
rShowHideButton.state="left";this._navigatorShowHideButton.addEventListener("cli
ck",this._toggleNavigator,this);this._editorView.element.appendChild(this._navig
atorShowHideButton.element);WebInspector.settings.navigatorHidden=WebInspector.s
ettings.createSetting("navigatorHidden",true);if(WebInspector.settings.navigator
Hidden.get()) | 478 {WebInspector.UISourceCodeFrame.call(this,uiSourceCode);this._registerShortcuts(
);} |
| 479 WebInspector.CSSSourceFrame.prototype={_registerShortcuts:function() |
| 480 {var shortcutKeys=WebInspector.SourcesPanelDescriptor.ShortcutKeys;for(var i=0;i
<shortcutKeys.IncreaseCSSUnitByOne.length;++i) |
| 481 this.addShortcut(shortcutKeys.IncreaseCSSUnitByOne[i].key,this._handleUnitModifi
cation.bind(this,1));for(var i=0;i<shortcutKeys.DecreaseCSSUnitByOne.length;++i) |
| 482 this.addShortcut(shortcutKeys.DecreaseCSSUnitByOne[i].key,this._handleUnitModifi
cation.bind(this,-1));for(var i=0;i<shortcutKeys.IncreaseCSSUnitByTen.length;++i
) |
| 483 this.addShortcut(shortcutKeys.IncreaseCSSUnitByTen[i].key,this._handleUnitModifi
cation.bind(this,10));for(var i=0;i<shortcutKeys.DecreaseCSSUnitByTen.length;++i
) |
| 484 this.addShortcut(shortcutKeys.DecreaseCSSUnitByTen[i].key,this._handleUnitModifi
cation.bind(this,-10));},_modifyUnit:function(unit,change) |
| 485 {var unitValue=parseInt(unit,10);if(isNaN(unitValue)) |
| 486 return null;var tail=unit.substring((unitValue).toString().length);return String
.sprintf("%d%s",unitValue+change,tail);},_handleUnitModification:function(change
) |
| 487 {var selection=this.textEditor.selection().normalize();var token=this.textEditor
.tokenAtTextPosition(selection.startLine,selection.startColumn);if(!token){if(se
lection.startColumn>0) |
| 488 token=this.textEditor.tokenAtTextPosition(selection.startLine,selection.startCol
umn-1);if(!token) |
| 489 return false;} |
| 490 if(token.type!=="css-number") |
| 491 return false;var cssUnitRange=new WebInspector.TextRange(selection.startLine,tok
en.startColumn,selection.startLine,token.endColumn+1);var cssUnitText=this.textE
ditor.copyRange(cssUnitRange);var newUnitText=this._modifyUnit(cssUnitText,chang
e);if(!newUnitText) |
| 492 return false;this.textEditor.editRange(cssUnitRange,newUnitText);selection.start
Column=token.startColumn;selection.endColumn=selection.startColumn+newUnitText.l
ength;this.textEditor.setSelection(selection);return true;},__proto__:WebInspect
or.UISourceCodeFrame.prototype};WebInspector.NavigatorOverlayController=function
(parentSidebarView,navigatorView,editorView) |
| 493 {this._parentSidebarView=parentSidebarView;this._navigatorView=navigatorView;thi
s._editorView=editorView;this._navigatorSidebarResizeWidgetElement=this._navigat
orView.element.createChild("div","resizer-widget");this._parentSidebarView.insta
llResizer(this._navigatorSidebarResizeWidgetElement);this._navigatorShowHideButt
on=new WebInspector.StatusBarButton(WebInspector.UIString("Hide navigator"),"lef
t-sidebar-show-hide-button scripts-navigator-show-hide-button",3);this._navigato
rShowHideButton.state="left";this._navigatorShowHideButton.addEventListener("cli
ck",this._toggleNavigator,this);parentSidebarView.mainElement.appendChild(this._
navigatorShowHideButton.element);WebInspector.settings.navigatorHidden=WebInspec
tor.settings.createSetting("navigatorHidden",true);if(WebInspector.settings.navi
gatorHidden.get()) |
473 this._toggleNavigator();} | 494 this._toggleNavigator();} |
474 WebInspector.NavigatorOverlayController.prototype={wasShown:function() | 495 WebInspector.NavigatorOverlayController.prototype={wasShown:function() |
475 {window.setTimeout(this._maybeShowNavigatorOverlay.bind(this),0);},_maybeShowNav
igatorOverlay:function() | 496 {window.setTimeout(this._maybeShowNavigatorOverlay.bind(this),0);},_maybeShowNav
igatorOverlay:function() |
476 {if(WebInspector.settings.navigatorHidden.get()&&!WebInspector.settings.navigato
rWasOnceHidden.get()) | 497 {if(WebInspector.settings.navigatorHidden.get()&&!WebInspector.settings.navigato
rWasOnceHidden.get()) |
477 this.showNavigatorOverlay();},_toggleNavigator:function() | 498 this.showNavigatorOverlay();},_toggleNavigator:function() |
478 {if(this._navigatorShowHideButton.state==="overlay") | 499 {if(this._navigatorShowHideButton.state==="overlay") |
479 this._pinNavigator();else if(this._navigatorShowHideButton.state==="right") | 500 this._pinNavigator();else if(this._navigatorShowHideButton.state==="right") |
480 this.showNavigatorOverlay();else | 501 this.showNavigatorOverlay();else |
481 this._hidePinnedNavigator();},_hidePinnedNavigator:function() | 502 this._hidePinnedNavigator();},_hidePinnedNavigator:function() |
482 {this._navigatorShowHideButton.state="right";this._navigatorShowHideButton.title
=WebInspector.UIString("Show navigator");this._parentSidebarView.element.appendC
hild(this._navigatorShowHideButton.element);this._editorView.element.addStyleCla
ss("navigator-hidden");this._navigatorSidebarResizeWidgetElement.addStyleClass("
hidden");this._parentSidebarView.hideSidebarElement();this._navigatorView.detach
();this._editorView.focus();WebInspector.settings.navigatorWasOnceHidden.set(tru
e);WebInspector.settings.navigatorHidden.set(true);},_pinNavigator:function() | 503 {this._navigatorShowHideButton.state="right";this._navigatorShowHideButton.title
=WebInspector.UIString("Show navigator");this._parentSidebarView.element.appendC
hild(this._navigatorShowHideButton.element);this._editorView.element.addStyleCla
ss("navigator-hidden");this._navigatorSidebarResizeWidgetElement.addStyleClass("
hidden");this._parentSidebarView.hideSidebarElement();this._navigatorView.detach
();this._editorView.focus();WebInspector.settings.navigatorWasOnceHidden.set(tru
e);WebInspector.settings.navigatorHidden.set(true);},_pinNavigator:function() |
(...skipping 24 matching lines...) Expand all Loading... |
507 return this._rootNode;var projectNode=this._rootNode.child(project.id());if(!pro
jectNode){var type=project.type()===WebInspector.projectTypes.FileSystem?WebInsp
ector.NavigatorTreeOutline.Types.FileSystem:WebInspector.NavigatorTreeOutline.Ty
pes.Domain;projectNode=new WebInspector.NavigatorFolderTreeNode(this,project,pro
ject.id(),type,"",project.displayName());this._rootNode.appendChild(projectNode)
;} | 528 return this._rootNode;var projectNode=this._rootNode.child(project.id());if(!pro
jectNode){var type=project.type()===WebInspector.projectTypes.FileSystem?WebInsp
ector.NavigatorTreeOutline.Types.FileSystem:WebInspector.NavigatorTreeOutline.Ty
pes.Domain;projectNode=new WebInspector.NavigatorFolderTreeNode(this,project,pro
ject.id(),type,"",project.displayName());this._rootNode.appendChild(projectNode)
;} |
508 return projectNode;},_folderNode:function(projectNode,folderPath) | 529 return projectNode;},_folderNode:function(projectNode,folderPath) |
509 {if(!folderPath) | 530 {if(!folderPath) |
510 return projectNode;var subfolderNodes=this._subfolderNodes.get(projectNode);if(!
subfolderNodes){subfolderNodes=(new StringMap());this._subfolderNodes.put(projec
tNode,subfolderNodes);} | 531 return projectNode;var subfolderNodes=this._subfolderNodes.get(projectNode);if(!
subfolderNodes){subfolderNodes=(new StringMap());this._subfolderNodes.put(projec
tNode,subfolderNodes);} |
511 var folderNode=subfolderNodes.get(folderPath);if(folderNode) | 532 var folderNode=subfolderNodes.get(folderPath);if(folderNode) |
512 return folderNode;var parentNode=projectNode;var index=folderPath.lastIndexOf("/
");if(index!==-1) | 533 return folderNode;var parentNode=projectNode;var index=folderPath.lastIndexOf("/
");if(index!==-1) |
513 parentNode=this._folderNode(projectNode,folderPath.substring(0,index));var name=
folderPath.substring(index+1);folderNode=new WebInspector.NavigatorFolderTreeNod
e(this,null,name,WebInspector.NavigatorTreeOutline.Types.Folder,folderPath,name)
;subfolderNodes.put(folderPath,folderNode);parentNode.appendChild(folderNode);re
turn folderNode;},revealUISourceCode:function(uiSourceCode,select) | 534 parentNode=this._folderNode(projectNode,folderPath.substring(0,index));var name=
folderPath.substring(index+1);folderNode=new WebInspector.NavigatorFolderTreeNod
e(this,null,name,WebInspector.NavigatorTreeOutline.Types.Folder,folderPath,name)
;subfolderNodes.put(folderPath,folderNode);parentNode.appendChild(folderNode);re
turn folderNode;},revealUISourceCode:function(uiSourceCode,select) |
514 {var node=this._uiSourceCodeNodes.get(uiSourceCode);if(!node) | 535 {var node=this._uiSourceCodeNodes.get(uiSourceCode);if(!node) |
515 return null;if(this._scriptsTree.selectedTreeElement) | 536 return null;if(this._scriptsTree.selectedTreeElement) |
516 this._scriptsTree.selectedTreeElement.deselect();this._lastSelectedUISourceCode=
uiSourceCode;node.reveal(select);},_sourceSelected:function(uiSourceCode,focusSo
urce) | 537 this._scriptsTree.selectedTreeElement.deselect();this._lastSelectedUISourceCode=
uiSourceCode;node.reveal(select);},_sourceSelected:function(uiSourceCode,focusSo
urce) |
517 {this._lastSelectedUISourceCode=uiSourceCode;var data={uiSourceCode:uiSourceCode
,focusSource:focusSource};this.dispatchEventToListeners(WebInspector.NavigatorVi
ew.Events.ItemSelected,data);},removeUISourceCode:function(uiSourceCode) | 538 {this._lastSelectedUISourceCode=uiSourceCode;var data={uiSourceCode:uiSourceCode
,focusSource:focusSource};this.dispatchEventToListeners(WebInspector.NavigatorVi
ew.Events.ItemSelected,data);},sourceDeleted:function(uiSourceCode) |
| 539 {},removeUISourceCode:function(uiSourceCode) |
518 {var node=this._uiSourceCodeNodes.get(uiSourceCode);if(!node) | 540 {var node=this._uiSourceCodeNodes.get(uiSourceCode);if(!node) |
519 return;var projectNode=this._projectNode(uiSourceCode.project());var subfolderNo
des=this._subfolderNodes.get(projectNode);var parentNode=node.parent;this._uiSou
rceCodeNodes.remove(uiSourceCode);parentNode.removeChild(node);node=parentNode;w
hile(node){parentNode=node.parent;if(!parentNode||!node.isEmpty()) | 541 return;var projectNode=this._projectNode(uiSourceCode.project());var subfolderNo
des=this._subfolderNodes.get(projectNode);var parentNode=node.parent;this._uiSou
rceCodeNodes.remove(uiSourceCode);parentNode.removeChild(node);node=parentNode;w
hile(node){parentNode=node.parent;if(!parentNode||!node.isEmpty()) |
520 break;if(subfolderNodes) | 542 break;if(subfolderNodes) |
521 subfolderNodes.remove(node._folderPath);parentNode.removeChild(node);node=parent
Node;}},requestRename:function(uiSourceCode) | 543 subfolderNodes.remove(node._folderPath);parentNode.removeChild(node);node=parent
Node;}},updateIcon:function(uiSourceCode) |
| 544 {var node=this._uiSourceCodeNodes.get(uiSourceCode);node.updateIcon();},requestR
ename:function(uiSourceCode) |
522 {this.dispatchEventToListeners(WebInspector.SourcesNavigator.Events.ItemRenaming
Requested,uiSourceCode);},rename:function(uiSourceCode,callback) | 545 {this.dispatchEventToListeners(WebInspector.SourcesNavigator.Events.ItemRenaming
Requested,uiSourceCode);},rename:function(uiSourceCode,callback) |
523 {var node=this._uiSourceCodeNodes.get(uiSourceCode);if(!node) | 546 {var node=this._uiSourceCodeNodes.get(uiSourceCode);if(!node) |
524 return null;node.rename(callback);},reset:function() | 547 return null;node.rename(callback);},reset:function() |
525 {var nodes=this._uiSourceCodeNodes.values();for(var i=0;i<nodes.length;++i) | 548 {var nodes=this._uiSourceCodeNodes.values();for(var i=0;i<nodes.length;++i) |
526 nodes[i].dispose();this._scriptsTree.removeChildren();this._uiSourceCodeNodes.cl
ear();this._subfolderNodes.clear();this._rootNode.reset();},handleContextMenu:fu
nction(event) | 549 nodes[i].dispose();this._scriptsTree.removeChildren();this._uiSourceCodeNodes.cl
ear();this._subfolderNodes.clear();this._rootNode.reset();},handleContextMenu:fu
nction(event) |
527 {var contextMenu=new WebInspector.ContextMenu(event);this._appendAddFolderItem(c
ontextMenu);contextMenu.show();},_appendAddFolderItem:function(contextMenu) | 550 {var contextMenu=new WebInspector.ContextMenu(event);this._appendAddFolderItem(c
ontextMenu);contextMenu.show();},_appendAddFolderItem:function(contextMenu) |
528 {function addFolder() | 551 {function addFolder() |
529 {WebInspector.isolatedFileSystemManager.addFileSystem();} | 552 {WebInspector.isolatedFileSystemManager.addFileSystem();} |
530 var addFolderLabel=WebInspector.UIString(WebInspector.useLowerCaseMenuTitles()?"
Add folder to workspace":"Add Folder to Workspace");contextMenu.appendItem(addFo
lderLabel,addFolder);},handleFileContextMenu:function(event,uiSourceCode) | 553 var addFolderLabel=WebInspector.UIString(WebInspector.useLowerCaseMenuTitles()?"
Add folder to workspace":"Add Folder to Workspace");contextMenu.appendItem(addFo
lderLabel,addFolder);},_handleContextMenuRefresh:function(project,path) |
531 {var contextMenu=new WebInspector.ContextMenu(event);contextMenu.appendApplicabl
eItems(uiSourceCode);contextMenu.appendSeparator();this._appendAddFolderItem(con
textMenu);contextMenu.show();},handleFolderContextMenu:function(event,node) | 554 {project.refresh(path);},_handleContextMenuCreate:function(project,path,uiSource
Code) |
| 555 {var data={};data.project=project;data.path=path;data.uiSourceCode=uiSourceCode;
this.dispatchEventToListeners(WebInspector.NavigatorView.Events.ItemCreationRequ
ested,data);},_handleContextMenuExclude:function(project,path) |
| 556 {var shouldExclude=window.confirm(WebInspector.UIString("Are you sure you want t
o exclude this folder?"));if(shouldExclude){WebInspector.startBatchUpdate();proj
ect.excludeFolder(path);WebInspector.endBatchUpdate();}},_handleContextMenuDelet
e:function(uiSourceCode) |
| 557 {var shouldDelete=window.confirm(WebInspector.UIString("Are you sure you want to
delete this file?"));if(shouldDelete) |
| 558 uiSourceCode.project().deleteFile(uiSourceCode.path());},handleFileContextMenu:f
unction(event,uiSourceCode) |
| 559 {var contextMenu=new WebInspector.ContextMenu(event);contextMenu.appendApplicabl
eItems(uiSourceCode);contextMenu.appendSeparator();var project=uiSourceCode.proj
ect();var path=uiSourceCode.parentPath();contextMenu.appendItem(WebInspector.UIS
tring(WebInspector.useLowerCaseMenuTitles()?"Refresh parent":"Refresh Parent"),t
his._handleContextMenuRefresh.bind(this,project,path));contextMenu.appendItem(We
bInspector.UIString(WebInspector.useLowerCaseMenuTitles()?"Duplicate file":"Dupl
icate File"),this._handleContextMenuCreate.bind(this,project,path,uiSourceCode))
;contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCaseMenuTitle
s()?"Exclude parent folder":"Exclude Parent Folder"),this._handleContextMenuExcl
ude.bind(this,project,path));contextMenu.appendItem(WebInspector.UIString(WebIns
pector.useLowerCaseMenuTitles()?"Delete file":"Delete File"),this._handleContext
MenuDelete.bind(this,uiSourceCode));contextMenu.appendSeparator();this._appendAd
dFolderItem(contextMenu);contextMenu.show();},handleFolderContextMenu:function(e
vent,node) |
532 {var contextMenu=new WebInspector.ContextMenu(event);var path="/";var projectNod
e=node;while(projectNode.parent!==this._rootNode){path="/"+projectNode.id+path;p
rojectNode=projectNode.parent;} | 560 {var contextMenu=new WebInspector.ContextMenu(event);var path="/";var projectNod
e=node;while(projectNode.parent!==this._rootNode){path="/"+projectNode.id+path;p
rojectNode=projectNode.parent;} |
533 var project=projectNode._project;if(project.type()===WebInspector.projectTypes.F
ileSystem){function refresh() | 561 var project=projectNode._project;if(project.type()===WebInspector.projectTypes.F
ileSystem){contextMenu.appendItem(WebInspector.UIString("Refresh"),this._handleC
ontextMenuRefresh.bind(this,project,path));contextMenu.appendItem(WebInspector.U
IString(WebInspector.useLowerCaseMenuTitles()?"New file":"New File"),this._handl
eContextMenuCreate.bind(this,project,path));contextMenu.appendItem(WebInspector.
UIString(WebInspector.useLowerCaseMenuTitles()?"Exclude folder":"Exclude Folder"
),this._handleContextMenuExclude.bind(this,project,path));} |
534 {project.refresh(path);} | |
535 contextMenu.appendItem(WebInspector.UIString("Refresh"),refresh.bind(this));func
tion create() | |
536 {var data={};data.project=project;data.path=path;this.dispatchEventToListeners(W
ebInspector.NavigatorView.Events.ItemCreationRequested,data);} | |
537 contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCaseMenuTitles
()?"New file":"New File"),create.bind(this));function exclude() | |
538 {var shouldExclude=window.confirm(WebInspector.UIString("Are you sure you want t
o exclude this folder?"));if(shouldExclude){WebInspector.startBatchUpdate();proj
ect.excludeFolder(path);WebInspector.endBatchUpdate();}} | |
539 contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCaseMenuTitles
()?"Exclude folder":"Exclude Folder"),exclude.bind(this));} | |
540 contextMenu.appendSeparator();this._appendAddFolderItem(contextMenu);if(project.
type()===WebInspector.projectTypes.FileSystem&&node===projectNode){function remo
veFolder() | 562 contextMenu.appendSeparator();this._appendAddFolderItem(contextMenu);if(project.
type()===WebInspector.projectTypes.FileSystem&&node===projectNode){function remo
veFolder() |
541 {var shouldRemove=window.confirm(WebInspector.UIString("Are you sure you want to
remove this folder?"));if(shouldRemove) | 563 {var shouldRemove=window.confirm(WebInspector.UIString("Are you sure you want to
remove this folder?"));if(shouldRemove) |
542 project.remove();} | 564 project.remove();} |
543 var removeFolderLabel=WebInspector.UIString(WebInspector.useLowerCaseMenuTitles(
)?"Remove folder from workspace":"Remove Folder from Workspace");contextMenu.app
endItem(removeFolderLabel,removeFolder);} | 565 var removeFolderLabel=WebInspector.UIString(WebInspector.useLowerCaseMenuTitles(
)?"Remove folder from workspace":"Remove Folder from Workspace");contextMenu.app
endItem(removeFolderLabel,removeFolder);} |
544 contextMenu.show();},_treeKeyPress:function(event) | 566 contextMenu.show();},_treeKeyPress:function(event) |
545 {if(WebInspector.isBeingEdited(this._scriptsTree.childrenListElement)) | 567 {if(WebInspector.isBeingEdited(this._scriptsTree.childrenListElement)) |
546 return;var searchText=String.fromCharCode(event.charCode);if(searchText.trim()!=
=searchText) | 568 return;var searchText=String.fromCharCode(event.charCode);if(searchText.trim()!=
=searchText) |
547 return;this.dispatchEventToListeners(WebInspector.NavigatorView.Events.ItemSearc
hStarted,searchText);event.consume(true);},__proto__:WebInspector.View.prototype
} | 569 return;this.dispatchEventToListeners(WebInspector.NavigatorView.Events.ItemSearc
hStarted,searchText);event.consume(true);},__proto__:WebInspector.View.prototype
} |
548 WebInspector.NavigatorTreeOutline=function(element) | 570 WebInspector.NavigatorTreeOutline=function(element) |
549 {TreeOutline.call(this,element);this.element=element;this.comparator=WebInspecto
r.NavigatorTreeOutline._treeElementsCompare;} | 571 {TreeOutline.call(this,element);this.element=element;this.comparator=WebInspecto
r.NavigatorTreeOutline._treeElementsCompare;} |
(...skipping 12 matching lines...) Expand all Loading... |
562 WebInspector.NavigatorTreeOutline.prototype={scriptTreeElements:function() | 584 WebInspector.NavigatorTreeOutline.prototype={scriptTreeElements:function() |
563 {var result=[];if(this.children.length){for(var treeElement=this.children[0];tre
eElement;treeElement=treeElement.traverseNextTreeElement(false,this,true)){if(tr
eeElement instanceof WebInspector.NavigatorSourceTreeElement) | 585 {var result=[];if(this.children.length){for(var treeElement=this.children[0];tre
eElement;treeElement=treeElement.traverseNextTreeElement(false,this,true)){if(tr
eeElement instanceof WebInspector.NavigatorSourceTreeElement) |
564 result.push(treeElement.uiSourceCode);}} | 586 result.push(treeElement.uiSourceCode);}} |
565 return result;},__proto__:TreeOutline.prototype} | 587 return result;},__proto__:TreeOutline.prototype} |
566 WebInspector.BaseNavigatorTreeElement=function(type,title,iconClasses,hasChildre
n,noIcon) | 588 WebInspector.BaseNavigatorTreeElement=function(type,title,iconClasses,hasChildre
n,noIcon) |
567 {this._type=type;TreeElement.call(this,"",null,hasChildren);this._titleText=titl
e;this._iconClasses=iconClasses;this._noIcon=noIcon;} | 589 {this._type=type;TreeElement.call(this,"",null,hasChildren);this._titleText=titl
e;this._iconClasses=iconClasses;this._noIcon=noIcon;} |
568 WebInspector.BaseNavigatorTreeElement.prototype={onattach:function() | 590 WebInspector.BaseNavigatorTreeElement.prototype={onattach:function() |
569 {this.listItemElement.removeChildren();if(this._iconClasses){for(var i=0;i<this.
_iconClasses.length;++i) | 591 {this.listItemElement.removeChildren();if(this._iconClasses){for(var i=0;i<this.
_iconClasses.length;++i) |
570 this.listItemElement.addStyleClass(this._iconClasses[i]);} | 592 this.listItemElement.addStyleClass(this._iconClasses[i]);} |
571 var selectionElement=document.createElement("div");selectionElement.className="s
election";this.listItemElement.appendChild(selectionElement);if(!this._noIcon){t
his.imageElement=document.createElement("img");this.imageElement.className="icon
";this.listItemElement.appendChild(this.imageElement);} | 593 var selectionElement=document.createElement("div");selectionElement.className="s
election";this.listItemElement.appendChild(selectionElement);if(!this._noIcon){t
his.imageElement=document.createElement("img");this.imageElement.className="icon
";this.listItemElement.appendChild(this.imageElement);} |
572 this.titleElement=document.createElement("div");this.titleElement.className="bas
e-navigator-tree-element-title";this._titleTextNode=document.createTextNode("");
this._titleTextNode.textContent=this._titleText;this.titleElement.appendChild(th
is._titleTextNode);this.listItemElement.appendChild(this.titleElement);},onrevea
l:function() | 594 this.titleElement=document.createElement("div");this.titleElement.className="bas
e-navigator-tree-element-title";this._titleTextNode=document.createTextNode("");
this._titleTextNode.textContent=this._titleText;this.titleElement.appendChild(th
is._titleTextNode);this.listItemElement.appendChild(this.titleElement);},updateI
conClasses:function(iconClasses) |
| 595 {for(var i=0;i<this._iconClasses.length;++i) |
| 596 this.listItemElement.removeStyleClass(this._iconClasses[i]);this._iconClasses=ic
onClasses;for(var i=0;i<this._iconClasses.length;++i) |
| 597 this.listItemElement.addStyleClass(this._iconClasses[i]);},onreveal:function() |
573 {if(this.listItemElement) | 598 {if(this.listItemElement) |
574 this.listItemElement.scrollIntoViewIfNeeded(true);},get titleText() | 599 this.listItemElement.scrollIntoViewIfNeeded(true);},get titleText() |
575 {return this._titleText;},set titleText(titleText) | 600 {return this._titleText;},set titleText(titleText) |
576 {if(this._titleText===titleText) | 601 {if(this._titleText===titleText) |
577 return;this._titleText=titleText||"";if(this.titleElement) | 602 return;this._titleText=titleText||"";if(this.titleElement) |
578 this.titleElement.textContent=this._titleText;},type:function() | 603 this.titleElement.textContent=this._titleText;},type:function() |
579 {return this._type;},__proto__:TreeElement.prototype} | 604 {return this._type;},__proto__:TreeElement.prototype} |
580 WebInspector.NavigatorFolderTreeElement=function(navigatorView,type,title) | 605 WebInspector.NavigatorFolderTreeElement=function(navigatorView,type,title) |
581 {var iconClass=WebInspector.NavigatorView.iconClassForType(type);WebInspector.Ba
seNavigatorTreeElement.call(this,type,title,[iconClass],true);this._navigatorVie
w=navigatorView;} | 606 {var iconClass=WebInspector.NavigatorView.iconClassForType(type);WebInspector.Ba
seNavigatorTreeElement.call(this,type,title,[iconClass],true);this._navigatorVie
w=navigatorView;} |
582 WebInspector.NavigatorFolderTreeElement.prototype={onpopulate:function() | 607 WebInspector.NavigatorFolderTreeElement.prototype={onpopulate:function() |
583 {this._node.populate();},onattach:function() | 608 {this._node.populate();},onattach:function() |
584 {WebInspector.BaseNavigatorTreeElement.prototype.onattach.call(this);this.collap
se();this.listItemElement.addEventListener("contextmenu",this._handleContextMenu
Event.bind(this),false);},setNode:function(node) | 609 {WebInspector.BaseNavigatorTreeElement.prototype.onattach.call(this);this.collap
se();this.listItemElement.addEventListener("contextmenu",this._handleContextMenu
Event.bind(this),false);},setNode:function(node) |
585 {this._node=node;var paths=[];while(node&&!node.isRoot()){paths.push(node._title
);node=node.parent;} | 610 {this._node=node;var paths=[];while(node&&!node.isRoot()){paths.push(node._title
);node=node.parent;} |
586 paths.reverse();this.tooltip=paths.join("/");},_handleContextMenuEvent:function(
event) | 611 paths.reverse();this.tooltip=paths.join("/");},_handleContextMenuEvent:function(
event) |
587 {if(!this._node) | 612 {if(!this._node) |
588 return;this.select();this._navigatorView.handleFolderContextMenu(event,this._nod
e);},__proto__:WebInspector.BaseNavigatorTreeElement.prototype} | 613 return;this.select();this._navigatorView.handleFolderContextMenu(event,this._nod
e);},__proto__:WebInspector.BaseNavigatorTreeElement.prototype} |
589 WebInspector.NavigatorSourceTreeElement=function(navigatorView,uiSourceCode,titl
e) | 614 WebInspector.NavigatorSourceTreeElement=function(navigatorView,uiSourceCode,titl
e) |
590 {WebInspector.BaseNavigatorTreeElement.call(this,WebInspector.NavigatorTreeOutli
ne.Types.UISourceCode,title,["navigator-"+uiSourceCode.contentType().name()+"-tr
ee-item"],false);this._navigatorView=navigatorView;this._uiSourceCode=uiSourceCo
de;this.tooltip=uiSourceCode.originURL();} | 615 {this._navigatorView=navigatorView;this._uiSourceCode=uiSourceCode;WebInspector.
BaseNavigatorTreeElement.call(this,WebInspector.NavigatorTreeOutline.Types.UISou
rceCode,title,this._calculateIconClasses(),false);this.tooltip=uiSourceCode.orig
inURL();} |
591 WebInspector.NavigatorSourceTreeElement.prototype={get uiSourceCode() | 616 WebInspector.NavigatorSourceTreeElement.prototype={get uiSourceCode() |
592 {return this._uiSourceCode;},onattach:function() | 617 {return this._uiSourceCode;},_calculateIconClasses:function() |
| 618 {return["navigator-"+this._uiSourceCode.contentType().name()+"-tree-item"];},upd
ateIcon:function() |
| 619 {this.updateIconClasses(this._calculateIconClasses());},onattach:function() |
593 {WebInspector.BaseNavigatorTreeElement.prototype.onattach.call(this);this.listIt
emElement.draggable=true;this.listItemElement.addEventListener("click",this._onc
lick.bind(this),false);this.listItemElement.addEventListener("contextmenu",this.
_handleContextMenuEvent.bind(this),false);this.listItemElement.addEventListener(
"mousedown",this._onmousedown.bind(this),false);this.listItemElement.addEventLis
tener("dragstart",this._ondragstart.bind(this),false);},_onmousedown:function(ev
ent) | 620 {WebInspector.BaseNavigatorTreeElement.prototype.onattach.call(this);this.listIt
emElement.draggable=true;this.listItemElement.addEventListener("click",this._onc
lick.bind(this),false);this.listItemElement.addEventListener("contextmenu",this.
_handleContextMenuEvent.bind(this),false);this.listItemElement.addEventListener(
"mousedown",this._onmousedown.bind(this),false);this.listItemElement.addEventLis
tener("dragstart",this._ondragstart.bind(this),false);},_onmousedown:function(ev
ent) |
594 {if(event.which===1) | 621 {if(event.which===1) |
595 this._uiSourceCode.requestContent(callback.bind(this));function callback(content
,contentEncoded,mimeType) | 622 this._uiSourceCode.requestContent(callback.bind(this));function callback(content
) |
596 {this._warmedUpContent=content;}},_shouldRenameOnMouseDown:function() | 623 {this._warmedUpContent=content;}},_shouldRenameOnMouseDown:function() |
597 {if(!this._uiSourceCode.canRename()) | 624 {if(!this._uiSourceCode.canRename()) |
598 return false;var isSelected=this===this.treeOutline.selectedTreeElement;var isFo
cused=this.treeOutline.childrenListElement.isSelfOrAncestor(document.activeEleme
nt);return isSelected&&isFocused&&!WebInspector.isBeingEdited(this.treeOutline.e
lement);},selectOnMouseDown:function(event) | 625 return false;var isSelected=this===this.treeOutline.selectedTreeElement;var isFo
cused=this.treeOutline.childrenListElement.isSelfOrAncestor(document.activeEleme
nt);return isSelected&&isFocused&&!WebInspector.isBeingEdited(this.treeOutline.e
lement);},selectOnMouseDown:function(event) |
599 {if(event.which!==1||!this._shouldRenameOnMouseDown()){TreeElement.prototype.sel
ectOnMouseDown.call(this,event);return;} | 626 {if(event.which!==1||!this._shouldRenameOnMouseDown()){TreeElement.prototype.sel
ectOnMouseDown.call(this,event);return;} |
600 setTimeout(rename.bind(this),300);function rename() | 627 setTimeout(rename.bind(this),300);function rename() |
601 {if(this._shouldRenameOnMouseDown()) | 628 {if(this._shouldRenameOnMouseDown()) |
602 this._navigatorView.requestRename(this._uiSourceCode);}},_ondragstart:function(e
vent) | 629 this._navigatorView.requestRename(this._uiSourceCode);}},_ondragstart:function(e
vent) |
603 {event.dataTransfer.setData("text/plain",this._warmedUpContent);event.dataTransf
er.effectAllowed="copy";return true;},onspace:function() | 630 {event.dataTransfer.setData("text/plain",this._warmedUpContent);event.dataTransf
er.effectAllowed="copy";return true;},onspace:function() |
604 {this._navigatorView._sourceSelected(this.uiSourceCode,true);return true;},_oncl
ick:function(event) | 631 {this._navigatorView._sourceSelected(this.uiSourceCode,true);return true;},_oncl
ick:function(event) |
605 {this._navigatorView._sourceSelected(this.uiSourceCode,false);},ondblclick:funct
ion(event) | 632 {this._navigatorView._sourceSelected(this.uiSourceCode,false);},ondblclick:funct
ion(event) |
606 {var middleClick=event.button===1;this._navigatorView._sourceSelected(this.uiSou
rceCode,!middleClick);},onenter:function() | 633 {var middleClick=event.button===1;this._navigatorView._sourceSelected(this.uiSou
rceCode,!middleClick);},onenter:function() |
607 {this._navigatorView._sourceSelected(this.uiSourceCode,true);return true;},_hand
leContextMenuEvent:function(event) | 634 {this._navigatorView._sourceSelected(this.uiSourceCode,true);return true;},ondel
ete:function() |
| 635 {this._navigatorView.sourceDeleted(this.uiSourceCode);return true;},_handleConte
xtMenuEvent:function(event) |
608 {this.select();this._navigatorView.handleFileContextMenu(event,this._uiSourceCod
e);},__proto__:WebInspector.BaseNavigatorTreeElement.prototype} | 636 {this.select();this._navigatorView.handleFileContextMenu(event,this._uiSourceCod
e);},__proto__:WebInspector.BaseNavigatorTreeElement.prototype} |
609 WebInspector.NavigatorTreeNode=function(id) | 637 WebInspector.NavigatorTreeNode=function(id) |
610 {this.id=id;this._children=new StringMap();} | 638 {this.id=id;this._children=new StringMap();} |
611 WebInspector.NavigatorTreeNode.prototype={treeElement:function(){},dispose:funct
ion(){},isRoot:function() | 639 WebInspector.NavigatorTreeNode.prototype={treeElement:function(){},dispose:funct
ion(){},isRoot:function() |
612 {return false;},hasChildren:function() | 640 {return false;},hasChildren:function() |
613 {return true;},populate:function() | 641 {return true;},populate:function() |
614 {if(this.isPopulated()) | 642 {if(this.isPopulated()) |
615 return;if(this.parent) | 643 return;if(this.parent) |
616 this.parent.populate();this._populated=true;this.wasPopulated();},wasPopulated:f
unction() | 644 this.parent.populate();this._populated=true;this.wasPopulated();},wasPopulated:f
unction() |
617 {var children=this.children();for(var i=0;i<children.length;++i) | 645 {var children=this.children();for(var i=0;i<children.length;++i) |
(...skipping 10 matching lines...) Expand all Loading... |
628 {this.willRemoveChild(node);this._children.remove(node.id);delete node.parent;no
de.dispose();},reset:function() | 656 {this.willRemoveChild(node);this._children.remove(node.id);delete node.parent;no
de.dispose();},reset:function() |
629 {this._children.clear();}} | 657 {this._children.clear();}} |
630 WebInspector.NavigatorRootTreeNode=function(navigatorView) | 658 WebInspector.NavigatorRootTreeNode=function(navigatorView) |
631 {WebInspector.NavigatorTreeNode.call(this,"");this._navigatorView=navigatorView;
} | 659 {WebInspector.NavigatorTreeNode.call(this,"");this._navigatorView=navigatorView;
} |
632 WebInspector.NavigatorRootTreeNode.prototype={isRoot:function() | 660 WebInspector.NavigatorRootTreeNode.prototype={isRoot:function() |
633 {return true;},treeElement:function() | 661 {return true;},treeElement:function() |
634 {return this._navigatorView._scriptsTree;},__proto__:WebInspector.NavigatorTreeN
ode.prototype} | 662 {return this._navigatorView._scriptsTree;},__proto__:WebInspector.NavigatorTreeN
ode.prototype} |
635 WebInspector.NavigatorUISourceCodeTreeNode=function(navigatorView,uiSourceCode) | 663 WebInspector.NavigatorUISourceCodeTreeNode=function(navigatorView,uiSourceCode) |
636 {WebInspector.NavigatorTreeNode.call(this,uiSourceCode.name());this._navigatorVi
ew=navigatorView;this._uiSourceCode=uiSourceCode;this._treeElement=null;} | 664 {WebInspector.NavigatorTreeNode.call(this,uiSourceCode.name());this._navigatorVi
ew=navigatorView;this._uiSourceCode=uiSourceCode;this._treeElement=null;} |
637 WebInspector.NavigatorUISourceCodeTreeNode.prototype={uiSourceCode:function() | 665 WebInspector.NavigatorUISourceCodeTreeNode.prototype={uiSourceCode:function() |
638 {return this._uiSourceCode;},treeElement:function() | 666 {return this._uiSourceCode;},updateIcon:function() |
| 667 {if(this._treeElement) |
| 668 this._treeElement.updateIcon();},treeElement:function() |
639 {if(this._treeElement) | 669 {if(this._treeElement) |
640 return this._treeElement;this._treeElement=new WebInspector.NavigatorSourceTreeE
lement(this._navigatorView,this._uiSourceCode,"");this.updateTitle();this._uiSou
rceCode.addEventListener(WebInspector.UISourceCode.Events.TitleChanged,this._tit
leChanged,this);this._uiSourceCode.addEventListener(WebInspector.UISourceCode.Ev
ents.WorkingCopyChanged,this._workingCopyChanged,this);this._uiSourceCode.addEve
ntListener(WebInspector.UISourceCode.Events.WorkingCopyCommitted,this._workingCo
pyCommitted,this);this._uiSourceCode.addEventListener(WebInspector.UISourceCode.
Events.FormattedChanged,this._formattedChanged,this);return this._treeElement;},
updateTitle:function(ignoreIsDirty) | 670 return this._treeElement;this._treeElement=new WebInspector.NavigatorSourceTreeE
lement(this._navigatorView,this._uiSourceCode,"");this.updateTitle();this._uiSou
rceCode.addEventListener(WebInspector.UISourceCode.Events.TitleChanged,this._tit
leChanged,this);this._uiSourceCode.addEventListener(WebInspector.UISourceCode.Ev
ents.WorkingCopyChanged,this._workingCopyChanged,this);this._uiSourceCode.addEve
ntListener(WebInspector.UISourceCode.Events.WorkingCopyCommitted,this._workingCo
pyCommitted,this);this._uiSourceCode.addEventListener(WebInspector.UISourceCode.
Events.FormattedChanged,this._formattedChanged,this);return this._treeElement;},
updateTitle:function(ignoreIsDirty) |
641 {if(!this._treeElement) | 671 {if(!this._treeElement) |
642 return;var titleText=this._uiSourceCode.displayName();if(!ignoreIsDirty&&(this._
uiSourceCode.isDirty()||this._uiSourceCode.hasUnsavedCommittedChanges())) | 672 return;var titleText=this._uiSourceCode.displayName();if(!ignoreIsDirty&&(this._
uiSourceCode.isDirty()||this._uiSourceCode.hasUnsavedCommittedChanges())) |
643 titleText="*"+titleText;this._treeElement.titleText=titleText;},hasChildren:func
tion() | 673 titleText="*"+titleText;this._treeElement.titleText=titleText;},hasChildren:func
tion() |
644 {return false;},dispose:function() | 674 {return false;},dispose:function() |
645 {if(!this._treeElement) | 675 {if(!this._treeElement) |
646 return;this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events.T
itleChanged,this._titleChanged,this);this._uiSourceCode.removeEventListener(WebI
nspector.UISourceCode.Events.WorkingCopyChanged,this._workingCopyChanged,this);t
his._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events.WorkingCo
pyCommitted,this._workingCopyCommitted,this);this._uiSourceCode.removeEventListe
ner(WebInspector.UISourceCode.Events.FormattedChanged,this._formattedChanged,thi
s);},_titleChanged:function(event) | 676 return;this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events.T
itleChanged,this._titleChanged,this);this._uiSourceCode.removeEventListener(WebI
nspector.UISourceCode.Events.WorkingCopyChanged,this._workingCopyChanged,this);t
his._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events.WorkingCo
pyCommitted,this._workingCopyCommitted,this);this._uiSourceCode.removeEventListe
ner(WebInspector.UISourceCode.Events.FormattedChanged,this._formattedChanged,thi
s);},_titleChanged:function(event) |
647 {this.updateTitle();},_workingCopyChanged:function(event) | 677 {this.updateTitle();},_workingCopyChanged:function(event) |
648 {this.updateTitle();},_workingCopyCommitted:function(event) | 678 {this.updateTitle();},_workingCopyCommitted:function(event) |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
685 var oldTreeElement=this._treeElement;var treeElement=this._createTreeElement(tit
leText,this);for(var i=0;i<mergedToNodes.length;++i) | 715 var oldTreeElement=this._treeElement;var treeElement=this._createTreeElement(tit
leText,this);for(var i=0;i<mergedToNodes.length;++i) |
686 mergedToNodes[i]._treeElement=treeElement;oldTreeElement.parent.appendChild(tree
Element);oldTreeElement.setNode(nodes[nodes.length-1]);oldTreeElement.titleText=
nodes.map(titleForNode).join("/");oldTreeElement.parent.removeChild(oldTreeEleme
nt);this._treeElement.appendChild(oldTreeElement);if(oldTreeElement.expanded) | 716 mergedToNodes[i]._treeElement=treeElement;oldTreeElement.parent.appendChild(tree
Element);oldTreeElement.setNode(nodes[nodes.length-1]);oldTreeElement.titleText=
nodes.map(titleForNode).join("/");oldTreeElement.parent.removeChild(oldTreeEleme
nt);this._treeElement.appendChild(oldTreeElement);if(oldTreeElement.expanded) |
687 treeElement.expand();} | 717 treeElement.expand();} |
688 if(this.isPopulated()) | 718 if(this.isPopulated()) |
689 this._treeElement.appendChild(node.treeElement());},willRemoveChild:function(nod
e) | 719 this._treeElement.appendChild(node.treeElement());},willRemoveChild:function(nod
e) |
690 {if(node._isMerged||!this.isPopulated()) | 720 {if(node._isMerged||!this.isPopulated()) |
691 return;this._treeElement.removeChild(node._treeElement);},__proto__:WebInspector
.NavigatorTreeNode.prototype};WebInspector.RevisionHistoryView=function() | 721 return;this._treeElement.removeChild(node._treeElement);},__proto__:WebInspector
.NavigatorTreeNode.prototype};WebInspector.RevisionHistoryView=function() |
692 {WebInspector.View.call(this);this.registerRequiredCSS("revisionHistory.css");th
is.element.addStyleClass("revision-history-drawer");this.element.addStyleClass("
fill");this.element.addStyleClass("outline-disclosure");this._uiSourceCodeItems=
new Map();var olElement=this.element.createChild("ol");this._treeOutline=new Tre
eOutline(olElement);function populateRevisions(uiSourceCode) | 722 {WebInspector.View.call(this);this.registerRequiredCSS("revisionHistory.css");th
is.element.addStyleClass("revision-history-drawer");this.element.addStyleClass("
fill");this.element.addStyleClass("outline-disclosure");this._uiSourceCodeItems=
new Map();var olElement=this.element.createChild("ol");this._treeOutline=new Tre
eOutline(olElement);function populateRevisions(uiSourceCode) |
693 {if(uiSourceCode.history.length) | 723 {if(uiSourceCode.history.length) |
694 this._createUISourceCodeItem(uiSourceCode);} | 724 this._createUISourceCodeItem(uiSourceCode);} |
695 WebInspector.workspace.uiSourceCodes().forEach(populateRevisions.bind(this));Web
Inspector.workspace.addEventListener(WebInspector.Workspace.Events.UISourceCodeC
ontentCommitted,this._revisionAdded,this);WebInspector.workspace.addEventListene
r(WebInspector.Workspace.Events.UISourceCodeRemoved,this._uiSourceCodeRemoved,th
is);WebInspector.workspace.addEventListener(WebInspector.Workspace.Events.Projec
tWillReset,this._projectWillReset,this);this._statusElement=document.createEleme
nt("span");this._statusElement.textContent=WebInspector.UIString("Local modifica
tions");} | 725 WebInspector.workspace.uiSourceCodes().forEach(populateRevisions.bind(this));Web
Inspector.workspace.addEventListener(WebInspector.Workspace.Events.UISourceCodeC
ontentCommitted,this._revisionAdded,this);WebInspector.workspace.addEventListene
r(WebInspector.Workspace.Events.UISourceCodeRemoved,this._uiSourceCodeRemoved,th
is);WebInspector.workspace.addEventListener(WebInspector.Workspace.Events.Projec
tWillReset,this._projectWillReset,this);} |
696 WebInspector.RevisionHistoryView.showHistory=function(uiSourceCode) | 726 WebInspector.RevisionHistoryView.showHistory=function(uiSourceCode) |
697 {if(!WebInspector.RevisionHistoryView._view) | 727 {if(!WebInspector.RevisionHistoryView._view) |
698 WebInspector.RevisionHistoryView._view=new WebInspector.RevisionHistoryView();va
r view=WebInspector.RevisionHistoryView._view;WebInspector.showViewInDrawer(view
._statusElement,view);view._revealUISourceCode(uiSourceCode);} | 728 WebInspector.RevisionHistoryView._view=new WebInspector.RevisionHistoryView();va
r view=WebInspector.RevisionHistoryView._view;WebInspector.inspectorView.showClo
seableViewInDrawer("history",WebInspector.UIString("History"),view);view._reveal
UISourceCode(uiSourceCode);} |
699 WebInspector.RevisionHistoryView.prototype={_createUISourceCodeItem:function(uiS
ourceCode) | 729 WebInspector.RevisionHistoryView.prototype={_createUISourceCodeItem:function(uiS
ourceCode) |
700 {var uiSourceCodeItem=new TreeElement(uiSourceCode.displayName(),null,true);uiSo
urceCodeItem.selectable=false;for(var i=0;i<this._treeOutline.children.length;++
i){if(this._treeOutline.children[i].title.localeCompare(uiSourceCode.displayName
())>0){this._treeOutline.insertChild(uiSourceCodeItem,i);break;}} | 730 {var uiSourceCodeItem=new TreeElement(uiSourceCode.displayName(),null,true);uiSo
urceCodeItem.selectable=false;for(var i=0;i<this._treeOutline.children.length;++
i){if(this._treeOutline.children[i].title.localeCompare(uiSourceCode.displayName
())>0){this._treeOutline.insertChild(uiSourceCodeItem,i);break;}} |
701 if(i===this._treeOutline.children.length) | 731 if(i===this._treeOutline.children.length) |
702 this._treeOutline.appendChild(uiSourceCodeItem);this._uiSourceCodeItems.put(uiSo
urceCode,uiSourceCodeItem);var revisionCount=uiSourceCode.history.length;for(var
i=revisionCount-1;i>=0;--i){var revision=uiSourceCode.history[i];var historyIte
m=new WebInspector.RevisionHistoryTreeElement(revision,uiSourceCode.history[i-1]
,i!==revisionCount-1);uiSourceCodeItem.appendChild(historyItem);} | 732 this._treeOutline.appendChild(uiSourceCodeItem);this._uiSourceCodeItems.put(uiSo
urceCode,uiSourceCodeItem);var revisionCount=uiSourceCode.history.length;for(var
i=revisionCount-1;i>=0;--i){var revision=uiSourceCode.history[i];var historyIte
m=new WebInspector.RevisionHistoryTreeElement(revision,uiSourceCode.history[i-1]
,i!==revisionCount-1);uiSourceCodeItem.appendChild(historyItem);} |
703 var linkItem=new TreeElement("",null,false);linkItem.selectable=false;uiSourceCo
deItem.appendChild(linkItem);var revertToOriginal=linkItem.listItemElement.creat
eChild("span","revision-history-link revision-history-link-row");revertToOrigina
l.textContent=WebInspector.UIString("apply original content");revertToOriginal.a
ddEventListener("click",uiSourceCode.revertToOriginal.bind(uiSourceCode));var cl
earHistoryElement=uiSourceCodeItem.listItemElement.createChild("span","revision-
history-link");clearHistoryElement.textContent=WebInspector.UIString("revert");c
learHistoryElement.addEventListener("click",this._clearHistory.bind(this,uiSourc
eCode));return uiSourceCodeItem;},_clearHistory:function(uiSourceCode) | 733 var linkItem=new TreeElement("",null,false);linkItem.selectable=false;uiSourceCo
deItem.appendChild(linkItem);var revertToOriginal=linkItem.listItemElement.creat
eChild("span","revision-history-link revision-history-link-row");revertToOrigina
l.textContent=WebInspector.UIString("apply original content");revertToOriginal.a
ddEventListener("click",uiSourceCode.revertToOriginal.bind(uiSourceCode));var cl
earHistoryElement=uiSourceCodeItem.listItemElement.createChild("span","revision-
history-link");clearHistoryElement.textContent=WebInspector.UIString("revert");c
learHistoryElement.addEventListener("click",this._clearHistory.bind(this,uiSourc
eCode));return uiSourceCodeItem;},_clearHistory:function(uiSourceCode) |
704 {uiSourceCode.revertAndClearHistory(this._removeUISourceCode.bind(this));},_revi
sionAdded:function(event) | 734 {uiSourceCode.revertAndClearHistory(this._removeUISourceCode.bind(this));},_revi
sionAdded:function(event) |
705 {var uiSourceCode=(event.data.uiSourceCode);var uiSourceCodeItem=this._uiSourceC
odeItems.get(uiSourceCode);if(!uiSourceCodeItem){uiSourceCodeItem=this._createUI
SourceCodeItem(uiSourceCode);return;} | 735 {var uiSourceCode=(event.data.uiSourceCode);var uiSourceCodeItem=this._uiSourceC
odeItems.get(uiSourceCode);if(!uiSourceCodeItem){uiSourceCodeItem=this._createUI
SourceCodeItem(uiSourceCode);return;} |
706 var historyLength=uiSourceCode.history.length;var historyItem=new WebInspector.R
evisionHistoryTreeElement(uiSourceCode.history[historyLength-1],uiSourceCode.his
tory[historyLength-2],false);if(uiSourceCodeItem.children.length) | 736 var historyLength=uiSourceCode.history.length;var historyItem=new WebInspector.R
evisionHistoryTreeElement(uiSourceCode.history[historyLength-1],uiSourceCode.his
tory[historyLength-2],false);if(uiSourceCodeItem.children.length) |
707 uiSourceCodeItem.children[0].allowRevert();uiSourceCodeItem.insertChild(historyI
tem,0);},_revealUISourceCode:function(uiSourceCode) | 737 uiSourceCodeItem.children[0].allowRevert();uiSourceCodeItem.insertChild(historyI
tem,0);},_revealUISourceCode:function(uiSourceCode) |
708 {var uiSourceCodeItem=this._uiSourceCodeItems.get(uiSourceCode);if(uiSourceCodeI
tem){uiSourceCodeItem.reveal();uiSourceCodeItem.expand();}},_uiSourceCodeRemoved
:function(event) | 738 {var uiSourceCodeItem=this._uiSourceCodeItems.get(uiSourceCode);if(uiSourceCodeI
tem){uiSourceCodeItem.reveal();uiSourceCodeItem.expand();}},_uiSourceCodeRemoved
:function(event) |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
760 WebInspector.SourcesNavigator.SourcesTab="sources";WebInspector.SourcesNavigator
.ContentScriptsTab="contentScripts";WebInspector.SourcesNavigator.SnippetsTab="s
nippets";WebInspector.SourcesNavigator.prototype={get view() | 790 WebInspector.SourcesNavigator.SourcesTab="sources";WebInspector.SourcesNavigator
.ContentScriptsTab="contentScripts";WebInspector.SourcesNavigator.SnippetsTab="s
nippets";WebInspector.SourcesNavigator.prototype={get view() |
761 {return this._tabbedPane;},_navigatorViewForUISourceCode:function(uiSourceCode) | 791 {return this._tabbedPane;},_navigatorViewForUISourceCode:function(uiSourceCode) |
762 {if(uiSourceCode.isContentScript) | 792 {if(uiSourceCode.isContentScript) |
763 return this._contentScriptsView;else if(uiSourceCode.project().type()===WebInspe
ctor.projectTypes.Snippets) | 793 return this._contentScriptsView;else if(uiSourceCode.project().type()===WebInspe
ctor.projectTypes.Snippets) |
764 return this._snippetsView;else | 794 return this._snippetsView;else |
765 return this._sourcesView;},addUISourceCode:function(uiSourceCode) | 795 return this._sourcesView;},addUISourceCode:function(uiSourceCode) |
766 {this._navigatorViewForUISourceCode(uiSourceCode).addUISourceCode(uiSourceCode);
},removeUISourceCode:function(uiSourceCode) | 796 {this._navigatorViewForUISourceCode(uiSourceCode).addUISourceCode(uiSourceCode);
},removeUISourceCode:function(uiSourceCode) |
767 {this._navigatorViewForUISourceCode(uiSourceCode).removeUISourceCode(uiSourceCod
e);},revealUISourceCode:function(uiSourceCode,select) | 797 {this._navigatorViewForUISourceCode(uiSourceCode).removeUISourceCode(uiSourceCod
e);},revealUISourceCode:function(uiSourceCode,select) |
768 {this._navigatorViewForUISourceCode(uiSourceCode).revealUISourceCode(uiSourceCod
e,select);if(uiSourceCode.isContentScript) | 798 {this._navigatorViewForUISourceCode(uiSourceCode).revealUISourceCode(uiSourceCod
e,select);if(uiSourceCode.isContentScript) |
769 this._tabbedPane.selectTab(WebInspector.SourcesNavigator.ContentScriptsTab);else
if(uiSourceCode.project().type()!==WebInspector.projectTypes.Snippets) | 799 this._tabbedPane.selectTab(WebInspector.SourcesNavigator.ContentScriptsTab);else
if(uiSourceCode.project().type()!==WebInspector.projectTypes.Snippets) |
770 this._tabbedPane.selectTab(WebInspector.SourcesNavigator.SourcesTab);},rename:fu
nction(uiSourceCode,callback) | 800 this._tabbedPane.selectTab(WebInspector.SourcesNavigator.SourcesTab);},updateIco
n:function(uiSourceCode) |
| 801 {this._navigatorViewForUISourceCode(uiSourceCode).updateIcon(uiSourceCode);},ren
ame:function(uiSourceCode,callback) |
771 {this._navigatorViewForUISourceCode(uiSourceCode).rename(uiSourceCode,callback);
},_sourceSelected:function(event) | 802 {this._navigatorViewForUISourceCode(uiSourceCode).rename(uiSourceCode,callback);
},_sourceSelected:function(event) |
772 {this.dispatchEventToListeners(WebInspector.SourcesNavigator.Events.SourceSelect
ed,event.data);},_itemSearchStarted:function(event) | 803 {this.dispatchEventToListeners(WebInspector.SourcesNavigator.Events.SourceSelect
ed,event.data);},_itemSearchStarted:function(event) |
773 {this.dispatchEventToListeners(WebInspector.SourcesNavigator.Events.ItemSearchSt
arted,event.data);},_itemRenamingRequested:function(event) | 804 {this.dispatchEventToListeners(WebInspector.SourcesNavigator.Events.ItemSearchSt
arted,event.data);},_itemRenamingRequested:function(event) |
774 {this.dispatchEventToListeners(WebInspector.SourcesNavigator.Events.ItemRenaming
Requested,event.data);},_itemCreationRequested:function(event) | 805 {this.dispatchEventToListeners(WebInspector.SourcesNavigator.Events.ItemRenaming
Requested,event.data);},_itemCreationRequested:function(event) |
775 {this.dispatchEventToListeners(WebInspector.SourcesNavigator.Events.ItemCreation
Requested,event.data);},__proto__:WebInspector.Object.prototype} | 806 {this.dispatchEventToListeners(WebInspector.SourcesNavigator.Events.ItemCreation
Requested,event.data);},__proto__:WebInspector.Object.prototype} |
776 WebInspector.SnippetsNavigatorView=function() | 807 WebInspector.SnippetsNavigatorView=function() |
777 {WebInspector.NavigatorView.call(this);} | 808 {WebInspector.NavigatorView.call(this);} |
778 WebInspector.SnippetsNavigatorView.prototype={handleContextMenu:function(event) | 809 WebInspector.SnippetsNavigatorView.prototype={handleContextMenu:function(event) |
779 {var contextMenu=new WebInspector.ContextMenu(event);contextMenu.appendItem(WebI
nspector.UIString("New"),this._handleCreateSnippet.bind(this));contextMenu.show(
);},handleFileContextMenu:function(event,uiSourceCode) | 810 {var contextMenu=new WebInspector.ContextMenu(event);contextMenu.appendItem(WebI
nspector.UIString("New"),this._handleCreateSnippet.bind(this));contextMenu.show(
);},handleFileContextMenu:function(event,uiSourceCode) |
780 {var contextMenu=new WebInspector.ContextMenu(event);contextMenu.appendItem(WebI
nspector.UIString("Run"),this._handleEvaluateSnippet.bind(this,uiSourceCode));co
ntextMenu.appendItem(WebInspector.UIString("Rename"),this.requestRename.bind(thi
s,uiSourceCode));contextMenu.appendItem(WebInspector.UIString("Remove"),this._ha
ndleRemoveSnippet.bind(this,uiSourceCode));contextMenu.appendSeparator();context
Menu.appendItem(WebInspector.UIString("New"),this._handleCreateSnippet.bind(this
));contextMenu.show();},_handleEvaluateSnippet:function(uiSourceCode) | 811 {var contextMenu=new WebInspector.ContextMenu(event);contextMenu.appendItem(WebI
nspector.UIString("Run"),this._handleEvaluateSnippet.bind(this,uiSourceCode));co
ntextMenu.appendItem(WebInspector.UIString("Rename"),this.requestRename.bind(thi
s,uiSourceCode));contextMenu.appendItem(WebInspector.UIString("Remove"),this._ha
ndleRemoveSnippet.bind(this,uiSourceCode));contextMenu.appendSeparator();context
Menu.appendItem(WebInspector.UIString("New"),this._handleCreateSnippet.bind(this
));contextMenu.show();},_handleEvaluateSnippet:function(uiSourceCode) |
781 {if(uiSourceCode.project().type()!==WebInspector.projectTypes.Snippets) | 812 {if(uiSourceCode.project().type()!==WebInspector.projectTypes.Snippets) |
782 return;WebInspector.scriptSnippetModel.evaluateScriptSnippet(uiSourceCode);},_ha
ndleRemoveSnippet:function(uiSourceCode) | 813 return;WebInspector.scriptSnippetModel.evaluateScriptSnippet(uiSourceCode);},_ha
ndleRemoveSnippet:function(uiSourceCode) |
783 {if(uiSourceCode.project().type()!==WebInspector.projectTypes.Snippets) | 814 {if(uiSourceCode.project().type()!==WebInspector.projectTypes.Snippets) |
784 return;uiSourceCode.project().deleteFile(uiSourceCode);},_handleCreateSnippet:fu
nction() | 815 return;uiSourceCode.project().deleteFile(uiSourceCode.path());},_handleCreateSni
ppet:function() |
785 {var data={};data.project=WebInspector.scriptSnippetModel.project();data.path=""
;this.dispatchEventToListeners(WebInspector.NavigatorView.Events.ItemCreationReq
uested,data);},__proto__:WebInspector.NavigatorView.prototype};WebInspector.Sour
cesSearchScope=function(workspace) | 816 {var data={};data.project=WebInspector.scriptSnippetModel.project();data.path=""
;this.dispatchEventToListeners(WebInspector.NavigatorView.Events.ItemCreationReq
uested,data);},sourceDeleted:function(uiSourceCode) |
| 817 {this._handleRemoveSnippet(uiSourceCode);},__proto__:WebInspector.NavigatorView.
prototype};WebInspector.SourcesSearchScope=function(workspace) |
786 {WebInspector.SearchScope.call(this) | 818 {WebInspector.SearchScope.call(this) |
787 this._searchId=0;this._workspace=workspace;} | 819 this._searchId=0;this._workspace=workspace;} |
788 WebInspector.SourcesSearchScope.prototype={performIndexing:function(progress,ind
exingFinishedCallback) | 820 WebInspector.SourcesSearchScope.prototype={performIndexing:function(progress,ind
exingFinishedCallback) |
789 {this.stopSearch();function filterOutServiceProjects(project) | 821 {this.stopSearch();function filterOutServiceProjects(project) |
790 {return!project.isServiceProject();} | 822 {return!project.isServiceProject();} |
791 var projects=this._workspace.projects().filter(filterOutServiceProjects);var bar
rier=new CallbackBarrier();var compositeProgress=new WebInspector.CompositeProgr
ess(progress);progress.addEventListener(WebInspector.Progress.Events.Canceled,in
dexingCanceled.bind(this));for(var i=0;i<projects.length;++i){var project=projec
ts[i];var projectProgress=compositeProgress.createSubProgress(project.uiSourceCo
des().length);project.indexContent(projectProgress,barrier.createCallback());} | 823 var projects=this._workspace.projects().filter(filterOutServiceProjects);var bar
rier=new CallbackBarrier();var compositeProgress=new WebInspector.CompositeProgr
ess(progress);progress.addEventListener(WebInspector.Progress.Events.Canceled,in
dexingCanceled.bind(this));for(var i=0;i<projects.length;++i){var project=projec
ts[i];var projectProgress=compositeProgress.createSubProgress(project.uiSourceCo
des().length);project.indexContent(projectProgress,barrier.createCallback());} |
792 barrier.callWhenDone(indexingFinishedCallback.bind(this,true));function indexing
Canceled() | 824 barrier.callWhenDone(indexingFinishedCallback.bind(this,true));function indexing
Canceled() |
793 {indexingFinishedCallback(false);progress.done();}},performSearch:function(searc
hConfig,progress,searchResultCallback,searchFinishedCallback) | 825 {indexingFinishedCallback(false);progress.done();}},performSearch:function(searc
hConfig,progress,searchResultCallback,searchFinishedCallback) |
794 {this.stopSearch();function filterOutServiceProjects(project) | 826 {this.stopSearch();function filterOutServiceProjects(project) |
795 {return!project.isServiceProject();} | 827 {return!project.isServiceProject();} |
(...skipping 15 matching lines...) Expand all Loading... |
811 {function didGetAllStyleSheets(error,infos) | 843 {function didGetAllStyleSheets(error,infos) |
812 {if(error) | 844 {if(error) |
813 return;for(var i=0;i<infos.length;++i){var info=infos[i];if(info.sourceURL===thi
s._uiSourceCode.url){WebInspector.CSSStyleSheet.createForId(info.styleSheetId,di
dGetStyleSheet.bind(this));return;}}} | 845 return;for(var i=0;i<infos.length;++i){var info=infos[i];if(info.sourceURL===thi
s._uiSourceCode.url){WebInspector.CSSStyleSheet.createForId(info.styleSheetId,di
dGetStyleSheet.bind(this));return;}}} |
814 CSSAgent.getAllStyleSheets(didGetAllStyleSheets.bind(this));function didGetStyle
Sheet(styleSheet) | 846 CSSAgent.getAllStyleSheets(didGetAllStyleSheets.bind(this));function didGetStyle
Sheet(styleSheet) |
815 {if(!styleSheet) | 847 {if(!styleSheet) |
816 return;this._rules=styleSheet.rules;this.refresh();}},selectItem:function(itemIn
dex,promptValue) | 848 return;this._rules=styleSheet.rules;this.refresh();}},selectItem:function(itemIn
dex,promptValue) |
817 {var rule=this._rules[itemIndex];var lineNumber=rule.rawLocation.lineNumber;if(!
isNaN(lineNumber)&&lineNumber>=0) | 849 {var rule=this._rules[itemIndex];var lineNumber=rule.rawLocation.lineNumber;if(!
isNaN(lineNumber)&&lineNumber>=0) |
818 this._view.highlightPosition(lineNumber,rule.rawLocation.columnNumber);this._vie
w.focus();},__proto__:WebInspector.SelectionDialogContentProvider.prototype};Web
Inspector.TabbedEditorContainerDelegate=function(){} | 850 this._view.highlightPosition(lineNumber,rule.rawLocation.columnNumber);this._vie
w.focus();},__proto__:WebInspector.SelectionDialogContentProvider.prototype};Web
Inspector.TabbedEditorContainerDelegate=function(){} |
819 WebInspector.TabbedEditorContainerDelegate.prototype={viewForFile:function(uiSou
rceCode){}} | 851 WebInspector.TabbedEditorContainerDelegate.prototype={viewForFile:function(uiSou
rceCode){}} |
820 WebInspector.TabbedEditorContainer=function(delegate,settingName,placeholderText
) | 852 WebInspector.TabbedEditorContainer=function(delegate,settingName,placeholderText
) |
821 {WebInspector.Object.call(this);this._delegate=delegate;this._tabbedPane=new Web
Inspector.TabbedPane();this._tabbedPane.setPlaceholderText(placeholderText);this
._tabbedPane.setTabDelegate(new WebInspector.EditorContainerTabDelegate(this));t
his._tabbedPane.closeableTabs=true;this._tabbedPane.element.id="scripts-editor-c
ontainer-tabbed-pane";this._tabbedPane.addEventListener(WebInspector.TabbedPane.
EventTypes.TabClosed,this._tabClosed,this);this._tabbedPane.addEventListener(Web
Inspector.TabbedPane.EventTypes.TabSelected,this._tabSelected,this);this._tabIds
=new Map();this._files={};this._previouslyViewedFilesSetting=WebInspector.settin
gs.createSetting(settingName,[]);this._history=WebInspector.TabbedEditorContaine
r.History.fromObject(this._previouslyViewedFilesSetting.get());} | 853 {WebInspector.Object.call(this);this._delegate=delegate;this._tabbedPane=new Web
Inspector.TabbedPane();this._tabbedPane.setPlaceholderText(placeholderText);this
._tabbedPane.setTabDelegate(new WebInspector.EditorContainerTabDelegate(this));t
his._tabbedPane.closeableTabs=true;this._tabbedPane.element.id="sources-editor-c
ontainer-tabbed-pane";this._tabbedPane.addEventListener(WebInspector.TabbedPane.
EventTypes.TabClosed,this._tabClosed,this);this._tabbedPane.addEventListener(Web
Inspector.TabbedPane.EventTypes.TabSelected,this._tabSelected,this);this._tabIds
=new Map();this._files={};this._previouslyViewedFilesSetting=WebInspector.settin
gs.createSetting(settingName,[]);this._history=WebInspector.TabbedEditorContaine
r.History.fromObject(this._previouslyViewedFilesSetting.get());} |
822 WebInspector.TabbedEditorContainer.Events={EditorSelected:"EditorSelected",Edito
rClosed:"EditorClosed"} | 854 WebInspector.TabbedEditorContainer.Events={EditorSelected:"EditorSelected",Edito
rClosed:"EditorClosed"} |
823 WebInspector.TabbedEditorContainer._tabId=0;WebInspector.TabbedEditorContainer.m
aximalPreviouslyViewedFilesCount=30;WebInspector.TabbedEditorContainer.prototype
={get view() | 855 WebInspector.TabbedEditorContainer._tabId=0;WebInspector.TabbedEditorContainer.m
aximalPreviouslyViewedFilesCount=30;WebInspector.TabbedEditorContainer.prototype
={get view() |
824 {return this._tabbedPane;},get visibleView() | 856 {return this._tabbedPane;},get visibleView() |
825 {return this._tabbedPane.visibleView;},show:function(parentElement) | 857 {return this._tabbedPane.visibleView;},show:function(parentElement) |
826 {this._tabbedPane.show(parentElement);},showFile:function(uiSourceCode) | 858 {this._tabbedPane.show(parentElement);},showFile:function(uiSourceCode) |
827 {this._innerShowFile(uiSourceCode,true);},historyUISourceCodes:function() | 859 {this._innerShowFile(uiSourceCode,true);},historyUISourceCodes:function() |
828 {var uriToUISourceCode={};for(var id in this._files){var uiSourceCode=this._file
s[id];uriToUISourceCode[uiSourceCode.uri()]=uiSourceCode;} | 860 {var uriToUISourceCode={};for(var id in this._files){var uiSourceCode=this._file
s[id];uriToUISourceCode[uiSourceCode.uri()]=uiSourceCode;} |
829 var result=[];var uris=this._history._urls();for(var i=0;i<uris.length;++i){var
uiSourceCode=uriToUISourceCode[uris[i]];if(uiSourceCode) | 861 var result=[];var uris=this._history._urls();for(var i=0;i<uris.length;++i){var
uiSourceCode=uriToUISourceCode[uris[i]];if(uiSourceCode) |
830 result.push(uiSourceCode);} | 862 result.push(uiSourceCode);} |
831 return result;},_addScrollAndSelectionListeners:function() | 863 return result;},_addScrollAndSelectionListeners:function() |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1015 WebInspector.WorkersSidebarPane=function(workerManager) | 1047 WebInspector.WorkersSidebarPane=function(workerManager) |
1016 {WebInspector.SidebarPane.call(this,WebInspector.UIString("Workers"));this._enab
leWorkersCheckbox=new WebInspector.Checkbox(WebInspector.UIString("Pause on star
t"),"sidebar-label",WebInspector.UIString("Automatically attach to new workers a
nd pause them. Enabling this option will force opening inspector for all new wor
kers."));this._enableWorkersCheckbox.element.id="pause-workers-checkbox";this.bo
dyElement.appendChild(this._enableWorkersCheckbox.element);this._enableWorkersCh
eckbox.addEventListener(this._autoattachToWorkersClicked.bind(this));this._enabl
eWorkersCheckbox.checked=false;var note=this.bodyElement.createChild("div");note
.id="shared-workers-list";note.addStyleClass("sidebar-label") | 1048 {WebInspector.SidebarPane.call(this,WebInspector.UIString("Workers"));this._enab
leWorkersCheckbox=new WebInspector.Checkbox(WebInspector.UIString("Pause on star
t"),"sidebar-label",WebInspector.UIString("Automatically attach to new workers a
nd pause them. Enabling this option will force opening inspector for all new wor
kers."));this._enableWorkersCheckbox.element.id="pause-workers-checkbox";this.bo
dyElement.appendChild(this._enableWorkersCheckbox.element);this._enableWorkersCh
eckbox.addEventListener(this._autoattachToWorkersClicked.bind(this));this._enabl
eWorkersCheckbox.checked=false;var note=this.bodyElement.createChild("div");note
.id="shared-workers-list";note.addStyleClass("sidebar-label") |
1017 note.textContent=WebInspector.UIString("Shared workers can be inspected in the T
ask Manager");var separator=this.bodyElement.createChild("div","sidebar-separato
r");separator.textContent=WebInspector.UIString("Dedicated worker inspectors");t
his._workerListElement=document.createElement("ol");this._workerListElement.tabI
ndex=0;this._workerListElement.addStyleClass("properties-tree");this._workerList
Element.addStyleClass("sidebar-label");this.bodyElement.appendChild(this._worker
ListElement);this._idToWorkerItem={};this._workerManager=workerManager;workerMan
ager.addEventListener(WebInspector.WorkerManager.Events.WorkerAdded,this._worker
Added,this);workerManager.addEventListener(WebInspector.WorkerManager.Events.Wor
kerRemoved,this._workerRemoved,this);workerManager.addEventListener(WebInspector
.WorkerManager.Events.WorkersCleared,this._workersCleared,this);} | 1049 note.textContent=WebInspector.UIString("Shared workers can be inspected in the T
ask Manager");var separator=this.bodyElement.createChild("div","sidebar-separato
r");separator.textContent=WebInspector.UIString("Dedicated worker inspectors");t
his._workerListElement=document.createElement("ol");this._workerListElement.tabI
ndex=0;this._workerListElement.addStyleClass("properties-tree");this._workerList
Element.addStyleClass("sidebar-label");this.bodyElement.appendChild(this._worker
ListElement);this._idToWorkerItem={};this._workerManager=workerManager;workerMan
ager.addEventListener(WebInspector.WorkerManager.Events.WorkerAdded,this._worker
Added,this);workerManager.addEventListener(WebInspector.WorkerManager.Events.Wor
kerRemoved,this._workerRemoved,this);workerManager.addEventListener(WebInspector
.WorkerManager.Events.WorkersCleared,this._workersCleared,this);} |
1018 WebInspector.WorkersSidebarPane.prototype={_workerAdded:function(event) | 1050 WebInspector.WorkersSidebarPane.prototype={_workerAdded:function(event) |
1019 {this._addWorker(event.data.workerId,event.data.url,event.data.inspectorConnecte
d);},_workerRemoved:function(event) | 1051 {this._addWorker(event.data.workerId,event.data.url,event.data.inspectorConnecte
d);},_workerRemoved:function(event) |
1020 {this._idToWorkerItem[event.data].remove();delete this._idToWorkerItem[event.dat
a];},_workersCleared:function(event) | 1052 {this._idToWorkerItem[event.data].remove();delete this._idToWorkerItem[event.dat
a];},_workersCleared:function(event) |
1021 {this._idToWorkerItem={};this._workerListElement.removeChildren();},_addWorker:f
unction(workerId,url,inspectorConnected) | 1053 {this._idToWorkerItem={};this._workerListElement.removeChildren();},_addWorker:f
unction(workerId,url,inspectorConnected) |
1022 {var item=this._workerListElement.createChild("div","dedicated-worker-item");var
link=item.createChild("a");link.textContent=url;link.href="#";link.target="_bla
nk";link.addEventListener("click",this._workerItemClicked.bind(this,workerId),tr
ue);this._idToWorkerItem[workerId]=item;},_workerItemClicked:function(workerId,e
vent) | 1054 {var item=this._workerListElement.createChild("div","dedicated-worker-item");var
link=item.createChild("a");link.textContent=url;link.href="#";link.target="_bla
nk";link.addEventListener("click",this._workerItemClicked.bind(this,workerId),tr
ue);this._idToWorkerItem[workerId]=item;},_workerItemClicked:function(workerId,e
vent) |
1023 {event.preventDefault();this._workerManager.openWorkerInspector(workerId);},_aut
oattachToWorkersClicked:function(event) | 1055 {event.preventDefault();this._workerManager.openWorkerInspector(workerId);},_aut
oattachToWorkersClicked:function(event) |
1024 {WorkerAgent.setAutoconnectToWorkers(this._enableWorkersCheckbox.checked);},__pr
oto__:WebInspector.SidebarPane.prototype};WebInspector.SourcesPanel=function(wor
kspaceForTest) | 1056 {WorkerAgent.setAutoconnectToWorkers(this._enableWorkersCheckbox.checked);},__pr
oto__:WebInspector.SidebarPane.prototype};WebInspector.SourcesPanel=function(wor
kspaceForTest) |
1025 {WebInspector.Panel.call(this,"sources");this.registerRequiredCSS("sourcesPanel.
css");this.registerRequiredCSS("textPrompt.css");WebInspector.settings.navigator
WasOnceHidden=WebInspector.settings.createSetting("navigatorWasOnceHidden",false
);WebInspector.settings.debuggerSidebarHidden=WebInspector.settings.createSettin
g("debuggerSidebarHidden",false);this._workspace=workspaceForTest||WebInspector.
workspace;function viewGetter() | 1057 {WebInspector.Panel.call(this,"sources");this.registerRequiredCSS("sourcesPanel.
css");this.registerRequiredCSS("textPrompt.css");WebInspector.settings.navigator
WasOnceHidden=WebInspector.settings.createSetting("navigatorWasOnceHidden",false
);WebInspector.settings.debuggerSidebarHidden=WebInspector.settings.createSettin
g("debuggerSidebarHidden",false);WebInspector.settings.showEditorInDrawer=WebIns
pector.settings.createSetting("showEditorInDrawer",true);this._workspace=workspa
ceForTest||WebInspector.workspace;function viewGetter() |
1026 {return this.visibleView;} | 1058 {return this.visibleView;} |
1027 WebInspector.GoToLineDialog.install(this,viewGetter.bind(this));var helpSection=
WebInspector.shortcutsScreen.section(WebInspector.UIString("Sources Panel"));thi
s.debugToolbar=this._createDebugToolbar();const initialDebugSidebarWidth=225;con
st minimumDebugSidebarWidthPercent=0.5;this.createSidebarView(this.element,WebIn
spector.SidebarView.SidebarPosition.End,initialDebugSidebarWidth);this.splitView
.element.id="scripts-split-view";this.splitView.setSidebarElementConstraints(Pre
ferences.minScriptsSidebarWidth);this.splitView.setMainElementConstraints(minimu
mDebugSidebarWidthPercent);const initialNavigatorWidth=225;const minimumViewsCon
tainerWidthPercent=0.5;this.editorView=new WebInspector.SidebarView(WebInspector
.SidebarView.SidebarPosition.Start,"scriptsPanelNavigatorSidebarWidth",initialNa
vigatorWidth);this.editorView.element.tabIndex=0;this.editorView.setSidebarEleme
ntConstraints(Preferences.minScriptsSidebarWidth);this.editorView.setMainElement
Constraints(minimumViewsContainerWidthPercent);this.editorView.show(this.splitVi
ew.mainElement);this._navigator=new WebInspector.SourcesNavigator();this._naviga
tor.view.show(this.editorView.sidebarElement);var tabbedEditorPlaceholderText=We
bInspector.isMac()?WebInspector.UIString("Hit Cmd+O to open a file"):WebInspecto
r.UIString("Hit Ctrl+O to open a file");this._editorContentsElement=this.editorV
iew.mainElement.createChild("div","fill");this._editorFooterElement=this.editorV
iew.mainElement.createChild("div","inspector-footer status-bar hidden");this._ed
itorContainer=new WebInspector.TabbedEditorContainer(this,"previouslyViewedFiles
",tabbedEditorPlaceholderText);this._editorContainer.show(this._editorContentsEl
ement);this._navigatorController=new WebInspector.NavigatorOverlayController(thi
s.editorView,this._navigator.view,this._editorContainer.view);this._navigator.ad
dEventListener(WebInspector.SourcesNavigator.Events.SourceSelected,this._sourceS
elected,this);this._navigator.addEventListener(WebInspector.SourcesNavigator.Eve
nts.ItemSearchStarted,this._itemSearchStarted,this);this._navigator.addEventList
ener(WebInspector.SourcesNavigator.Events.ItemCreationRequested,this._itemCreati
onRequested,this);this._navigator.addEventListener(WebInspector.SourcesNavigator
.Events.ItemRenamingRequested,this._itemRenamingRequested,this);this._editorCont
ainer.addEventListener(WebInspector.TabbedEditorContainer.Events.EditorSelected,
this._editorSelected,this);this._editorContainer.addEventListener(WebInspector.T
abbedEditorContainer.Events.EditorClosed,this._editorClosed,this);this._debugSid
ebarResizeWidgetElement=this.splitView.mainElement.createChild("div","resizer-wi
dget");this._debugSidebarResizeWidgetElement.id="scripts-debug-sidebar-resizer-w
idget";this.splitView.installResizer(this._debugSidebarResizeWidgetElement);this
.sidebarPanes={};this.sidebarPanes.watchExpressions=new WebInspector.WatchExpres
sionsSidebarPane();this.sidebarPanes.callstack=new WebInspector.CallStackSidebar
Pane();this.sidebarPanes.callstack.addEventListener(WebInspector.CallStackSideba
rPane.Events.CallFrameSelected,this._callFrameSelectedInSidebar.bind(this));this
.sidebarPanes.scopechain=new WebInspector.ScopeChainSidebarPane();this.sidebarPa
nes.jsBreakpoints=new WebInspector.JavaScriptBreakpointsSidebarPane(WebInspector
.breakpointManager,this._showSourceLocation.bind(this));this.sidebarPanes.domBre
akpoints=WebInspector.domBreakpointsSidebarPane.createProxy(this);this.sidebarPa
nes.xhrBreakpoints=new WebInspector.XHRBreakpointsSidebarPane();this.sidebarPane
s.eventListenerBreakpoints=new WebInspector.EventListenerBreakpointsSidebarPane(
);if(Capabilities.canInspectWorkers&&!WebInspector.WorkerManager.isWorkerFronten
d()){WorkerAgent.enable();this.sidebarPanes.workerList=new WebInspector.WorkersS
idebarPane(WebInspector.workerManager);} | 1059 WebInspector.GoToLineDialog.install(this,viewGetter.bind(this));var helpSection=
WebInspector.shortcutsScreen.section(WebInspector.UIString("Sources Panel"));thi
s.debugToolbar=this._createDebugToolbar();const initialDebugSidebarWidth=225;con
st minimumDebugSidebarWidthPercent=0.5;this.createSidebarView(this.element,WebIn
spector.SidebarView.SidebarPosition.End,initialDebugSidebarWidth);this.splitView
.element.id="scripts-split-view";this.splitView.setSidebarElementConstraints(Pre
ferences.minScriptsSidebarWidth);this.splitView.setMainElementConstraints(minimu
mDebugSidebarWidthPercent);const initialNavigatorWidth=225;const minimumViewsCon
tainerWidthPercent=0.5;this.editorView=new WebInspector.SidebarView(WebInspector
.SidebarView.SidebarPosition.Start,"scriptsPanelNavigatorSidebarWidth",initialNa
vigatorWidth);this.editorView.element.id="scripts-editor-split-view";this.editor
View.element.tabIndex=0;this.editorView.setSidebarElementConstraints(Preferences
.minScriptsSidebarWidth);this.editorView.setMainElementConstraints(minimumViewsC
ontainerWidthPercent);this.editorView.show(this.splitView.mainElement);this._nav
igator=new WebInspector.SourcesNavigator();this._navigator.view.show(this.editor
View.sidebarElement);var tabbedEditorPlaceholderText=WebInspector.isMac()?WebIns
pector.UIString("Hit Cmd+O to open a file"):WebInspector.UIString("Hit Ctrl+O to
open a file");this.editorView.mainElement.addStyleClass("vbox");this.editorView
.sidebarElement.addStyleClass("vbox");this.sourcesView=new WebInspector.SourcesV
iew();this._editorContainer=new WebInspector.TabbedEditorContainer(this,"previou
slyViewedFiles",tabbedEditorPlaceholderText);this._editorContainer.show(this.sou
rcesView.element);this._editorFooterElement=this.sourcesView.element.createChild
("div","inspector-footer status-bar hidden");this._navigatorController=new WebIn
spector.NavigatorOverlayController(this.editorView,this._navigator.view,this._ed
itorContainer.view);this._navigator.addEventListener(WebInspector.SourcesNavigat
or.Events.SourceSelected,this._sourceSelected,this);this._navigator.addEventList
ener(WebInspector.SourcesNavigator.Events.ItemSearchStarted,this._itemSearchStar
ted,this);this._navigator.addEventListener(WebInspector.SourcesNavigator.Events.
ItemCreationRequested,this._itemCreationRequested,this);this._navigator.addEvent
Listener(WebInspector.SourcesNavigator.Events.ItemRenamingRequested,this._itemRe
namingRequested,this);this._editorContainer.addEventListener(WebInspector.Tabbed
EditorContainer.Events.EditorSelected,this._editorSelected,this);this._editorCon
tainer.addEventListener(WebInspector.TabbedEditorContainer.Events.EditorClosed,t
his._editorClosed,this);this._debugSidebarResizeWidgetElement=this.splitView.mai
nElement.createChild("div","resizer-widget");this._debugSidebarResizeWidgetEleme
nt.id="scripts-debug-sidebar-resizer-widget";this.splitView.installResizer(this.
_debugSidebarResizeWidgetElement);this.sidebarPanes={};this.sidebarPanes.watchEx
pressions=new WebInspector.WatchExpressionsSidebarPane();this.sidebarPanes.calls
tack=new WebInspector.CallStackSidebarPane();this.sidebarPanes.callstack.addEven
tListener(WebInspector.CallStackSidebarPane.Events.CallFrameSelected,this._callF
rameSelectedInSidebar.bind(this));this.sidebarPanes.scopechain=new WebInspector.
ScopeChainSidebarPane();this.sidebarPanes.jsBreakpoints=new WebInspector.JavaScr
iptBreakpointsSidebarPane(WebInspector.breakpointManager,this._showSourceLocatio
n.bind(this));this.sidebarPanes.domBreakpoints=WebInspector.domBreakpointsSideba
rPane.createProxy(this);this.sidebarPanes.xhrBreakpoints=new WebInspector.XHRBre
akpointsSidebarPane();this.sidebarPanes.eventListenerBreakpoints=new WebInspecto
r.EventListenerBreakpointsSidebarPane();if(Capabilities.canInspectWorkers&&!WebI
nspector.WorkerManager.isWorkerFrontend()){WorkerAgent.enable();this.sidebarPane
s.workerList=new WebInspector.WorkersSidebarPane(WebInspector.workerManager);} |
1028 this.sidebarPanes.callstack.registerShortcuts(this.registerShortcuts.bind(this))
;this.registerShortcuts(WebInspector.SourcesPanelDescriptor.ShortcutKeys.GoToMem
ber,this._showOutlineDialog.bind(this));this.registerShortcuts(WebInspector.Sour
cesPanelDescriptor.ShortcutKeys.ToggleBreakpoint,this._toggleBreakpoint.bind(thi
s));this._toggleFormatSourceButton=new WebInspector.StatusBarButton(WebInspector
.UIString("Pretty print"),"scripts-toggle-pretty-print-status-bar-item");this._t
oggleFormatSourceButton.toggled=false;this._toggleFormatSourceButton.addEventLis
tener("click",this._toggleFormatSource,this);this._scriptViewStatusBarItemsConta
iner=document.createElement("div");this._scriptViewStatusBarItemsContainer.class
Name="inline-block";this._scriptViewStatusBarTextContainer=document.createElemen
t("div");this._scriptViewStatusBarTextContainer.className="inline-block";this._i
nstallDebuggerSidebarController();WebInspector.dockController.addEventListener(W
ebInspector.DockController.Events.DockSideChanged,this._dockSideChanged.bind(thi
s));WebInspector.settings.splitVerticallyWhenDockedToRight.addChangeListener(thi
s._dockSideChanged.bind(this));this._dockSideChanged();this._sourceFramesByUISou
rceCode=new Map();this._updateDebuggerButtons();this._pauseOnExceptionStateChang
ed();if(WebInspector.debuggerModel.isPaused()) | 1060 this.sidebarPanes.callstack.registerShortcuts(this.registerShortcuts.bind(this))
;this.registerShortcuts(WebInspector.SourcesPanelDescriptor.ShortcutKeys.GoToMem
ber,this._showOutlineDialog.bind(this));this.registerShortcuts(WebInspector.Sour
cesPanelDescriptor.ShortcutKeys.ToggleBreakpoint,this._toggleBreakpoint.bind(thi
s));this._extensionSidebarPanes=[];this._toggleFormatSourceButton=new WebInspect
or.StatusBarButton(WebInspector.UIString("Pretty print"),"sources-toggle-pretty-
print-status-bar-item");this._toggleFormatSourceButton.toggled=false;this._toggl
eFormatSourceButton.addEventListener("click",this._toggleFormatSource,this);this
._scriptViewStatusBarItemsContainer=document.createElement("div");this._scriptVi
ewStatusBarItemsContainer.className="inline-block";this._scriptViewStatusBarText
Container=document.createElement("div");this._scriptViewStatusBarTextContainer.c
lassName="inline-block";var statusBarContainerElement=this.sourcesView.element.c
reateChild("div","sources-status-bar");statusBarContainerElement.appendChild(thi
s._toggleFormatSourceButton.element);statusBarContainerElement.appendChild(this.
_scriptViewStatusBarItemsContainer);statusBarContainerElement.appendChild(this._
scriptViewStatusBarTextContainer);this._installDebuggerSidebarController();WebIn
spector.dockController.addEventListener(WebInspector.DockController.Events.DockS
ideChanged,this._dockSideChanged.bind(this));WebInspector.settings.splitVertical
lyWhenDockedToRight.addChangeListener(this._dockSideChanged.bind(this));this._do
ckSideChanged();this._sourceFramesByUISourceCode=new Map();this._updateDebuggerB
uttons();this._pauseOnExceptionStateChanged();if(WebInspector.debuggerModel.isPa
used()) |
1029 this._debuggerPaused();WebInspector.settings.pauseOnExceptionStateString.addChan
geListener(this._pauseOnExceptionStateChanged,this);WebInspector.debuggerModel.a
ddEventListener(WebInspector.DebuggerModel.Events.DebuggerWasEnabled,this._debug
gerWasEnabled,this);WebInspector.debuggerModel.addEventListener(WebInspector.Deb
uggerModel.Events.DebuggerWasDisabled,this._debuggerWasDisabled,this);WebInspect
or.debuggerModel.addEventListener(WebInspector.DebuggerModel.Events.DebuggerPaus
ed,this._debuggerPaused,this);WebInspector.debuggerModel.addEventListener(WebIns
pector.DebuggerModel.Events.DebuggerResumed,this._debuggerResumed,this);WebInspe
ctor.debuggerModel.addEventListener(WebInspector.DebuggerModel.Events.CallFrameS
elected,this._callFrameSelected,this);WebInspector.debuggerModel.addEventListene
r(WebInspector.DebuggerModel.Events.ConsoleCommandEvaluatedInSelectedCallFrame,t
his._consoleCommandEvaluatedInSelectedCallFrame,this);WebInspector.debuggerModel
.addEventListener(WebInspector.DebuggerModel.Events.BreakpointsActiveStateChange
d,this._breakpointsActiveStateChanged,this);WebInspector.startBatchUpdate();this
._workspace.uiSourceCodes().forEach(this._addUISourceCode.bind(this));WebInspect
or.endBatchUpdate();this._workspace.addEventListener(WebInspector.Workspace.Even
ts.UISourceCodeAdded,this._uiSourceCodeAdded,this);this._workspace.addEventListe
ner(WebInspector.Workspace.Events.UISourceCodeRemoved,this._uiSourceCodeRemoved,
this);this._workspace.addEventListener(WebInspector.Workspace.Events.ProjectWill
Reset,this._projectWillReset.bind(this),this);WebInspector.debuggerModel.addEven
tListener(WebInspector.DebuggerModel.Events.GlobalObjectCleared,this._debuggerRe
set,this);WebInspector.advancedSearchController.registerSearchScope(new WebInspe
ctor.SourcesSearchScope(this._workspace));this._boundOnKeyUp=this._onKeyUp.bind(
this);this._boundOnKeyDown=this._onKeyDown.bind(this);} | 1061 this._showDebuggerPausedDetails();WebInspector.settings.pauseOnExceptionStateStr
ing.addChangeListener(this._pauseOnExceptionStateChanged,this);WebInspector.debu
ggerModel.addEventListener(WebInspector.DebuggerModel.Events.DebuggerWasEnabled,
this._debuggerWasEnabled,this);WebInspector.debuggerModel.addEventListener(WebIn
spector.DebuggerModel.Events.DebuggerWasDisabled,this._debuggerWasDisabled,this)
;WebInspector.debuggerModel.addEventListener(WebInspector.DebuggerModel.Events.D
ebuggerPaused,this._debuggerPaused,this);WebInspector.debuggerModel.addEventList
ener(WebInspector.DebuggerModel.Events.DebuggerResumed,this._debuggerResumed,thi
s);WebInspector.debuggerModel.addEventListener(WebInspector.DebuggerModel.Events
.CallFrameSelected,this._callFrameSelected,this);WebInspector.debuggerModel.addE
ventListener(WebInspector.DebuggerModel.Events.ConsoleCommandEvaluatedInSelected
CallFrame,this._consoleCommandEvaluatedInSelectedCallFrame,this);WebInspector.de
buggerModel.addEventListener(WebInspector.DebuggerModel.Events.BreakpointsActive
StateChanged,this._breakpointsActiveStateChanged,this);WebInspector.startBatchUp
date();this._workspace.uiSourceCodes().forEach(this._addUISourceCode.bind(this))
;WebInspector.endBatchUpdate();this._workspace.addEventListener(WebInspector.Wor
kspace.Events.UISourceCodeAdded,this._uiSourceCodeAdded,this);this._workspace.ad
dEventListener(WebInspector.Workspace.Events.UISourceCodeRemoved,this._uiSourceC
odeRemoved,this);this._workspace.addEventListener(WebInspector.Workspace.Events.
ProjectWillReset,this._projectWillReset.bind(this),this);WebInspector.debuggerMo
del.addEventListener(WebInspector.DebuggerModel.Events.GlobalObjectCleared,this.
_debuggerReset,this);WebInspector.advancedSearchController.registerSearchScope(n
ew WebInspector.SourcesSearchScope(this._workspace));this._boundOnKeyUp=this._on
KeyUp.bind(this);this._boundOnKeyDown=this._onKeyDown.bind(this);} |
1030 WebInspector.SourcesPanel.prototype={get statusBarItems() | 1062 WebInspector.SourcesPanel.prototype={defaultFocusedElement:function() |
1031 {return[this._toggleFormatSourceButton.element,this._scriptViewStatusBarItemsCon
tainer];},statusBarText:function() | |
1032 {return this._scriptViewStatusBarTextContainer;},defaultFocusedElement:function(
) | |
1033 {return this._editorContainer.view.defaultFocusedElement()||this._navigator.view
.defaultFocusedElement();},get paused() | 1063 {return this._editorContainer.view.defaultFocusedElement()||this._navigator.view
.defaultFocusedElement();},get paused() |
1034 {return this._paused;},wasShown:function() | 1064 {return this._paused;},wasShown:function() |
1035 {WebInspector.Panel.prototype.wasShown.call(this);this._navigatorController.wasS
hown();this.element.addEventListener("keydown",this._boundOnKeyDown,false);this.
element.addEventListener("keyup",this._boundOnKeyUp,false);},willHide:function() | 1065 {WebInspector.inspectorView.closeViewInDrawer("editor");this.sourcesView.show(th
is.editorView.mainElement);WebInspector.Panel.prototype.wasShown.call(this);this
._navigatorController.wasShown();this.element.addEventListener("keydown",this._b
oundOnKeyDown,false);this.element.addEventListener("keyup",this._boundOnKeyUp,fa
lse);},willHide:function() |
1036 {this.element.removeEventListener("keydown",this._boundOnKeyDown,false);this.ele
ment.removeEventListener("keyup",this._boundOnKeyUp,false);WebInspector.Panel.pr
ototype.willHide.call(this);WebInspector.closeViewInDrawer();},_uiSourceCodeAdde
d:function(event) | 1066 {this.element.removeEventListener("keydown",this._boundOnKeyDown,false);this.ele
ment.removeEventListener("keyup",this._boundOnKeyUp,false);WebInspector.Panel.pr
ototype.willHide.call(this);},_uiSourceCodeAdded:function(event) |
1037 {var uiSourceCode=(event.data);this._addUISourceCode(uiSourceCode);},_addUISourc
eCode:function(uiSourceCode) | 1067 {var uiSourceCode=(event.data);this._addUISourceCode(uiSourceCode);},_addUISourc
eCode:function(uiSourceCode) |
1038 {if(this._toggleFormatSourceButton.toggled) | 1068 {if(this._toggleFormatSourceButton.toggled) |
1039 uiSourceCode.setFormatted(true);if(uiSourceCode.project().isServiceProject()) | 1069 uiSourceCode.setFormatted(true);if(uiSourceCode.project().isServiceProject()) |
1040 return;this._navigator.addUISourceCode(uiSourceCode);this._editorContainer.addUI
SourceCode(uiSourceCode);var currentUISourceCode=this._currentUISourceCode;if(cu
rrentUISourceCode&¤tUISourceCode.project().isServiceProject()&¤tUISo
urceCode!==uiSourceCode&¤tUISourceCode.url===uiSourceCode.url){this._showF
ile(uiSourceCode);this._editorContainer.removeUISourceCode(currentUISourceCode);
}},_uiSourceCodeRemoved:function(event) | 1070 return;this._navigator.addUISourceCode(uiSourceCode);this._editorContainer.addUI
SourceCode(uiSourceCode);var currentUISourceCode=this._currentUISourceCode;if(cu
rrentUISourceCode&¤tUISourceCode.project().isServiceProject()&¤tUISo
urceCode!==uiSourceCode&¤tUISourceCode.url===uiSourceCode.url){this._showF
ile(uiSourceCode);this._editorContainer.removeUISourceCode(currentUISourceCode);
}},_uiSourceCodeRemoved:function(event) |
1041 {var uiSourceCode=(event.data);this._removeUISourceCodes([uiSourceCode]);},_remo
veUISourceCodes:function(uiSourceCodes) | 1071 {var uiSourceCode=(event.data);this._removeUISourceCodes([uiSourceCode]);},_remo
veUISourceCodes:function(uiSourceCodes) |
1042 {for(var i=0;i<uiSourceCodes.length;++i){this._navigator.removeUISourceCode(uiSo
urceCodes[i]);this._removeSourceFrame(uiSourceCodes[i]);} | 1072 {for(var i=0;i<uiSourceCodes.length;++i){this._navigator.removeUISourceCode(uiSo
urceCodes[i]);this._removeSourceFrame(uiSourceCodes[i]);} |
1043 this._editorContainer.removeUISourceCodes(uiSourceCodes);},_consoleCommandEvalua
tedInSelectedCallFrame:function(event) | 1073 this._editorContainer.removeUISourceCodes(uiSourceCodes);},_consoleCommandEvalua
tedInSelectedCallFrame:function(event) |
1044 {this.sidebarPanes.scopechain.update(WebInspector.debuggerModel.selectedCallFram
e());},_debuggerPaused:function() | 1074 {this.sidebarPanes.scopechain.update(WebInspector.debuggerModel.selectedCallFram
e());},_debuggerPaused:function() |
1045 {var details=WebInspector.debuggerModel.debuggerPausedDetails();this._paused=tru
e;this._waitingToPause=false;this._stepping=false;this._updateDebuggerButtons();
WebInspector.inspectorView.setCurrentPanel(this);this.sidebarPanes.callstack.upd
ate(details.callFrames);if(details.reason===WebInspector.DebuggerModel.BreakReas
on.DOM){WebInspector.domBreakpointsSidebarPane.highlightBreakpoint(details.auxDa
ta);function didCreateBreakpointHitStatusMessage(element) | 1075 {WebInspector.inspectorView.setCurrentPanel(this);this._showDebuggerPausedDetail
s();},_showDebuggerPausedDetails:function() |
| 1076 {var details=WebInspector.debuggerModel.debuggerPausedDetails();this._paused=tru
e;this._waitingToPause=false;this._stepping=false;this._updateDebuggerButtons();
this.sidebarPanes.callstack.update(details.callFrames);if(details.reason===WebIn
spector.DebuggerModel.BreakReason.DOM){WebInspector.domBreakpointsSidebarPane.hi
ghlightBreakpoint(details.auxData);function didCreateBreakpointHitStatusMessage(
element) |
1046 {this.sidebarPanes.callstack.setStatus(element);} | 1077 {this.sidebarPanes.callstack.setStatus(element);} |
1047 WebInspector.domBreakpointsSidebarPane.createBreakpointHitStatusMessage(details.
auxData,didCreateBreakpointHitStatusMessage.bind(this));}else if(details.reason=
==WebInspector.DebuggerModel.BreakReason.EventListener){var eventName=details.au
xData.eventName;this.sidebarPanes.eventListenerBreakpoints.highlightBreakpoint(d
etails.auxData.eventName);var eventNameForUI=WebInspector.EventListenerBreakpoin
tsSidebarPane.eventNameForUI(eventName,details.auxData);this.sidebarPanes.callst
ack.setStatus(WebInspector.UIString("Paused on a \"%s\" Event Listener.",eventNa
meForUI));}else if(details.reason===WebInspector.DebuggerModel.BreakReason.XHR){
this.sidebarPanes.xhrBreakpoints.highlightBreakpoint(details.auxData["breakpoint
URL"]);this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused on a
XMLHttpRequest."));}else if(details.reason===WebInspector.DebuggerModel.BreakRea
son.Exception) | 1078 WebInspector.domBreakpointsSidebarPane.createBreakpointHitStatusMessage(details.
auxData,didCreateBreakpointHitStatusMessage.bind(this));}else if(details.reason=
==WebInspector.DebuggerModel.BreakReason.EventListener){var eventName=details.au
xData.eventName;this.sidebarPanes.eventListenerBreakpoints.highlightBreakpoint(d
etails.auxData.eventName);var eventNameForUI=WebInspector.EventListenerBreakpoin
tsSidebarPane.eventNameForUI(eventName,details.auxData);this.sidebarPanes.callst
ack.setStatus(WebInspector.UIString("Paused on a \"%s\" Event Listener.",eventNa
meForUI));}else if(details.reason===WebInspector.DebuggerModel.BreakReason.XHR){
this.sidebarPanes.xhrBreakpoints.highlightBreakpoint(details.auxData["breakpoint
URL"]);this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused on a
XMLHttpRequest."));}else if(details.reason===WebInspector.DebuggerModel.BreakRea
son.Exception) |
1048 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused on exception
: '%s'.",details.auxData.description));else if(details.reason===WebInspector.Deb
uggerModel.BreakReason.Assert) | 1079 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused on exception
: '%s'.",details.auxData.description));else if(details.reason===WebInspector.Deb
uggerModel.BreakReason.Assert) |
1049 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused on assertion
."));else if(details.reason===WebInspector.DebuggerModel.BreakReason.CSPViolatio
n) | 1080 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused on assertion
."));else if(details.reason===WebInspector.DebuggerModel.BreakReason.CSPViolatio
n) |
1050 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused on a script
blocked due to Content Security Policy directive: \"%s\".",details.auxData["dire
ctiveText"]));else if(details.reason===WebInspector.DebuggerModel.BreakReason.De
bugCommand) | 1081 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused on a script
blocked due to Content Security Policy directive: \"%s\".",details.auxData["dire
ctiveText"]));else if(details.reason===WebInspector.DebuggerModel.BreakReason.De
bugCommand) |
1051 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused on a debugge
d function"));else{function didGetUILocation(uiLocation) | 1082 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused on a debugge
d function"));else{function didGetUILocation(uiLocation) |
1052 {var breakpoint=WebInspector.breakpointManager.findBreakpoint(uiLocation.uiSourc
eCode,uiLocation.lineNumber);if(!breakpoint) | 1083 {var breakpoint=WebInspector.breakpointManager.findBreakpoint(uiLocation.uiSourc
eCode,uiLocation.lineNumber);if(!breakpoint) |
1053 return;this.sidebarPanes.jsBreakpoints.highlightBreakpoint(breakpoint);this.side
barPanes.callstack.setStatus(WebInspector.UIString("Paused on a JavaScript break
point."));} | 1084 return;this.sidebarPanes.jsBreakpoints.highlightBreakpoint(breakpoint);this.side
barPanes.callstack.setStatus(WebInspector.UIString("Paused on a JavaScript break
point."));} |
1054 if(details.callFrames.length) | 1085 if(details.callFrames.length) |
1055 details.callFrames[0].createLiveLocation(didGetUILocation.bind(this));else | 1086 details.callFrames[0].createLiveLocation(didGetUILocation.bind(this));else |
1056 console.warn("ScriptsPanel paused, but callFrames.length is zero.");} | 1087 console.warn("ScriptsPanel paused, but callFrames.length is zero.");} |
1057 this._enableDebuggerSidebar(true);this._toggleDebuggerSidebarButton.setEnabled(f
alse);window.focus();InspectorFrontendHost.bringToFront();},_debuggerResumed:fun
ction() | 1088 this._enableDebuggerSidebar(true);this._toggleDebuggerSidebarButton.setEnabled(f
alse);window.focus();InspectorFrontendHost.bringToFront();},_debuggerResumed:fun
ction() |
1058 {this._paused=false;this._waitingToPause=false;this._stepping=false;this._clearI
nterface();this._toggleDebuggerSidebarButton.setEnabled(true);},_debuggerWasEnab
led:function() | 1089 {this._paused=false;this._waitingToPause=false;this._stepping=false;this._clearI
nterface();this._toggleDebuggerSidebarButton.setEnabled(true);},_debuggerWasEnab
led:function() |
1059 {this._updateDebuggerButtons();},_debuggerWasDisabled:function() | 1090 {this._updateDebuggerButtons();},_debuggerWasDisabled:function() |
1060 {this._debuggerReset();},_debuggerReset:function() | 1091 {this._debuggerReset();},_debuggerReset:function() |
1061 {this._debuggerResumed();this.sidebarPanes.watchExpressions.reset();delete this.
_skipExecutionLineRevealing;},_projectWillReset:function(event) | 1092 {this._debuggerResumed();this.sidebarPanes.watchExpressions.reset();delete this.
_skipExecutionLineRevealing;},_projectWillReset:function(event) |
1062 {var project=event.data;var uiSourceCodes=project.uiSourceCodes();this._removeUI
SourceCodes(uiSourceCodes);if(project.type()===WebInspector.projectTypes.Network
) | 1093 {var project=event.data;var uiSourceCodes=project.uiSourceCodes();this._removeUI
SourceCodes(uiSourceCodes);if(project.type()===WebInspector.projectTypes.Network
) |
1063 this._editorContainer.reset();},get visibleView() | 1094 this._editorContainer.reset();},get visibleView() |
1064 {return this._editorContainer.visibleView;},_updateScriptViewStatusBarItems:func
tion() | 1095 {return this._editorContainer.visibleView;},_updateScriptViewStatusBarItems:func
tion() |
1065 {this._scriptViewStatusBarItemsContainer.removeChildren();this._scriptViewStatus
BarTextContainer.removeChildren();var sourceFrame=this.visibleView;if(sourceFram
e){var statusBarItems=sourceFrame.statusBarItems()||[];for(var i=0;i<statusBarIt
ems.length;++i) | 1096 {this._scriptViewStatusBarItemsContainer.removeChildren();this._scriptViewStatus
BarTextContainer.removeChildren();var sourceFrame=this.visibleView;if(sourceFram
e){var statusBarItems=sourceFrame.statusBarItems()||[];for(var i=0;i<statusBarIt
ems.length;++i) |
1066 this._scriptViewStatusBarItemsContainer.appendChild(statusBarItems[i]);var statu
sBarText=sourceFrame.statusBarText();if(statusBarText) | 1097 this._scriptViewStatusBarItemsContainer.appendChild(statusBarItems[i]);var statu
sBarText=sourceFrame.statusBarText();if(statusBarText) |
1067 this._scriptViewStatusBarTextContainer.appendChild(statusBarText);}},canShowAnch
orLocation:function(anchor) | 1098 this._scriptViewStatusBarTextContainer.appendChild(statusBarText);}},showAnchorL
ocation:function(anchor) |
1068 {if(WebInspector.debuggerModel.debuggerEnabled()&&anchor.uiSourceCode) | 1099 {if(!anchor.uiSourceCode){var uiSourceCode=WebInspector.workspace.uiSourceCodeFo
rURL(anchor.href);if(uiSourceCode) |
1069 return true;var uiSourceCode=WebInspector.workspace.uiSourceCodeForURL(anchor.hr
ef);if(uiSourceCode){anchor.uiSourceCode=uiSourceCode;return true;} | 1100 anchor.uiSourceCode=uiSourceCode;} |
1070 return false;},showAnchorLocation:function(anchor) | 1101 if(!anchor.uiSourceCode) |
1071 {this._showSourceLocation(anchor.uiSourceCode,anchor.lineNumber,anchor.columnNum
ber);},showUISourceCode:function(uiSourceCode,lineNumber,columnNumber) | 1102 return false;this._showSourceLocation(anchor.uiSourceCode,anchor.lineNumber,anch
or.columnNumber);return true;},showUISourceCode:function(uiSourceCode,lineNumber
,columnNumber,forceShowInPanel) |
1072 {this._showSourceLocation(uiSourceCode,lineNumber,columnNumber);},currentUISourc
eCode:function() | 1103 {this._showSourceLocation(uiSourceCode,lineNumber,columnNumber,forceShowInPanel)
;},_showEditor:function(forceShowInPanel) |
1073 {return this._currentUISourceCode;},showUILocation:function(uiLocation) | 1104 {if(this.sourcesView.isShowing()) |
1074 {this._showSourceLocation(uiLocation.uiSourceCode,uiLocation.lineNumber,uiLocati
on.columnNumber);},_showSourceLocation:function(uiSourceCode,lineNumber,columnNu
mber) | 1105 return;if(this._canShowEditorInDrawer()&&!forceShowInPanel){var drawerEditorView
=new WebInspector.DrawerEditorView();this.sourcesView.show(drawerEditorView.elem
ent);WebInspector.inspectorView.showCloseableViewInDrawer("editor",WebInspector.
UIString("Editor"),drawerEditorView);}else{WebInspector.showPanel("sources");}},
currentUISourceCode:function() |
1075 {var sourceFrame=this._showFile(uiSourceCode);if(typeof lineNumber==="number") | 1106 {return this._currentUISourceCode;},showUILocation:function(uiLocation,forceShow
InPanel) |
| 1107 {this._showSourceLocation(uiLocation.uiSourceCode,uiLocation.lineNumber,uiLocati
on.columnNumber,forceShowInPanel);},_canShowEditorInDrawer:function() |
| 1108 {return WebInspector.experimentsSettings.showEditorInDrawer.isEnabled()&&WebInsp
ector.settings.showEditorInDrawer.get();},_showSourceLocation:function(uiSourceC
ode,lineNumber,columnNumber,forceShowInPanel) |
| 1109 {this._showEditor(forceShowInPanel);var sourceFrame=this._showFile(uiSourceCode)
;if(typeof lineNumber==="number") |
1076 sourceFrame.highlightPosition(lineNumber,columnNumber);sourceFrame.focus();WebIn
spector.notifications.dispatchEventToListeners(WebInspector.UserMetrics.UserActi
on,{action:WebInspector.UserMetrics.UserActionNames.OpenSourceLink,url:uiSourceC
ode.originURL(),lineNumber:lineNumber});},_showFile:function(uiSourceCode) | 1110 sourceFrame.highlightPosition(lineNumber,columnNumber);sourceFrame.focus();WebIn
spector.notifications.dispatchEventToListeners(WebInspector.UserMetrics.UserActi
on,{action:WebInspector.UserMetrics.UserActionNames.OpenSourceLink,url:uiSourceC
ode.originURL(),lineNumber:lineNumber});},_showFile:function(uiSourceCode) |
1077 {var sourceFrame=this._getOrCreateSourceFrame(uiSourceCode);if(this._currentUISo
urceCode===uiSourceCode) | 1111 {var sourceFrame=this._getOrCreateSourceFrame(uiSourceCode);if(this._currentUISo
urceCode===uiSourceCode) |
1078 return sourceFrame;this._currentUISourceCode=uiSourceCode;if(!uiSourceCode.proje
ct().isServiceProject()) | 1112 return sourceFrame;this._currentUISourceCode=uiSourceCode;if(!uiSourceCode.proje
ct().isServiceProject()) |
1079 this._navigator.revealUISourceCode(uiSourceCode,true);this._editorContainer.show
File(uiSourceCode);this._updateScriptViewStatusBarItems();if(this._currentUISour
ceCode.project().type()===WebInspector.projectTypes.Snippets) | 1113 this._navigator.revealUISourceCode(uiSourceCode,true);this._editorContainer.show
File(uiSourceCode);this._updateScriptViewStatusBarItems();if(this._currentUISour
ceCode.project().type()===WebInspector.projectTypes.Snippets) |
1080 this._runSnippetButton.element.removeStyleClass("hidden");else | 1114 this._runSnippetButton.element.removeStyleClass("hidden");else |
1081 this._runSnippetButton.element.addStyleClass("hidden");return sourceFrame;},_cre
ateSourceFrame:function(uiSourceCode) | 1115 this._runSnippetButton.element.addStyleClass("hidden");return sourceFrame;},_cre
ateSourceFrame:function(uiSourceCode) |
1082 {var sourceFrame;switch(uiSourceCode.contentType()){case WebInspector.resourceTy
pes.Script:sourceFrame=new WebInspector.JavaScriptSourceFrame(this,uiSourceCode)
;break;case WebInspector.resourceTypes.Document:sourceFrame=new WebInspector.Jav
aScriptSourceFrame(this,uiSourceCode);break;case WebInspector.resourceTypes.Styl
esheet:default:sourceFrame=new WebInspector.UISourceCodeFrame(uiSourceCode);brea
k;} | 1116 {var sourceFrame;switch(uiSourceCode.contentType()){case WebInspector.resourceTy
pes.Script:sourceFrame=new WebInspector.JavaScriptSourceFrame(this,uiSourceCode)
;break;case WebInspector.resourceTypes.Document:sourceFrame=new WebInspector.Jav
aScriptSourceFrame(this,uiSourceCode);break;case WebInspector.resourceTypes.Styl
esheet:sourceFrame=new WebInspector.CSSSourceFrame(uiSourceCode);break;default:s
ourceFrame=new WebInspector.UISourceCodeFrame(uiSourceCode);break;} |
1083 this._sourceFramesByUISourceCode.put(uiSourceCode,sourceFrame);return sourceFram
e;},_getOrCreateSourceFrame:function(uiSourceCode) | 1117 sourceFrame.setHighlighterType(uiSourceCode.highlighterType());this._sourceFrame
sByUISourceCode.put(uiSourceCode,sourceFrame);return sourceFrame;},_getOrCreateS
ourceFrame:function(uiSourceCode) |
1084 {return this._sourceFramesByUISourceCode.get(uiSourceCode)||this._createSourceFr
ame(uiSourceCode);},viewForFile:function(uiSourceCode) | 1118 {return this._sourceFramesByUISourceCode.get(uiSourceCode)||this._createSourceFr
ame(uiSourceCode);},_sourceFrameMatchesUISourceCode:function(sourceFrame,uiSourc
eCode) |
| 1119 {switch(uiSourceCode.contentType()){case WebInspector.resourceTypes.Script:case
WebInspector.resourceTypes.Document:return sourceFrame instanceof WebInspector.J
avaScriptSourceFrame;case WebInspector.resourceTypes.Stylesheet:return sourceFra
me instanceof WebInspector.CSSSourceFrame;default:return!(sourceFrame instanceof
WebInspector.JavaScriptSourceFrame);}},_recreateSourceFrameIfNeeded:function(ui
SourceCode) |
| 1120 {var oldSourceFrame=this._sourceFramesByUISourceCode.get(uiSourceCode);if(!oldSo
urceFrame) |
| 1121 return;if(this._sourceFrameMatchesUISourceCode(oldSourceFrame,uiSourceCode)){old
SourceFrame.setHighlighterType(uiSourceCode.highlighterType());}else{this._edito
rContainer.removeUISourceCode(uiSourceCode);this._removeSourceFrame(uiSourceCode
);}},viewForFile:function(uiSourceCode) |
1085 {return this._getOrCreateSourceFrame(uiSourceCode);},_removeSourceFrame:function
(uiSourceCode) | 1122 {return this._getOrCreateSourceFrame(uiSourceCode);},_removeSourceFrame:function
(uiSourceCode) |
1086 {var sourceFrame=this._sourceFramesByUISourceCode.get(uiSourceCode);if(!sourceFr
ame) | 1123 {var sourceFrame=this._sourceFramesByUISourceCode.get(uiSourceCode);if(!sourceFr
ame) |
1087 return;this._sourceFramesByUISourceCode.remove(uiSourceCode);sourceFrame.dispose
();},_clearCurrentExecutionLine:function() | 1124 return;this._sourceFramesByUISourceCode.remove(uiSourceCode);sourceFrame.dispose
();},_clearCurrentExecutionLine:function() |
1088 {if(this._executionSourceFrame) | 1125 {if(this._executionSourceFrame) |
1089 this._executionSourceFrame.clearExecutionLine();delete this._executionSourceFram
e;},_setExecutionLine:function(uiLocation) | 1126 this._executionSourceFrame.clearExecutionLine();delete this._executionSourceFram
e;},_setExecutionLine:function(uiLocation) |
1090 {var callFrame=WebInspector.debuggerModel.selectedCallFrame() | 1127 {var callFrame=WebInspector.debuggerModel.selectedCallFrame() |
1091 var sourceFrame=this._getOrCreateSourceFrame(uiLocation.uiSourceCode);sourceFram
e.setExecutionLine(uiLocation.lineNumber,callFrame);this._executionSourceFrame=s
ourceFrame;},_executionLineChanged:function(uiLocation) | 1128 var sourceFrame=this._getOrCreateSourceFrame(uiLocation.uiSourceCode);sourceFram
e.setExecutionLine(uiLocation.lineNumber,callFrame);this._executionSourceFrame=s
ourceFrame;},_executionLineChanged:function(uiLocation) |
1092 {this._clearCurrentExecutionLine();this._setExecutionLine(uiLocation);var uiSour
ceCode=uiLocation.uiSourceCode;var scriptFile=this._currentUISourceCode?this._cu
rrentUISourceCode.scriptFile():null;if(this._skipExecutionLineRevealing) | 1129 {this._clearCurrentExecutionLine();this._setExecutionLine(uiLocation);var uiSour
ceCode=uiLocation.uiSourceCode;var scriptFile=this._currentUISourceCode?this._cu
rrentUISourceCode.scriptFile():null;if(this._skipExecutionLineRevealing) |
1093 return;this._skipExecutionLineRevealing=true;var sourceFrame=this._showFile(uiSo
urceCode);sourceFrame.revealLine(uiLocation.lineNumber);if(sourceFrame.canEditSo
urce()) | 1130 return;this._skipExecutionLineRevealing=true;var sourceFrame=this._showFile(uiSo
urceCode);sourceFrame.revealLine(uiLocation.lineNumber);if(sourceFrame.canEditSo
urce()) |
1094 sourceFrame.setSelection(WebInspector.TextRange.createFromLocation(uiLocation.li
neNumber,0));sourceFrame.focus();},_callFrameSelected:function(event) | 1131 sourceFrame.setSelection(WebInspector.TextRange.createFromLocation(uiLocation.li
neNumber,0));sourceFrame.focus();},_callFrameSelected:function(event) |
1095 {var callFrame=event.data;if(!callFrame) | 1132 {var callFrame=event.data;if(!callFrame) |
1096 return;this.sidebarPanes.scopechain.update(callFrame);this.sidebarPanes.watchExp
ressions.refreshExpressions();this.sidebarPanes.callstack.setSelectedCallFrame(c
allFrame);callFrame.createLiveLocation(this._executionLineChanged.bind(this));},
_editorClosed:function(event) | 1133 return;this.sidebarPanes.scopechain.update(callFrame);this.sidebarPanes.watchExp
ressions.refreshExpressions();this.sidebarPanes.callstack.setSelectedCallFrame(c
allFrame);callFrame.createLiveLocation(this._executionLineChanged.bind(this));},
_editorClosed:function(event) |
1097 {this._navigatorController.hideNavigatorOverlay();var uiSourceCode=(event.data);
if(this._currentUISourceCode===uiSourceCode) | 1134 {this._navigatorController.hideNavigatorOverlay();var uiSourceCode=(event.data);
if(this._currentUISourceCode===uiSourceCode) |
1098 delete this._currentUISourceCode;this._updateScriptViewStatusBarItems();WebInspe
ctor.searchController.resetSearch();},_editorSelected:function(event) | 1135 delete this._currentUISourceCode;this._updateScriptViewStatusBarItems();WebInspe
ctor.searchController.resetSearch();},_editorSelected:function(event) |
1099 {var uiSourceCode=(event.data);var sourceFrame=this._showFile(uiSourceCode);this
._navigatorController.hideNavigatorOverlay();if(!this._navigatorController.isNav
igatorPinned()) | 1136 {var uiSourceCode=(event.data);var sourceFrame=this._showFile(uiSourceCode);this
._navigatorController.hideNavigatorOverlay();if(!this._navigatorController.isNav
igatorPinned()) |
1100 sourceFrame.focus();WebInspector.searchController.resetSearch();},_sourceSelecte
d:function(event) | 1137 sourceFrame.focus();WebInspector.searchController.resetSearch();},_sourceSelecte
d:function(event) |
1101 {var uiSourceCode=(event.data.uiSourceCode);var sourceFrame=this._showFile(uiSou
rceCode);this._navigatorController.hideNavigatorOverlay();if(sourceFrame&&(!this
._navigatorController.isNavigatorPinned()||event.data.focusSource)) | 1138 {var uiSourceCode=(event.data.uiSourceCode);var sourceFrame=this._showFile(uiSou
rceCode);this._navigatorController.hideNavigatorOverlay();if(sourceFrame&&(!this
._navigatorController.isNavigatorPinned()||event.data.focusSource)) |
1102 sourceFrame.focus();},_itemSearchStarted:function(event) | 1139 sourceFrame.focus();},_itemSearchStarted:function(event) |
1103 {var searchText=(event.data);WebInspector.OpenResourceDialog.show(this,this.edit
orView.mainElement,searchText);},_pauseOnExceptionStateChanged:function() | 1140 {var searchText=(event.data);WebInspector.OpenResourceDialog.show(this,this.edit
orView.mainElement,searchText);},_pauseOnExceptionStateChanged:function() |
1104 {var pauseOnExceptionsState=WebInspector.settings.pauseOnExceptionStateString.ge
t();switch(pauseOnExceptionsState){case WebInspector.DebuggerModel.PauseOnExcept
ionsState.DontPauseOnExceptions:this._pauseOnExceptionButton.title=WebInspector.
UIString("Don't pause on exceptions.\nClick to Pause on all exceptions.");break;
case WebInspector.DebuggerModel.PauseOnExceptionsState.PauseOnAllExceptions:this
._pauseOnExceptionButton.title=WebInspector.UIString("Pause on all exceptions.\n
Click to Pause on uncaught exceptions.");break;case WebInspector.DebuggerModel.P
auseOnExceptionsState.PauseOnUncaughtExceptions:this._pauseOnExceptionButton.tit
le=WebInspector.UIString("Pause on uncaught exceptions.\nClick to Not pause on e
xceptions.");break;} | 1141 {var pauseOnExceptionsState=WebInspector.settings.pauseOnExceptionStateString.ge
t();switch(pauseOnExceptionsState){case WebInspector.DebuggerModel.PauseOnExcept
ionsState.DontPauseOnExceptions:this._pauseOnExceptionButton.title=WebInspector.
UIString("Don't pause on exceptions.\nClick to Pause on all exceptions.");break;
case WebInspector.DebuggerModel.PauseOnExceptionsState.PauseOnAllExceptions:this
._pauseOnExceptionButton.title=WebInspector.UIString("Pause on all exceptions.\n
Click to Pause on uncaught exceptions.");break;case WebInspector.DebuggerModel.P
auseOnExceptionsState.PauseOnUncaughtExceptions:this._pauseOnExceptionButton.tit
le=WebInspector.UIString("Pause on uncaught exceptions.\nClick to Not pause on e
xceptions.");break;} |
1105 this._pauseOnExceptionButton.state=pauseOnExceptionsState;},_updateDebuggerButto
ns:function() | 1142 this._pauseOnExceptionButton.state=pauseOnExceptionsState;},_updateDebuggerButto
ns:function() |
1106 {if(this._paused){this._updateButtonTitle(this._pauseButton,WebInspector.UIStrin
g("Resume script execution (%s).")) | 1143 {if(this._paused){this._updateButtonTitle(this._pauseButton,WebInspector.UIStrin
g("Resume script execution (%s).")) |
1107 this._pauseButton.state=true;this._pauseButton.setLongClickOptionsEnabled((funct
ion(){return[this._longResumeButton]}).bind(this));this._pauseButton.setEnabled(
true);this._stepOverButton.setEnabled(true);this._stepIntoButton.setEnabled(true
);this._stepOutButton.setEnabled(true);}else{this._updateButtonTitle(this._pause
Button,WebInspector.UIString("Pause script execution (%s).")) | 1144 this._pauseButton.state=true;this._pauseButton.setLongClickOptionsEnabled((funct
ion(){return[this._longResumeButton]}).bind(this));this._pauseButton.setEnabled(
true);this._stepOverButton.setEnabled(true);this._stepIntoButton.setEnabled(true
);this._stepOutButton.setEnabled(true);}else{this._updateButtonTitle(this._pause
Button,WebInspector.UIString("Pause script execution (%s).")) |
1108 this._pauseButton.state=false;this._pauseButton.setLongClickOptionsEnabled(null)
;this._pauseButton.setEnabled(!this._waitingToPause);this._stepOverButton.setEna
bled(false);this._stepIntoButton.setEnabled(false);this._stepOutButton.setEnable
d(false);}},_clearInterface:function() | 1145 this._pauseButton.state=false;this._pauseButton.setLongClickOptionsEnabled(null)
;this._pauseButton.setEnabled(!this._waitingToPause);this._stepOverButton.setEna
bled(false);this._stepIntoButton.setEnabled(false);this._stepOutButton.setEnable
d(false);}},_clearInterface:function() |
1109 {this.sidebarPanes.callstack.update(null);this.sidebarPanes.scopechain.update(nu
ll);this.sidebarPanes.jsBreakpoints.clearBreakpointHighlight();WebInspector.domB
reakpointsSidebarPane.clearBreakpointHighlight();this.sidebarPanes.eventListener
Breakpoints.clearBreakpointHighlight();this.sidebarPanes.xhrBreakpoints.clearBre
akpointHighlight();this._clearCurrentExecutionLine();this._updateDebuggerButtons
();},_togglePauseOnExceptions:function() | 1146 {this.sidebarPanes.callstack.update(null);this.sidebarPanes.scopechain.update(nu
ll);this.sidebarPanes.jsBreakpoints.clearBreakpointHighlight();WebInspector.domB
reakpointsSidebarPane.clearBreakpointHighlight();this.sidebarPanes.eventListener
Breakpoints.clearBreakpointHighlight();this.sidebarPanes.xhrBreakpoints.clearBre
akpointHighlight();this._clearCurrentExecutionLine();this._updateDebuggerButtons
();},_togglePauseOnExceptions:function() |
1110 {var nextStateMap={};var stateEnum=WebInspector.DebuggerModel.PauseOnExceptionsS
tate;nextStateMap[stateEnum.DontPauseOnExceptions]=stateEnum.PauseOnAllException
s;nextStateMap[stateEnum.PauseOnAllExceptions]=stateEnum.PauseOnUncaughtExceptio
ns;nextStateMap[stateEnum.PauseOnUncaughtExceptions]=stateEnum.DontPauseOnExcept
ions;WebInspector.settings.pauseOnExceptionStateString.set(nextStateMap[this._pa
useOnExceptionButton.state]);},_runSnippet:function(event) | 1147 {var nextStateMap={};var stateEnum=WebInspector.DebuggerModel.PauseOnExceptionsS
tate;nextStateMap[stateEnum.DontPauseOnExceptions]=stateEnum.PauseOnAllException
s;nextStateMap[stateEnum.PauseOnAllExceptions]=stateEnum.PauseOnUncaughtExceptio
ns;nextStateMap[stateEnum.PauseOnUncaughtExceptions]=stateEnum.DontPauseOnExcept
ions;WebInspector.settings.pauseOnExceptionStateString.set(nextStateMap[this._pa
useOnExceptionButton.state]);},_runSnippet:function(event) |
1111 {if(this._currentUISourceCode.project().type()!==WebInspector.projectTypes.Snipp
ets) | 1148 {if(this._currentUISourceCode.project().type()!==WebInspector.projectTypes.Snipp
ets) |
1112 return false;WebInspector.scriptSnippetModel.evaluateScriptSnippet(this._current
UISourceCode);return true;},_togglePause:function(event) | 1149 return false;WebInspector.scriptSnippetModel.evaluateScriptSnippet(this._current
UISourceCode);return true;},_togglePause:function(event) |
1113 {if(this._paused){delete this._skipExecutionLineRevealing;this._paused=false;thi
s._waitingToPause=false;DebuggerAgent.resume();}else{this._stepping=false;this._
waitingToPause=true;DebuggerAgent.setSkipAllPauses(false);DebuggerAgent.pause();
} | 1150 {if(this._paused){delete this._skipExecutionLineRevealing;this._paused=false;thi
s._waitingToPause=false;WebInspector.debuggerModel.resume();}else{this._stepping
=false;this._waitingToPause=true;WebInspector.debuggerModel.skipAllPauses(false)
;DebuggerAgent.pause();} |
1114 this._clearInterface();return true;},_longResume:function(event) | 1151 this._clearInterface();return true;},_longResume:function(event) |
1115 {if(!this._paused) | 1152 {if(!this._paused) |
1116 return true;this._paused=false;this._waitingToPause=false;DebuggerAgent.setSkipA
llPauses(true,true);setTimeout(DebuggerAgent.setSkipAllPauses.bind(DebuggerAgent
,false),500);DebuggerAgent.resume();this._clearInterface();return true;},_stepOv
erClicked:function(event) | 1153 return true;this._paused=false;this._waitingToPause=false;WebInspector.debuggerM
odel.skipAllPausesUntilReloadOrTimeout(500);WebInspector.debuggerModel.resume();
this._clearInterface();return true;},_stepOverClicked:function(event) |
1117 {if(!this._paused) | 1154 {if(!this._paused) |
1118 return true;delete this._skipExecutionLineRevealing;this._paused=false;this._ste
pping=true;this._clearInterface();DebuggerAgent.stepOver();return true;},_stepIn
toClicked:function(event) | 1155 return true;delete this._skipExecutionLineRevealing;this._paused=false;this._ste
pping=true;this._clearInterface();WebInspector.debuggerModel.stepOver();return t
rue;},_stepIntoClicked:function(event) |
1119 {if(!this._paused) | 1156 {if(!this._paused) |
1120 return true;delete this._skipExecutionLineRevealing;this._paused=false;this._ste
pping=true;this._clearInterface();DebuggerAgent.stepInto();return true;},_stepIn
toSelectionClicked:function(event) | 1157 return true;delete this._skipExecutionLineRevealing;this._paused=false;this._ste
pping=true;this._clearInterface();WebInspector.debuggerModel.stepInto();return t
rue;},_stepIntoSelectionClicked:function(event) |
1121 {if(!this._paused) | 1158 {if(!this._paused) |
1122 return true;if(this._executionSourceFrame){var stepIntoMarkup=this._executionSou
rceFrame.stepIntoMarkup();if(stepIntoMarkup) | 1159 return true;if(this._executionSourceFrame){var stepIntoMarkup=this._executionSou
rceFrame.stepIntoMarkup();if(stepIntoMarkup) |
1123 stepIntoMarkup.iterateSelection(event.shiftKey);} | 1160 stepIntoMarkup.iterateSelection(event.shiftKey);} |
1124 return true;},doStepIntoSelection:function(rawLocation) | 1161 return true;},doStepIntoSelection:function(rawLocation) |
1125 {if(!this._paused) | 1162 {if(!this._paused) |
1126 return;delete this._skipExecutionLineRevealing;this._paused=false;this._stepping
=true;this._clearInterface();WebInspector.debuggerModel.stepIntoSelection(rawLoc
ation);},_stepOutClicked:function(event) | 1163 return;delete this._skipExecutionLineRevealing;this._paused=false;this._stepping
=true;this._clearInterface();WebInspector.debuggerModel.stepIntoSelection(rawLoc
ation);},_stepOutClicked:function(event) |
1127 {if(!this._paused) | 1164 {if(!this._paused) |
1128 return true;delete this._skipExecutionLineRevealing;this._paused=false;this._ste
pping=true;this._clearInterface();DebuggerAgent.stepOut();return true;},_callFra
meSelectedInSidebar:function(event) | 1165 return true;delete this._skipExecutionLineRevealing;this._paused=false;this._ste
pping=true;this._clearInterface();WebInspector.debuggerModel.stepOut();return tr
ue;},_callFrameSelectedInSidebar:function(event) |
1129 {var callFrame=(event.data);delete this._skipExecutionLineRevealing;WebInspector
.debuggerModel.setSelectedCallFrame(callFrame);},continueToLocation:function(raw
Location) | 1166 {var callFrame=(event.data);delete this._skipExecutionLineRevealing;WebInspector
.debuggerModel.setSelectedCallFrame(callFrame);},continueToLocation:function(raw
Location) |
1130 {if(!this._paused) | 1167 {if(!this._paused) |
1131 return;delete this._skipExecutionLineRevealing;this._paused=false;this._stepping
=true;this._clearInterface();WebInspector.debuggerModel.continueToLocation(rawLo
cation);},_toggleBreakpointsClicked:function(event) | 1168 return;delete this._skipExecutionLineRevealing;this._paused=false;this._stepping
=true;this._clearInterface();WebInspector.debuggerModel.continueToLocation(rawLo
cation);},_toggleBreakpointsClicked:function(event) |
1132 {WebInspector.debuggerModel.setBreakpointsActive(!WebInspector.debuggerModel.bre
akpointsActive());},_breakpointsActiveStateChanged:function(event) | 1169 {WebInspector.debuggerModel.setBreakpointsActive(!WebInspector.debuggerModel.bre
akpointsActive());},_breakpointsActiveStateChanged:function(event) |
1133 {var active=event.data;this._toggleBreakpointsButton.toggled=!active;if(active){
this._toggleBreakpointsButton.title=WebInspector.UIString("Deactivate breakpoint
s.");WebInspector.inspectorView.element.removeStyleClass("breakpoints-deactivate
d");this.sidebarPanes.jsBreakpoints.listElement.removeStyleClass("breakpoints-li
st-deactivated");}else{this._toggleBreakpointsButton.title=WebInspector.UIString
("Activate breakpoints.");WebInspector.inspectorView.element.addStyleClass("brea
kpoints-deactivated");this.sidebarPanes.jsBreakpoints.listElement.addStyleClass(
"breakpoints-list-deactivated");}},_createDebugToolbar:function() | 1170 {var active=event.data;this._toggleBreakpointsButton.toggled=!active;if(active){
this._toggleBreakpointsButton.title=WebInspector.UIString("Deactivate breakpoint
s.");WebInspector.inspectorView.element.removeStyleClass("breakpoints-deactivate
d");this.sidebarPanes.jsBreakpoints.listElement.removeStyleClass("breakpoints-li
st-deactivated");}else{this._toggleBreakpointsButton.title=WebInspector.UIString
("Activate breakpoints.");WebInspector.inspectorView.element.addStyleClass("brea
kpoints-deactivated");this.sidebarPanes.jsBreakpoints.listElement.addStyleClass(
"breakpoints-list-deactivated");}},_createDebugToolbar:function() |
1134 {var debugToolbar=document.createElement("div");debugToolbar.className="status-b
ar";debugToolbar.id="scripts-debug-toolbar";var title,handler;var platformSpecif
icModifier=WebInspector.KeyboardShortcut.Modifiers.CtrlOrMeta;title=WebInspector
.UIString("Run snippet (%s).");handler=this._runSnippet.bind(this);this._runSnip
petButton=this._createButtonAndRegisterShortcuts("scripts-run-snippet",title,han
dler,WebInspector.SourcesPanelDescriptor.ShortcutKeys.RunSnippet);debugToolbar.a
ppendChild(this._runSnippetButton.element);this._runSnippetButton.element.addSty
leClass("hidden");handler=this._togglePause.bind(this);this._pauseButton=this._c
reateButtonAndRegisterShortcuts("scripts-pause","",handler,WebInspector.SourcesP
anelDescriptor.ShortcutKeys.PauseContinue);debugToolbar.appendChild(this._pauseB
utton.element);title=WebInspector.UIString("Resume with all pauses blocked for 5
00 ms");this._longResumeButton=new WebInspector.StatusBarButton(title,"scripts-l
ong-resume");this._longResumeButton.addEventListener("click",this._longResume.bi
nd(this),this);title=WebInspector.UIString("Step over next function call (%s).")
;handler=this._stepOverClicked.bind(this);this._stepOverButton=this._createButto
nAndRegisterShortcuts("scripts-step-over",title,handler,WebInspector.SourcesPane
lDescriptor.ShortcutKeys.StepOver);debugToolbar.appendChild(this._stepOverButton
.element);title=WebInspector.UIString("Step into next function call (%s).");hand
ler=this._stepIntoClicked.bind(this);this._stepIntoButton=this._createButtonAndR
egisterShortcuts("scripts-step-into",title,handler,WebInspector.SourcesPanelDesc
riptor.ShortcutKeys.StepInto);debugToolbar.appendChild(this._stepIntoButton.elem
ent);this.registerShortcuts(WebInspector.SourcesPanelDescriptor.ShortcutKeys.Ste
pIntoSelection,this._stepIntoSelectionClicked.bind(this)) | 1171 {var debugToolbar=document.createElement("div");debugToolbar.className="status-b
ar";debugToolbar.id="scripts-debug-toolbar";var title,handler;var platformSpecif
icModifier=WebInspector.KeyboardShortcut.Modifiers.CtrlOrMeta;title=WebInspector
.UIString("Run snippet (%s).");handler=this._runSnippet.bind(this);this._runSnip
petButton=this._createButtonAndRegisterShortcuts("scripts-run-snippet",title,han
dler,WebInspector.SourcesPanelDescriptor.ShortcutKeys.RunSnippet);debugToolbar.a
ppendChild(this._runSnippetButton.element);this._runSnippetButton.element.addSty
leClass("hidden");handler=this._togglePause.bind(this);this._pauseButton=this._c
reateButtonAndRegisterShortcuts("scripts-pause","",handler,WebInspector.SourcesP
anelDescriptor.ShortcutKeys.PauseContinue);debugToolbar.appendChild(this._pauseB
utton.element);title=WebInspector.UIString("Resume with all pauses blocked for 5
00 ms");this._longResumeButton=new WebInspector.StatusBarButton(title,"scripts-l
ong-resume");this._longResumeButton.addEventListener("click",this._longResume.bi
nd(this),this);title=WebInspector.UIString("Step over next function call (%s).")
;handler=this._stepOverClicked.bind(this);this._stepOverButton=this._createButto
nAndRegisterShortcuts("scripts-step-over",title,handler,WebInspector.SourcesPane
lDescriptor.ShortcutKeys.StepOver);debugToolbar.appendChild(this._stepOverButton
.element);title=WebInspector.UIString("Step into next function call (%s).");hand
ler=this._stepIntoClicked.bind(this);this._stepIntoButton=this._createButtonAndR
egisterShortcuts("scripts-step-into",title,handler,WebInspector.SourcesPanelDesc
riptor.ShortcutKeys.StepInto);debugToolbar.appendChild(this._stepIntoButton.elem
ent);this.registerShortcuts(WebInspector.SourcesPanelDescriptor.ShortcutKeys.Ste
pIntoSelection,this._stepIntoSelectionClicked.bind(this)) |
1135 title=WebInspector.UIString("Step out of current function (%s).");handler=this._
stepOutClicked.bind(this);this._stepOutButton=this._createButtonAndRegisterShort
cuts("scripts-step-out",title,handler,WebInspector.SourcesPanelDescriptor.Shortc
utKeys.StepOut);debugToolbar.appendChild(this._stepOutButton.element);this._togg
leBreakpointsButton=new WebInspector.StatusBarButton(WebInspector.UIString("Deac
tivate breakpoints."),"scripts-toggle-breakpoints");this._toggleBreakpointsButto
n.toggled=false;this._toggleBreakpointsButton.addEventListener("click",this._tog
gleBreakpointsClicked,this);debugToolbar.appendChild(this._toggleBreakpointsButt
on.element);this._pauseOnExceptionButton=new WebInspector.StatusBarButton("","sc
ripts-pause-on-exceptions-status-bar-item",3);this._pauseOnExceptionButton.addEv
entListener("click",this._togglePauseOnExceptions,this);debugToolbar.appendChild
(this._pauseOnExceptionButton.element);return debugToolbar;},_updateButtonTitle:
function(button,buttonTitle) | 1172 title=WebInspector.UIString("Step out of current function (%s).");handler=this._
stepOutClicked.bind(this);this._stepOutButton=this._createButtonAndRegisterShort
cuts("scripts-step-out",title,handler,WebInspector.SourcesPanelDescriptor.Shortc
utKeys.StepOut);debugToolbar.appendChild(this._stepOutButton.element);this._togg
leBreakpointsButton=new WebInspector.StatusBarButton(WebInspector.UIString("Deac
tivate breakpoints."),"scripts-toggle-breakpoints");this._toggleBreakpointsButto
n.toggled=false;this._toggleBreakpointsButton.addEventListener("click",this._tog
gleBreakpointsClicked,this);debugToolbar.appendChild(this._toggleBreakpointsButt
on.element);this._pauseOnExceptionButton=new WebInspector.StatusBarButton("","sc
ripts-pause-on-exceptions-status-bar-item",3);this._pauseOnExceptionButton.addEv
entListener("click",this._togglePauseOnExceptions,this);debugToolbar.appendChild
(this._pauseOnExceptionButton.element);return debugToolbar;},_updateButtonTitle:
function(button,buttonTitle) |
1136 {var hasShortcuts=button.shortcuts&&button.shortcuts.length;if(hasShortcuts) | 1173 {var hasShortcuts=button.shortcuts&&button.shortcuts.length;if(hasShortcuts) |
1137 button.title=String.vsprintf(buttonTitle,[button.shortcuts[0].name]);else | 1174 button.title=String.vsprintf(buttonTitle,[button.shortcuts[0].name]);else |
1138 button.title=buttonTitle;},_createButtonAndRegisterShortcuts:function(buttonId,b
uttonTitle,handler,shortcuts) | 1175 button.title=buttonTitle;},_createButtonAndRegisterShortcuts:function(buttonId,b
uttonTitle,handler,shortcuts) |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1172 return false;if(sourceFrame instanceof WebInspector.JavaScriptSourceFrame){var j
avaScriptSourceFrame=(sourceFrame);javaScriptSourceFrame.toggleBreakpointOnCurre
ntLine();return true;} | 1209 return false;if(sourceFrame instanceof WebInspector.JavaScriptSourceFrame){var j
avaScriptSourceFrame=(sourceFrame);javaScriptSourceFrame.toggleBreakpointOnCurre
ntLine();return true;} |
1173 return false;},_showOutlineDialog:function(event) | 1210 return false;},_showOutlineDialog:function(event) |
1174 {var uiSourceCode=this._editorContainer.currentFile();if(!uiSourceCode) | 1211 {var uiSourceCode=this._editorContainer.currentFile();if(!uiSourceCode) |
1175 return false;switch(uiSourceCode.contentType()){case WebInspector.resourceTypes.
Document:case WebInspector.resourceTypes.Script:WebInspector.JavaScriptOutlineDi
alog.show(this.visibleView,uiSourceCode);return true;case WebInspector.resourceT
ypes.Stylesheet:WebInspector.StyleSheetOutlineDialog.show(this.visibleView,uiSou
rceCode);return true;} | 1212 return false;switch(uiSourceCode.contentType()){case WebInspector.resourceTypes.
Document:case WebInspector.resourceTypes.Script:WebInspector.JavaScriptOutlineDi
alog.show(this.visibleView,uiSourceCode);return true;case WebInspector.resourceT
ypes.Stylesheet:WebInspector.StyleSheetOutlineDialog.show(this.visibleView,uiSou
rceCode);return true;} |
1176 return false;},_installDebuggerSidebarController:function() | 1213 return false;},_installDebuggerSidebarController:function() |
1177 {this._toggleDebuggerSidebarButton=new WebInspector.StatusBarButton("","right-si
debar-show-hide-button scripts-debugger-show-hide-button",3);this._toggleDebugge
rSidebarButton.addEventListener("click",clickHandler,this);this.editorView.eleme
nt.appendChild(this._toggleDebuggerSidebarButton.element);this._enableDebuggerSi
debar(!WebInspector.settings.debuggerSidebarHidden.get());function clickHandler(
) | 1214 {this._toggleDebuggerSidebarButton=new WebInspector.StatusBarButton("","right-si
debar-show-hide-button scripts-debugger-show-hide-button",3);this._toggleDebugge
rSidebarButton.addEventListener("click",clickHandler,this);this.editorView.eleme
nt.appendChild(this._toggleDebuggerSidebarButton.element);this._enableDebuggerSi
debar(!WebInspector.settings.debuggerSidebarHidden.get());function clickHandler(
) |
1178 {this._enableDebuggerSidebar(this._toggleDebuggerSidebarButton.state==="left");}
},_enableDebuggerSidebar:function(show) | 1215 {this._enableDebuggerSidebar(this._toggleDebuggerSidebarButton.state==="left");}
},_enableDebuggerSidebar:function(show) |
1179 {this._toggleDebuggerSidebarButton.state=show?"right":"left";this._toggleDebugge
rSidebarButton.title=show?WebInspector.UIString("Hide debugger"):WebInspector.UI
String("Show debugger");if(show) | 1216 {this._toggleDebuggerSidebarButton.state=show?"right":"left";this._toggleDebugge
rSidebarButton.title=show?WebInspector.UIString("Hide debugger"):WebInspector.UI
String("Show debugger");if(show) |
1180 this.splitView.showSidebarElement();else | 1217 this.splitView.showSidebarElement();else |
1181 this.splitView.hideSidebarElement();this._debugSidebarResizeWidgetElement.enable
StyleClass("hidden",!show);WebInspector.settings.debuggerSidebarHidden.set(!show
);},_itemCreationRequested:function(event) | 1218 this.splitView.hideSidebarElement();this._debugSidebarResizeWidgetElement.enable
StyleClass("hidden",!show);WebInspector.settings.debuggerSidebarHidden.set(!show
);},_itemCreationRequested:function(event) |
1182 {var project=event.data.project;var path=event.data.path;var filePath;var should
HideNavigator;var uiSourceCode;project.createFile(path,null,fileCreated.bind(thi
s));function fileCreated(path) | 1219 {var project=event.data.project;var path=event.data.path;var uiSourceCodeToCopy=
event.data.uiSourceCode;var filePath;var shouldHideNavigator;var uiSourceCode;if
(uiSourceCodeToCopy){function contentLoaded(content) |
| 1220 {createFile.call(this,content||"");} |
| 1221 uiSourceCodeToCopy.requestContent(contentLoaded.bind(this));}else{createFile.cal
l(this);} |
| 1222 function createFile(content) |
| 1223 {project.createFile(path,null,content||"",fileCreated.bind(this));} |
| 1224 function fileCreated(path) |
1183 {if(!path) | 1225 {if(!path) |
1184 return;filePath=path;uiSourceCode=project.uiSourceCode(filePath);this._showSourc
eLocation(uiSourceCode);shouldHideNavigator=!this._navigatorController.isNavigat
orPinned();if(this._navigatorController.isNavigatorHidden()) | 1226 return;filePath=path;uiSourceCode=project.uiSourceCode(filePath);this._showSourc
eLocation(uiSourceCode);shouldHideNavigator=!this._navigatorController.isNavigat
orPinned();if(this._navigatorController.isNavigatorHidden()) |
1185 this._navigatorController.showNavigatorOverlay();this._navigator.rename(uiSource
Code,callback.bind(this));} | 1227 this._navigatorController.showNavigatorOverlay();this._navigator.rename(uiSource
Code,callback.bind(this));} |
1186 function callback(committed) | 1228 function callback(committed) |
1187 {if(shouldHideNavigator) | 1229 {if(shouldHideNavigator) |
1188 this._navigatorController.hideNavigatorOverlay();if(!committed){project.deleteFi
le(uiSourceCode);return;} | 1230 this._navigatorController.hideNavigatorOverlay();if(!committed){project.deleteFi
le(uiSourceCode);return;} |
1189 this._showSourceLocation(uiSourceCode);}},_itemRenamingRequested:function(event) | 1231 this._recreateSourceFrameIfNeeded(uiSourceCode);this._navigator.updateIcon(uiSou
rceCode);this._showSourceLocation(uiSourceCode);}},_itemRenamingRequested:functi
on(event) |
1190 {var uiSourceCode=(event.data);var shouldHideNavigator=!this._navigatorControlle
r.isNavigatorPinned();if(this._navigatorController.isNavigatorHidden()) | 1232 {var uiSourceCode=(event.data);var shouldHideNavigator=!this._navigatorControlle
r.isNavigatorPinned();if(this._navigatorController.isNavigatorHidden()) |
1191 this._navigatorController.showNavigatorOverlay();this._navigator.rename(uiSource
Code,callback.bind(this));function callback(committed) | 1233 this._navigatorController.showNavigatorOverlay();this._navigator.rename(uiSource
Code,callback.bind(this));function callback(committed) |
1192 {if(shouldHideNavigator&&committed){this._navigatorController.hideNavigatorOverl
ay();this._showSourceLocation(uiSourceCode);}}},_showLocalHistory:function(uiSou
rceCode) | 1234 {if(shouldHideNavigator&&committed) |
| 1235 this._navigatorController.hideNavigatorOverlay();this._recreateSourceFrameIfNeed
ed(uiSourceCode);this._navigator.updateIcon(uiSourceCode);this._showSourceLocati
on(uiSourceCode);}},_showLocalHistory:function(uiSourceCode) |
1193 {WebInspector.RevisionHistoryView.showHistory(uiSourceCode);},appendApplicableIt
ems:function(event,contextMenu,target) | 1236 {WebInspector.RevisionHistoryView.showHistory(uiSourceCode);},appendApplicableIt
ems:function(event,contextMenu,target) |
1194 {this._appendUISourceCodeItems(contextMenu,target);this._appendFunctionItems(con
textMenu,target);},_mapFileSystemToNetwork:function(uiSourceCode) | 1237 {this._appendUISourceCodeItems(contextMenu,target);this._appendFunctionItems(con
textMenu,target);},_mapFileSystemToNetwork:function(uiSourceCode) |
1195 {WebInspector.SelectUISourceCodeForProjectTypeDialog.show(uiSourceCode.name(),We
bInspector.projectTypes.Network,mapFileSystemToNetwork.bind(this),this.editorVie
w.mainElement) | 1238 {WebInspector.SelectUISourceCodeForProjectTypeDialog.show(uiSourceCode.name(),We
bInspector.projectTypes.Network,mapFileSystemToNetwork.bind(this),this.editorVie
w.mainElement) |
1196 function mapFileSystemToNetwork(networkUISourceCode) | 1239 function mapFileSystemToNetwork(networkUISourceCode) |
1197 {this._workspace.addMapping(networkUISourceCode,uiSourceCode,WebInspector.fileSy
stemWorkspaceProvider);}},_removeNetworkMapping:function(uiSourceCode) | 1240 {this._workspace.addMapping(networkUISourceCode,uiSourceCode,WebInspector.fileSy
stemWorkspaceProvider);}},_removeNetworkMapping:function(uiSourceCode) |
1198 {if(confirm(WebInspector.UIString("Are you sure you want to remove network mappi
ng?"))) | 1241 {if(confirm(WebInspector.UIString("Are you sure you want to remove network mappi
ng?"))) |
1199 this._workspace.removeMapping(uiSourceCode);},_mapNetworkToFileSystem:function(n
etworkUISourceCode) | 1242 this._workspace.removeMapping(uiSourceCode);},_mapNetworkToFileSystem:function(n
etworkUISourceCode) |
1200 {WebInspector.SelectUISourceCodeForProjectTypeDialog.show(networkUISourceCode.na
me(),WebInspector.projectTypes.FileSystem,mapNetworkToFileSystem.bind(this),this
.editorView.mainElement) | 1243 {WebInspector.SelectUISourceCodeForProjectTypeDialog.show(networkUISourceCode.na
me(),WebInspector.projectTypes.FileSystem,mapNetworkToFileSystem.bind(this),this
.editorView.mainElement) |
1201 function mapNetworkToFileSystem(uiSourceCode) | 1244 function mapNetworkToFileSystem(uiSourceCode) |
1202 {this._workspace.addMapping(networkUISourceCode,uiSourceCode,WebInspector.fileSy
stemWorkspaceProvider);}},_appendUISourceCodeMappingItems:function(contextMenu,u
iSourceCode) | 1245 {this._workspace.addMapping(networkUISourceCode,uiSourceCode,WebInspector.fileSy
stemWorkspaceProvider);}},_appendUISourceCodeMappingItems:function(contextMenu,u
iSourceCode) |
(...skipping 15 matching lines...) Expand all Loading... |
1218 WebInspector.inspectorView.setCurrentPanel(this);var uiLocation=WebInspector.deb
uggerModel.rawLocationToUILocation(response.location);this._showSourceLocation(u
iLocation.uiSourceCode,uiLocation.lineNumber,uiLocation.columnNumber);} | 1261 WebInspector.inspectorView.setCurrentPanel(this);var uiLocation=WebInspector.deb
uggerModel.rawLocationToUILocation(response.location);this._showSourceLocation(u
iLocation.uiSourceCode,uiLocation.lineNumber,uiLocation.columnNumber);} |
1219 function revealFunction() | 1262 function revealFunction() |
1220 {DebuggerAgent.getFunctionDetails(remoteObject.objectId,didGetDetails.bind(this)
);} | 1263 {DebuggerAgent.getFunctionDetails(remoteObject.objectId,didGetDetails.bind(this)
);} |
1221 contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCaseMenuTitles
()?"Show function definition":"Show Function Definition"),revealFunction.bind(th
is));},showGoToSourceDialog:function() | 1264 contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCaseMenuTitles
()?"Show function definition":"Show Function Definition"),revealFunction.bind(th
is));},showGoToSourceDialog:function() |
1222 {var uiSourceCodes=this._editorContainer.historyUISourceCodes();var defaultScore
s=new Map();for(var i=1;i<uiSourceCodes.length;++i) | 1265 {var uiSourceCodes=this._editorContainer.historyUISourceCodes();var defaultScore
s=new Map();for(var i=1;i<uiSourceCodes.length;++i) |
1223 defaultScores.put(uiSourceCodes[i],uiSourceCodes.length-i);WebInspector.OpenReso
urceDialog.show(this,this.editorView.mainElement,undefined,defaultScores);},_doc
kSideChanged:function() | 1266 defaultScores.put(uiSourceCodes[i],uiSourceCodes.length-i);WebInspector.OpenReso
urceDialog.show(this,this.editorView.mainElement,undefined,defaultScores);},_doc
kSideChanged:function() |
1224 {var dockSide=WebInspector.dockController.dockSide();var vertically=dockSide===W
ebInspector.DockController.State.DockedToRight&&WebInspector.settings.splitVerti
callyWhenDockedToRight.get();this._splitVertically(vertically);},_splitVerticall
y:function(vertically) | 1267 {var dockSide=WebInspector.dockController.dockSide();var vertically=dockSide===W
ebInspector.DockController.State.DockedToRight&&WebInspector.settings.splitVerti
callyWhenDockedToRight.get();this._splitVertically(vertically);},_splitVerticall
y:function(vertically) |
1225 {if(this.sidebarPaneView&&vertically===!this.splitView.isVertical()) | 1268 {if(this.sidebarPaneView&&vertically===!this.splitView.isVertical()) |
1226 return;if(this.sidebarPaneView) | 1269 return;if(this.sidebarPaneView) |
1227 this.sidebarPaneView.detach();this.splitView.setVertical(!vertically);if(!vertic
ally){this.sidebarPaneView=new WebInspector.SidebarPaneStack();for(var pane in t
his.sidebarPanes) | 1270 this.sidebarPaneView.detach();this.splitView.setVertical(!vertically);if(!vertic
ally){this.sidebarPaneView=new WebInspector.SidebarPaneStack();for(var pane in t
his.sidebarPanes) |
1228 this.sidebarPaneView.addPane(this.sidebarPanes[pane]);this.sidebarElement.append
Child(this.debugToolbar);}else{this._enableDebuggerSidebar(true);this.sidebarPan
eView=new WebInspector.SplitView(true,this.name+"PanelSplitSidebarRatio",0.5);va
r group1=new WebInspector.SidebarPaneStack();group1.show(this.sidebarPaneView.fi
rstElement());group1.element.id="scripts-sidebar-stack-pane";group1.addPane(this
.sidebarPanes.callstack);group1.addPane(this.sidebarPanes.jsBreakpoints);group1.
addPane(this.sidebarPanes.domBreakpoints);group1.addPane(this.sidebarPanes.xhrBr
eakpoints);group1.addPane(this.sidebarPanes.eventListenerBreakpoints);if(this.si
debarPanes.workerList) | 1271 this.sidebarPaneView.addPane(this.sidebarPanes[pane]);this._extensionSidebarPane
sContainer=this.sidebarPaneView;this.sidebarElement.appendChild(this.debugToolba
r);}else{this._enableDebuggerSidebar(true);this.sidebarPaneView=new WebInspector
.SplitView(true,this.name+"PanelSplitSidebarRatio",0.5);var group1=new WebInspec
tor.SidebarPaneStack();group1.show(this.sidebarPaneView.firstElement());group1.e
lement.id="scripts-sidebar-stack-pane";group1.addPane(this.sidebarPanes.callstac
k);group1.addPane(this.sidebarPanes.jsBreakpoints);group1.addPane(this.sidebarPa
nes.domBreakpoints);group1.addPane(this.sidebarPanes.xhrBreakpoints);group1.addP
ane(this.sidebarPanes.eventListenerBreakpoints);if(this.sidebarPanes.workerList) |
1229 group1.addPane(this.sidebarPanes.workerList);var group2=new WebInspector.Sidebar
TabbedPane();group2.show(this.sidebarPaneView.secondElement());group2.addPane(th
is.sidebarPanes.scopechain);group2.addPane(this.sidebarPanes.watchExpressions);t
his.sidebarPaneView.firstElement().appendChild(this.debugToolbar);} | 1272 group1.addPane(this.sidebarPanes.workerList);var group2=new WebInspector.Sidebar
TabbedPane();group2.show(this.sidebarPaneView.secondElement());group2.addPane(th
is.sidebarPanes.scopechain);group2.addPane(this.sidebarPanes.watchExpressions);t
his._extensionSidebarPanesContainer=group2;this.sidebarPaneView.firstElement().a
ppendChild(this.debugToolbar);} |
1230 this.sidebarPaneView.element.id="scripts-debug-sidebar-contents";this.sidebarPan
eView.show(this.splitView.sidebarElement);this.sidebarPanes.scopechain.expand();
this.sidebarPanes.jsBreakpoints.expand();this.sidebarPanes.callstack.expand();if
(WebInspector.settings.watchExpressions.get().length>0) | 1273 for(var i=0;i<this._extensionSidebarPanes.length;++i) |
| 1274 this._extensionSidebarPanesContainer.addPane(this._extensionSidebarPanes[i]);thi
s.sidebarPaneView.element.id="scripts-debug-sidebar-contents";this.sidebarPaneVi
ew.show(this.splitView.sidebarElement);this.sidebarPanes.scopechain.expand();thi
s.sidebarPanes.jsBreakpoints.expand();this.sidebarPanes.callstack.expand();if(We
bInspector.settings.watchExpressions.get().length>0) |
1231 this.sidebarPanes.watchExpressions.expand();},canSetFooterElement:function() | 1275 this.sidebarPanes.watchExpressions.expand();},canSetFooterElement:function() |
1232 {return true;},setFooterElement:function(element) | 1276 {return true;},setFooterElement:function(element) |
1233 {if(element){this._editorFooterElement.removeStyleClass("hidden");this._editorFo
oterElement.appendChild(element);this._editorContentsElement.style.bottom=this._
editorFooterElement.offsetHeight+"px";}else{this._editorFooterElement.addStyleCl
ass("hidden");this._editorFooterElement.removeChildren();this._editorContentsEle
ment.style.bottom=0;} | 1277 {if(element){this._editorFooterElement.removeStyleClass("hidden");this._editorFo
oterElement.appendChild(element);}else{this._editorFooterElement.addStyleClass("
hidden");this._editorFooterElement.removeChildren();} |
1234 this.doResize();},__proto__:WebInspector.Panel.prototype} | 1278 this.doResize();},addExtensionSidebarPane:function(id,pane) |
| 1279 {this._extensionSidebarPanes.push(pane);this._extensionSidebarPanesContainer.add
Pane(pane);this.setHideOnDetach();},get tabbedEditorContainer() |
| 1280 {return this._editorContainer;},__proto__:WebInspector.Panel.prototype} |
| 1281 WebInspector.SourcesView=function() |
| 1282 {WebInspector.View.call(this);this.registerRequiredCSS("sourcesView.css");this.e
lement.id="sources-panel-sources-view";this.element.addStyleClass("vbox");} |
| 1283 WebInspector.SourcesView.prototype={__proto__:WebInspector.View.prototype} |
| 1284 WebInspector.DrawerEditorView=function() |
| 1285 {WebInspector.View.call(this);this.element.id="drawer-editor-view";this.element.
addStyleClass("vbox");} |
| 1286 WebInspector.DrawerEditorView.prototype={__proto__:WebInspector.View.prototype} |
OLD | NEW |