Changeset 117277 in webkit
- Timestamp:
- May 16, 2012 6:55:04 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 21 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r117276 r117277 1 2012-05-16 Pavel Feldman <pfeldman@chromium.org> 2 3 Web Inspector: split ScriptMapping into UISourceCodeProvider and SourceMapping. 4 https://bugs.webkit.org/show_bug.cgi?id=86616 5 6 Reviewed by Vsevolod Vlasov. 7 8 * http/tests/inspector/compiler-script-mapping.html: 9 * inspector/debugger/scripts-panel.html: 10 1 11 2012-05-16 Dinu Jacob <dinu.jacob@nokia.com> 2 12 -
trunk/LayoutTests/http/tests/inspector/compiler-script-mapping.html
r117267 r117277 131 131 mapping.addScript(script); 132 132 133 var uiSourceCodeList = mapping.uiSourceCode List();133 var uiSourceCodeList = mapping.uiSourceCodes(); 134 134 InspectorTest.assertEquals(2, uiSourceCodeList.length); 135 135 InspectorTest.assertEquals("http://localhost:8000/inspector/resources/source1.js", uiSourceCodeList[0].url); … … 173 173 mapping.addScript(script); 174 174 175 var uiSourceCodeList = mapping.uiSourceCode List();175 var uiSourceCodeList = mapping.uiSourceCodes(); 176 176 InspectorTest.assertEquals(1, uiSourceCodeList.length); 177 177 InspectorTest.assertEquals("source.js", uiSourceCodeList[0].url); … … 194 194 WebInspector.debuggerModel._reset(); 195 195 var debuggerScriptMapping = new WebInspector.DebuggerScriptMapping(); 196 debuggerScriptMapping.addEventListener(WebInspector. ScriptMapping.Events.UISourceCodeAdded, uiSourceCodeAdded);196 debuggerScriptMapping.addEventListener(WebInspector.UISourceCodeProvider.Events.UISourceCodeAdded, uiSourceCodeAdded); 197 197 198 198 var script = InspectorTest.createScriptMock("compiled.js", 0, 0, true, ""); -
trunk/LayoutTests/inspector/debugger/scripts-panel.html
r117269 r117277 30 30 { 31 31 uiSourceCodes.push(uiSourceCode); 32 this.dispatchEventToListeners(WebInspector. ScriptMapping.Events.UISourceCodeAdded, uiSourceCode);32 this.dispatchEventToListeners(WebInspector.UISourceCodeProvider.Events.UISourceCodeAdded, uiSourceCode); 33 33 } 34 34 model._reset = function(preservedItems) … … 42 42 uiSourceCodes.push(uiSourceCode); 43 43 var data = { oldUISourceCode: oldUISourceCode, uiSourceCode: uiSourceCode }; 44 this.dispatchEventToListeners(WebInspector. ScriptMapping.Events.UISourceCodeReplaced, data);44 this.dispatchEventToListeners(WebInspector.UISourceCodeProvider.Events.UISourceCodeReplaced, data); 45 45 } 46 46 return model; -
trunk/Source/WebCore/ChangeLog
r117274 r117277 1 2012-05-16 Pavel Feldman <pfeldman@chromium.org> 2 3 Web Inspector: split ScriptMapping into UISourceCodeProvider and SourceMapping. 4 https://bugs.webkit.org/show_bug.cgi?id=86616 5 6 Reviewed by Vsevolod Vlasov. 7 8 This change simply splits the interface. 9 10 * WebCore.gypi: 11 * WebCore.vcproj/WebCore.vcproj: 12 * inspector/compile-front-end.py: 13 * inspector/front-end/CompilerScriptMapping.js: 14 (WebInspector.CompilerScriptMapping.prototype.get uiSourceCodes): 15 (WebInspector.CompilerScriptMapping.prototype.reset): 16 * inspector/front-end/DebuggerModel.js: 17 * inspector/front-end/DebuggerResourceBinding.js: 18 (WebInspector.DebuggerResourceBinding): 19 (WebInspector.DebuggerResourceBinding.prototype._uiSourceCodeForResource): 20 * inspector/front-end/DebuggerScriptMapping.js: 21 (WebInspector.DebuggerScriptMapping): 22 (WebInspector.DebuggerScriptMapping.prototype.uiSourceCodes): 23 (WebInspector.DebuggerScriptMapping.prototype._handleUISourceCodeAdded): 24 (WebInspector.DebuggerScriptMapping.prototype._handleUISourceCodeReplaced): 25 (WebInspector.DebuggerScriptMapping.prototype._handleUISourceCodeRemoved): 26 * inspector/front-end/FilteredItemSelectionDialog.js: 27 (WebInspector.OpenScriptDialog): 28 (WebInspector.OpenScriptDialog.install): 29 (WebInspector.OpenScriptDialog._show): 30 * inspector/front-end/PresentationConsoleMessageHelper.js: 31 (WebInspector.PresentationConsoleMessageHelper): 32 (WebInspector.PresentationConsoleMessageHelper.prototype._consoleCleared): 33 * inspector/front-end/ResourceScriptMapping.js: 34 (WebInspector.ResourceScriptMapping.prototype.uiSourceCodes): 35 (WebInspector.ResourceScriptMapping.prototype._uiSourceCodeAdded): 36 (WebInspector.ResourceScriptMapping.prototype._uiSourceCodeReplaced): 37 (WebInspector.ResourceScriptMapping.prototype._uiSourceCodeRemoved): 38 * inspector/front-end/Script.js: 39 * inspector/front-end/ScriptSnippetModel.js: 40 (WebInspector.ScriptSnippetModel.prototype._uiSourceCodes): 41 (WebInspector.SnippetScriptMapping.prototype.uiSourceCodes): 42 (WebInspector.SnippetScriptMapping.prototype._fireUISourceCodeAdded): 43 (WebInspector.SnippetScriptMapping.prototype._fireUISourceCodeRemoved): 44 * inspector/front-end/ScriptsPanel.js: 45 * inspector/front-end/ScriptsSearchScope.js: 46 (WebInspector.ScriptsSearchScope): 47 (WebInspector.ScriptsSearchScope.prototype._sortedUISourceCodes): 48 * inspector/front-end/SourceMapping.js: Renamed from Source/WebCore/inspector/front-end/ScriptMapping.js. 49 * inspector/front-end/UISourceCode.js: 50 (WebInspector.UISourceCodeProvider): 51 (WebInspector.UISourceCodeProvider.prototype.uiSourceCodes): 52 (WebInspector.UILocation): 53 (WebInspector.UILocation.prototype.uiLocationToRawLocation): 54 * inspector/front-end/WebKit.qrc: 55 * inspector/front-end/inspector.html: 56 1 57 2012-05-16 Vsevolod Vlasov <vsevik@chromium.org> 2 58 -
trunk/Source/WebCore/WebCore.gypi
r117272 r117277 6468 6468 'inspector/front-end/ScriptFormatter.js', 6469 6469 'inspector/front-end/ScriptFormatterWorker.js', 6470 'inspector/front-end/ScriptMapping.js',6471 6470 'inspector/front-end/ScriptSnippetModel.js', 6472 6471 'inspector/front-end/ScriptsNavigator.js', … … 6488 6487 'inspector/front-end/SourceHTMLTokenizer.js', 6489 6488 'inspector/front-end/SourceJavaScriptTokenizer.js', 6489 'inspector/front-end/SourceMapping.js', 6490 6490 'inspector/front-end/SourceTokenizer.js', 6491 6491 'inspector/front-end/Spectrum.js', -
trunk/Source/WebCore/WebCore.vcproj/WebCore.vcproj
r117272 r117277 74698 74698 </File> 74699 74699 <File 74700 RelativePath="..\inspector\front-end\ScriptMapping.js"74701 >74702 </File>74703 <File74704 74700 RelativePath="..\inspector\front-end\ScriptsNavigator.js" 74705 74701 > … … 74779 74775 <File 74780 74776 RelativePath="..\inspector\front-end\SourceJavaScriptTokenizer.js" 74777 > 74778 </File> 74779 <File 74780 RelativePath="..\inspector\front-end\SourceMapping.js" 74781 74781 > 74782 74782 </File> -
trunk/Source/WebCore/inspector/compile-front-end.py
r117272 r117277 84 84 "Script.js", 85 85 "ScriptFormatter.js", 86 "ScriptMapping.js",87 86 "ScriptSnippetModel.js", 88 87 "SnippetStorage.js", 88 "SourceMapping.js", 89 89 "TimelineManager.js", 90 90 "TimelineModel.js", -
trunk/Source/WebCore/inspector/front-end/CompilerScriptMapping.js
r117269 r117277 31 31 /** 32 32 * @constructor 33 * @extends {WebInspector.ScriptMapping} 33 * @extends {WebInspector.Object} 34 * @implements {WebInspector.SourceMapping} 35 * @implements {WebInspector.UISourceCodeProvider} 34 36 */ 35 37 WebInspector.CompilerScriptMapping = function() … … 70 72 * @return {Array.<WebInspector.UISourceCode>} 71 73 */ 72 uiSourceCode List: function()74 uiSourceCodes: function() 73 75 { 74 76 var result = []; … … 129 131 130 132 for (var i = 0; i < uiSourceCodeList.length; ++i) 131 this.dispatchEventToListeners(WebInspector. ScriptMapping.Events.UISourceCodeAdded, uiSourceCodeList[i]);133 this.dispatchEventToListeners(WebInspector.UISourceCodeProvider.Events.UISourceCodeAdded, uiSourceCodeList[i]); 132 134 }, 133 135 … … 160 162 reset: function() 161 163 { 162 var uiSourceCodes = this.uiSourceCode List();164 var uiSourceCodes = this.uiSourceCodes(); 163 165 for (var i = 0; i < uiSourceCodes.length; ++i) 164 this.dispatchEventToListeners(WebInspector. ScriptMapping.Events.UISourceCodeRemoved, uiSourceCodes[i]);166 this.dispatchEventToListeners(WebInspector.UISourceCodeProvider.Events.UISourceCodeRemoved, uiSourceCodes[i]); 165 167 166 168 this._sourceMapByURL = {}; … … 172 174 } 173 175 174 WebInspector.CompilerScriptMapping.prototype.__proto__ = WebInspector. ScriptMapping.prototype;176 WebInspector.CompilerScriptMapping.prototype.__proto__ = WebInspector.Object.prototype; 175 177 176 178 /** -
trunk/Source/WebCore/inspector/front-end/DebuggerModel.js
r116077 r117277 519 519 * @param {DebuggerAgent.Location} location 520 520 * @param {function(WebInspector.UILocation):(boolean|undefined)} updateDelegate 521 * @return {WebInspector. LiveLocation}521 * @return {WebInspector.Script.Location} 522 522 */ 523 523 createLiveLocation: function(location, updateDelegate) -
trunk/Source/WebCore/inspector/front-end/DebuggerResourceBinding.js
r117269 r117277 32 32 * @constructor 33 33 * @implements {WebInspector.ResourceDomainModelBinding} 34 * @param {WebInspector.UISourceCodePro ject} uiSourceCodeProject34 * @param {WebInspector.UISourceCodeProvider} uiSourceCodeProvider 35 35 */ 36 WebInspector.DebuggerResourceBinding = function(uiSourceCodePro ject)36 WebInspector.DebuggerResourceBinding = function(uiSourceCodeProvider) 37 37 { 38 this._uiSourceCodePro ject = uiSourceCodeProject;38 this._uiSourceCodeProvider = uiSourceCodeProvider; 39 39 WebInspector.Resource.registerDomainModelBinding(WebInspector.resourceTypes.Script, this); 40 40 } … … 106 106 _uiSourceCodeForResource: function(resource) 107 107 { 108 var uiSourceCodes = this._uiSourceCodePro ject.uiSourceCodes();108 var uiSourceCodes = this._uiSourceCodeProvider.uiSourceCodes(); 109 109 for (var i = 0; i < uiSourceCodes.length; ++i) { 110 110 if (uiSourceCodes[i].url === resource.url) -
trunk/Source/WebCore/inspector/front-end/DebuggerScriptMapping.js
r117267 r117277 32 32 * @constructor 33 33 * @extends {WebInspector.Object} 34 * @implements {WebInspector.UISourceCodePro ject}34 * @implements {WebInspector.UISourceCodeProvider} 35 35 */ 36 36 WebInspector.DebuggerScriptMapping = function() … … 45 45 this._mappings.push(this._snippetMapping); 46 46 for (var i = 0; i < this._mappings.length; ++i) { 47 this._mappings[i].addEventListener(WebInspector. ScriptMapping.Events.UISourceCodeAdded, this._handleUISourceCodeAdded, this);48 this._mappings[i].addEventListener(WebInspector. ScriptMapping.Events.UISourceCodeReplaced, this._handleUISourceCodeReplaced, this);49 this._mappings[i].addEventListener(WebInspector. ScriptMapping.Events.UISourceCodeRemoved, this._handleUISourceCodeRemoved, this);47 this._mappings[i].addEventListener(WebInspector.UISourceCodeProvider.Events.UISourceCodeAdded, this._handleUISourceCodeAdded, this); 48 this._mappings[i].addEventListener(WebInspector.UISourceCodeProvider.Events.UISourceCodeReplaced, this._handleUISourceCodeReplaced, this); 49 this._mappings[i].addEventListener(WebInspector.UISourceCodeProvider.Events.UISourceCodeRemoved, this._handleUISourceCodeRemoved, this); 50 50 } 51 51 … … 73 73 var result = []; 74 74 for (var i = 0; i < this._mappings.length; ++i) { 75 var uiSourceCodeList = this._mappings[i].uiSourceCode List();75 var uiSourceCodeList = this._mappings[i].uiSourceCodes(); 76 76 for (var j = 0; j < uiSourceCodeList.length; ++j) 77 77 result.push(uiSourceCodeList[j]); … … 85 85 _handleUISourceCodeAdded: function(event) 86 86 { 87 this.dispatchEventToListeners(WebInspector. ScriptMapping.Events.UISourceCodeAdded, event.data);87 this.dispatchEventToListeners(WebInspector.UISourceCodeProvider.Events.UISourceCodeAdded, event.data); 88 88 }, 89 89 … … 93 93 _handleUISourceCodeReplaced: function(event) 94 94 { 95 this.dispatchEventToListeners(WebInspector. ScriptMapping.Events.UISourceCodeReplaced, event.data);95 this.dispatchEventToListeners(WebInspector.UISourceCodeProvider.Events.UISourceCodeReplaced, event.data); 96 96 }, 97 97 … … 101 101 _handleUISourceCodeRemoved: function(event) 102 102 { 103 this.dispatchEventToListeners(WebInspector. ScriptMapping.Events.UISourceCodeRemoved, event.data);103 this.dispatchEventToListeners(WebInspector.UISourceCodeProvider.Events.UISourceCodeRemoved, event.data); 104 104 }, 105 105 106 106 /** 107 107 * @param {WebInspector.Script} script 108 * @return {WebInspector.S criptMapping}108 * @return {WebInspector.SourceMapping} 109 109 */ 110 110 _mappingForScript: function(script) -
trunk/Source/WebCore/inspector/front-end/FilteredItemSelectionDialog.js
r117235 r117277 655 655 * @extends {WebInspector.OpenResourceDialog} 656 656 * @param {WebInspector.ScriptsPanel} panel 657 * @param {WebInspector.UISourceCodePro ject} uiSourceCodeProject658 */ 659 WebInspector.OpenScriptDialog = function(panel, uiSourceCodePro ject)660 { 661 WebInspector.OpenResourceDialog.call(this, uiSourceCodePro ject.uiSourceCodes());657 * @param {WebInspector.UISourceCodeProvider} uiSourceCodeProvider 658 */ 659 WebInspector.OpenScriptDialog = function(panel, uiSourceCodeProvider) 660 { 661 WebInspector.OpenResourceDialog.call(this, uiSourceCodeProvider.uiSourceCodes()); 662 662 this._panel = panel; 663 663 } … … 665 665 /** 666 666 * @param {WebInspector.ScriptsPanel} panel 667 * @param {WebInspector.UISourceCodePro ject} uiSourceCodeProject668 */ 669 WebInspector.OpenScriptDialog.install = function(panel, uiSourceCodePro ject, relativeToElement)667 * @param {WebInspector.UISourceCodeProvider} uiSourceCodeProvider 668 */ 669 WebInspector.OpenScriptDialog.install = function(panel, uiSourceCodeProvider, relativeToElement) 670 670 { 671 671 function showOpenResourceDialog() 672 672 { 673 WebInspector.OpenScriptDialog._show(panel, uiSourceCodePro ject, relativeToElement);673 WebInspector.OpenScriptDialog._show(panel, uiSourceCodeProvider, relativeToElement); 674 674 } 675 675 … … 680 680 /** 681 681 * @param {WebInspector.ScriptsPanel} panel 682 * @param {WebInspector.UISourceCodePro ject} uiSourceCodeProject682 * @param {WebInspector.UISourceCodeProvider} uiSourceCodeProvider 683 683 * @param {Element} relativeToElement 684 684 */ 685 WebInspector.OpenScriptDialog._show = function(panel, uiSourceCodePro ject, relativeToElement)685 WebInspector.OpenScriptDialog._show = function(panel, uiSourceCodeProvider, relativeToElement) 686 686 { 687 687 if (WebInspector.Dialog.currentInstance()) 688 688 return; 689 689 690 var filteredItemSelectionDialog = new WebInspector.FilteredItemSelectionDialog(new WebInspector.OpenScriptDialog(panel, uiSourceCodePro ject));690 var filteredItemSelectionDialog = new WebInspector.FilteredItemSelectionDialog(new WebInspector.OpenScriptDialog(panel, uiSourceCodeProvider)); 691 691 WebInspector.Dialog.show(relativeToElement, filteredItemSelectionDialog); 692 692 } -
trunk/Source/WebCore/inspector/front-end/PresentationConsoleMessageHelper.js
r117235 r117277 31 31 /** 32 32 * @constructor 33 * @param {WebInspector.UISourceCodePro ject} uiSourceCodeProject33 * @param {WebInspector.UISourceCodeProvider} uiSourceCodeProvider 34 34 */ 35 WebInspector.PresentationConsoleMessageHelper = function(uiSourceCodePro ject)35 WebInspector.PresentationConsoleMessageHelper = function(uiSourceCodeProvider) 36 36 { 37 37 this._pendingConsoleMessages = {}; 38 38 this._presentationConsoleMessages = []; 39 this._uiSourceCodePro ject = uiSourceCodeProject;39 this._uiSourceCodeProvider = uiSourceCodeProvider; 40 40 41 41 WebInspector.console.addEventListener(WebInspector.ConsoleModel.Events.MessageAdded, this._consoleMessageAdded, this); … … 116 116 this._presentationConsoleMessages[i].dispose(); 117 117 this._presentationConsoleMessages = []; 118 var uiSourceCodes = this._uiSourceCodePro ject.uiSourceCodes();118 var uiSourceCodes = this._uiSourceCodeProvider.uiSourceCodes(); 119 119 for (var i = 0; i < uiSourceCodes.length; ++i) 120 120 uiSourceCodes[i].consoleMessagesCleared(); -
trunk/Source/WebCore/inspector/front-end/ResourceScriptMapping.js
r117270 r117277 31 31 /** 32 32 * @constructor 33 * @extends {WebInspector.ScriptMapping} 33 * @extends {WebInspector.Object} 34 * @implements {WebInspector.SourceMapping} 35 * @implements {WebInspector.UISourceCodeProvider} 34 36 */ 35 37 WebInspector.ResourceScriptMapping = function() … … 68 70 * @return {Array.<WebInspector.UISourceCode>} 69 71 */ 70 uiSourceCode List: function()72 uiSourceCodes: function() 71 73 { 72 74 var result = []; … … 145 147 { 146 148 this._rawSourceCodeForUISourceCode.put(uiSourceCode, rawSourceCode); 147 this.dispatchEventToListeners(WebInspector. ScriptMapping.Events.UISourceCodeAdded, uiSourceCode);149 this.dispatchEventToListeners(WebInspector.UISourceCodeProvider.Events.UISourceCodeAdded, uiSourceCode); 148 150 }, 149 151 … … 162 164 163 165 var data = { oldUISourceCode: oldUISourceCode, uiSourceCode: uiSourceCode }; 164 this.dispatchEventToListeners(WebInspector. ScriptMapping.Events.UISourceCodeReplaced, data);166 this.dispatchEventToListeners(WebInspector.UISourceCodeProvider.Events.UISourceCodeReplaced, data); 165 167 }, 166 168 … … 172 174 { 173 175 this._rawSourceCodeForUISourceCode.remove(uiSourceCode); 174 this.dispatchEventToListeners(WebInspector. ScriptMapping.Events.UISourceCodeRemoved, uiSourceCode);176 this.dispatchEventToListeners(WebInspector.UISourceCodeProvider.Events.UISourceCodeRemoved, uiSourceCode); 175 177 }, 176 178 … … 201 203 } 202 204 203 WebInspector.ResourceScriptMapping.prototype.__proto__ = WebInspector. ScriptMapping.prototype;205 WebInspector.ResourceScriptMapping.prototype.__proto__ = WebInspector.Object.prototype; -
trunk/Source/WebCore/inspector/front-end/Script.js
r116775 r117277 189 189 /** 190 190 * @constructor 191 * @implements {WebInspector.LiveLocation}192 191 * @param {WebInspector.Script} script 193 192 * @param {DebuggerAgent.Location} rawLocation -
trunk/Source/WebCore/inspector/front-end/ScriptSnippetModel.js
r117274 r117277 173 173 * @return {Array.<WebInspector.UISourceCode>} 174 174 */ 175 _uiSourceCode List: function()175 _uiSourceCodes: function() 176 176 { 177 177 var result = this._uiSourceCodeForSnippet.values(); … … 296 296 /** 297 297 * @constructor 298 * @extends {WebInspector.Object} 299 * @implements {WebInspector.SourceMapping} 300 * @implements {WebInspector.UISourceCodeProvider} 298 301 * @param {WebInspector.ScriptSnippetModel} scriptSnippetModel 299 * @extends {WebInspector.ScriptMapping}300 302 */ 301 303 WebInspector.SnippetScriptMapping = function(scriptSnippetModel) … … 328 330 * @return {Array.<WebInspector.UISourceCode>} 329 331 */ 330 uiSourceCode List: function()331 { 332 return this._scriptSnippetModel._uiSourceCode List();332 uiSourceCodes: function() 333 { 334 return this._scriptSnippetModel._uiSourceCodes(); 333 335 }, 334 336 … … 355 357 _fireUISourceCodeAdded: function(uiSourceCode) 356 358 { 357 this.dispatchEventToListeners(WebInspector. ScriptMapping.Events.UISourceCodeAdded, uiSourceCode);359 this.dispatchEventToListeners(WebInspector.UISourceCodeProvider.Events.UISourceCodeAdded, uiSourceCode); 358 360 }, 359 361 … … 363 365 _fireUISourceCodeRemoved: function(uiSourceCode) 364 366 { 365 this.dispatchEventToListeners(WebInspector. ScriptMapping.Events.UISourceCodeRemoved, uiSourceCode);367 this.dispatchEventToListeners(WebInspector.UISourceCodeProvider.Events.UISourceCodeRemoved, uiSourceCode); 366 368 }, 367 369 … … 372 374 } 373 375 374 WebInspector.SnippetScriptMapping.prototype.__proto__ = WebInspector. ScriptMapping.prototype;376 WebInspector.SnippetScriptMapping.prototype.__proto__ = WebInspector.Object.prototype; 375 377 376 378 /** -
trunk/Source/WebCore/inspector/front-end/ScriptsPanel.js
r117274 r117277 173 173 WebInspector.debuggerModel.addEventListener(WebInspector.DebuggerModel.Events.BreakpointsActiveStateChanged, this._breakpointsActiveStateChanged, this); 174 174 175 this._scriptMapping.addEventListener(WebInspector. ScriptMapping.Events.UISourceCodeAdded, this._handleUISourceCodeAdded, this);176 this._scriptMapping.addEventListener(WebInspector. ScriptMapping.Events.UISourceCodeReplaced, this._uiSourceCodeReplaced, this);177 this._scriptMapping.addEventListener(WebInspector. ScriptMapping.Events.UISourceCodeRemoved, this._uiSourceCodeRemoved, this);175 this._scriptMapping.addEventListener(WebInspector.UISourceCodeProvider.Events.UISourceCodeAdded, this._handleUISourceCodeAdded, this); 176 this._scriptMapping.addEventListener(WebInspector.UISourceCodeProvider.Events.UISourceCodeReplaced, this._uiSourceCodeReplaced, this); 177 this._scriptMapping.addEventListener(WebInspector.UISourceCodeProvider.Events.UISourceCodeRemoved, this._uiSourceCodeRemoved, this); 178 178 179 179 var enableDebugger = !Capabilities.debuggerCausesRecompilation || WebInspector.settings.debuggerEnabled.get(); -
trunk/Source/WebCore/inspector/front-end/ScriptsSearchScope.js
r117235 r117277 30 30 * @constructor 31 31 * @implements {WebInspector.SearchScope} 32 * @param {WebInspector.UISourceCodePro ject} uiSourceCodeProject32 * @param {WebInspector.UISourceCodeProvider} uiSourceCodeProvider 33 33 */ 34 WebInspector.ScriptsSearchScope = function(uiSourceCodePro ject)34 WebInspector.ScriptsSearchScope = function(uiSourceCodeProvider) 35 35 { 36 36 // FIXME: Add title once it is used by search controller. 37 37 WebInspector.SearchScope.call(this) 38 38 this._searchId = 0; 39 this._uiSourceCodePro ject = uiSourceCodeProject;39 this._uiSourceCodeProvider = uiSourceCodeProvider; 40 40 } 41 41 … … 116 116 } 117 117 118 var uiSourceCodes = this._uiSourceCodePro ject.uiSourceCodes();118 var uiSourceCodes = this._uiSourceCodeProvider.uiSourceCodes(); 119 119 120 120 uiSourceCodes = uiSourceCodes.filter(filterOutAnonymous); -
trunk/Source/WebCore/inspector/front-end/SourceMapping.js
r117276 r117277 30 30 31 31 /** 32 * @constructor33 * @param {WebInspector.UISourceCode} uiSourceCode34 * @param {number} lineNumber35 * @param {number} columnNumber36 */37 WebInspector.UILocation = function(uiSourceCode, lineNumber, columnNumber)38 {39 this.uiSourceCode = uiSourceCode;40 this.lineNumber = lineNumber;41 this.columnNumber = columnNumber;42 }43 44 WebInspector.UILocation.prototype = {45 /**46 * @return {DebuggerAgent.Location}47 */48 uiLocationToRawLocation: function()49 {50 return this.uiSourceCode.uiLocationToRawLocation(this.lineNumber, this.columnNumber);51 }52 }53 54 /**55 * @interface56 */57 WebInspector.LiveLocation = function()58 {59 }60 61 WebInspector.LiveLocation.prototype = {62 update: function(rawLocation) { },63 64 dispose: function() { }65 }66 67 /**68 32 * @interface 69 33 */ … … 87 51 uiLocationToRawLocation: function(uiSourceCode, lineNumber, columnNumber) { } 88 52 } 89 90 /**91 * @constructor92 * @extends {WebInspector.Object}93 * @implements {WebInspector.SourceMapping}94 */95 WebInspector.ScriptMapping = function()96 {97 }98 99 WebInspector.ScriptMapping.Events = {100 UISourceCodeAdded: "UISourceCodeAdded",101 UISourceCodeReplaced: "UISourceCodeReplaced",102 UISourceCodeRemoved: "UISourceCodeRemoved"103 }104 105 WebInspector.ScriptMapping.prototype = {106 /**107 * @param {DebuggerAgent.Location} rawLocation108 * @return {WebInspector.UILocation}109 */110 rawLocationToUILocation: function(rawLocation) {},111 112 /**113 * @param {WebInspector.UISourceCode} uiSourceCode114 * @param {number} lineNumber115 * @param {number} columnNumber116 * @return {DebuggerAgent.Location}117 */118 uiLocationToRawLocation: function(uiSourceCode, lineNumber, columnNumber) {},119 120 /**121 * @return {Array.<WebInspector.UISourceCode>}122 */123 uiSourceCodeList: function() {}124 }125 126 WebInspector.ScriptMapping.prototype.__proto__ = WebInspector.Object.prototype; -
trunk/Source/WebCore/inspector/front-end/UISourceCode.js
r117274 r117277 224 224 225 225 /** 226 * @param {WebInspector. LiveLocation} liveLocation226 * @param {WebInspector.Script.Location} liveLocation 227 227 */ 228 228 addLiveLocation: function(liveLocation) … … 232 232 233 233 /** 234 * @param {WebInspector. LiveLocation} liveLocation234 * @param {WebInspector.Script.Location} liveLocation 235 235 */ 236 236 removeLiveLocation: function(liveLocation) … … 293 293 * @interface 294 294 */ 295 WebInspector.UISourceCodePro ject= function()295 WebInspector.UISourceCodeProvider = function() 296 296 { 297 297 } 298 298 299 WebInspector.UISourceCodeProject.prototype = { 300 /** @return {Array.<WebInspector.UISourceCode>} */ 301 uiSourceCodes: function() { } 302 } 299 WebInspector.UISourceCodeProvider.Events = { 300 UISourceCodeAdded: "UISourceCodeAdded", 301 UISourceCodeReplaced: "UISourceCodeReplaced", 302 UISourceCodeRemoved: "UISourceCodeRemoved" 303 } 304 305 WebInspector.UISourceCodeProvider.prototype = { 306 /** 307 * @return {Array.<WebInspector.UISourceCode>} 308 */ 309 uiSourceCodes: function() {} 310 } 311 312 /** 313 * @constructor 314 * @param {WebInspector.UISourceCode} uiSourceCode 315 * @param {number} lineNumber 316 * @param {number} columnNumber 317 */ 318 WebInspector.UILocation = function(uiSourceCode, lineNumber, columnNumber) 319 { 320 this.uiSourceCode = uiSourceCode; 321 this.lineNumber = lineNumber; 322 this.columnNumber = columnNumber; 323 } 324 325 WebInspector.UILocation.prototype = { 326 /** 327 * @return {DebuggerAgent.Location} 328 */ 329 uiLocationToRawLocation: function() 330 { 331 return this.uiSourceCode.uiLocationToRawLocation(this.lineNumber, this.columnNumber); 332 } 333 } -
trunk/Source/WebCore/inspector/front-end/WebKit.qrc
r117272 r117277 132 132 <file>ScriptFormatter.js</file> 133 133 <file>ScriptFormatterWorker.js</file> 134 <file>ScriptMapping.js</file>135 134 <file>ScriptSnippetModel.js</file> 136 135 <file>ScriptsPanel.js</file> … … 152 151 <file>SourceHTMLTokenizer.js</file> 153 152 <file>SourceJavaScriptTokenizer.js</file> 153 <file>SourceMapping.js</file> 154 154 <file>SourceTokenizer.js</file> 155 155 <file>Spectrum.js</file> -
trunk/Source/WebCore/inspector/front-end/inspector.html
r117272 r117277 177 177 <script type="text/javascript" src="HeapSnapshotView.js"></script> 178 178 <script type="text/javascript" src="DebuggerModel.js"></script> 179 <script type="text/javascript" src="S criptMapping.js"></script>179 <script type="text/javascript" src="SourceMapping.js"></script> 180 180 <script type="text/javascript" src="UISourceCode.js"></script> 181 181 <script type="text/javascript" src="JavaScriptSource.js"></script>
Note: See TracChangeset
for help on using the changeset viewer.