Changeset 74236 in webkit
- Timestamp:
- Dec 17, 2010 12:29:52 AM (13 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r74234 r74236 1 2010-12-17 Ilya Tikhonovsky <loislo@chromium.org> 2 3 Reviewed by Yury Semikhatsky. 4 5 Web Inspector: remove unnecessary dependencies from InspectorBackendStub. 6 7 InspectorBackendStub is a transport-only thing but it has dependencies with 8 Callback.js and WebInspector namespace. Callback can be integrated into 9 InspectorBackendStub because it is the only client. 10 Without these dependencies InspectorBackendStub can be used as an API 11 wrapper for Inspector Protocol. 12 13 https://bugs.webkit.org/show_bug.cgi?id=51184 14 15 * WebCore.gypi: 16 * inspector/CodeGeneratorInspector.pm: 17 * inspector/front-end/Callback.js: Removed. 18 * inspector/front-end/WebKit.qrc: 19 * inspector/front-end/inspector.html: 20 1 21 2010-12-15 Andrey Kosyakov <caseq@chromium.org> 2 22 -
trunk/WebCore/WebCore.gypi
r74147 r74236 4602 4602 'inspector/front-end/BreakpointManager.js', 4603 4603 'inspector/front-end/BreakpointsSidebarPane.js', 4604 'inspector/front-end/Callback.js',4605 4604 'inspector/front-end/CallStackSidebarPane.js', 4606 4605 'inspector/front-end/ChangesView.js', -
trunk/WebCore/inspector/CodeGeneratorInspector.pm
r73315 r74236 565 565 $licenseTemplate 566 566 567 WebInspector.InspectorBackendStub = function() 568 { 567 InspectorBackendStub = function() 568 { 569 this._lastCallbackId = 1; 570 this._callbacks = {}; 569 571 this._domainDispatchers = {}; 570 572 $JSStubs 571 573 } 572 574 573 WebInspector.InspectorBackendStub.prototype = { 575 InspectorBackendStub.prototype = { 576 _wrap: function(callback) 577 { 578 var callbackId = this._lastCallbackId++; 579 this._callbacks[callbackId] = callback || function() {}; 580 return callbackId; 581 }, 582 583 _processResponse: function(callbackId, args) 584 { 585 var callback = this._callbacks[callbackId]; 586 callback.apply(null, args); 587 delete this._callbacks[callbackId]; 588 }, 589 590 _removeResponseCallbackEntry: function(callbackId) 591 { 592 delete this._callbacks[callbackId]; 593 }, 574 594 575 595 _registerDelegate: function(commandInfo) … … 602 622 return; 603 623 } 604 request.seq = WebInspector.Callback.wrap(args[0]);624 request.seq = this._wrap(args[0]); 605 625 } 606 626 … … 631 651 if ("seq" in messageObject) { // just a response for some request 632 652 if (messageObject.success) 633 WebInspector.Callback.processResponse(messageObject.seq, arguments);653 this._processResponse(messageObject.seq, arguments); 634 654 else { 635 WebInspector.Callback.removeResponseCallbackEntry(messageObject.seq)655 this._removeResponseCallbackEntry(messageObject.seq) 636 656 this.reportProtocolError(messageObject); 637 657 } … … 658 678 for (var i = 0; i < messageObject.errors.length; ++i) 659 679 console.error(" " + messageObject.errors[i]); 660 WebInspector.Callback.removeResponseCallbackEntry(messageObject.seq);661 } 662 } 663 664 InspectorBackend = new WebInspector.InspectorBackendStub();680 this._removeResponseCallbackEntry(messageObject.seq); 681 } 682 } 683 684 InspectorBackend = new InspectorBackendStub(); 665 685 666 686 EOF -
trunk/WebCore/inspector/front-end/WebKit.qrc
r73501 r74236 13 13 <file>BreakpointManager.js</file> 14 14 <file>BreakpointsSidebarPane.js</file> 15 <file>Callback.js</file>16 15 <file>CallStackSidebarPane.js</file> 17 16 <file>ChangesView.js</file> -
trunk/WebCore/inspector/front-end/inspector.html
r73501 r74236 56 56 <script type="text/javascript" src="Placard.js"></script> 57 57 <script type="text/javascript" src="View.js"></script> 58 <script type="text/javascript" src="Callback.js"></script>59 58 <script type="text/javascript" src="Drawer.js"></script> 60 59 <script type="text/javascript" src="ChangesView.js"></script>
Note: See TracChangeset
for help on using the changeset viewer.