Changeset 90818 in webkit
- Timestamp:
- Jul 12, 2011, 7:49:33 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r90816 r90818 1 2011-07-12 Pavel Podivilov <podivilov@chromium.org> 2 3 Web Inspector: make TextViewerDelegate methods implementations public in SourceFrame. 4 https://bugs.webkit.org/show_bug.cgi?id=64353 5 6 Reviewed by Pavel Feldman. 7 8 * inspector/debugger/live-edit.html: 9 1 10 2011-07-12 Adam Roben <aroben@apple.com> 2 11 -
trunk/LayoutTests/inspector/debugger/live-edit.html
r90743 r90818 113 113 InspectorTest.addSniffer(WebInspector.debuggerModel, "_didEditScriptSource", callback); 114 114 sourceFrame._textViewer._mainPanel.readOnly = false; 115 sourceFrame. _beforeTextChanged();115 sourceFrame.beforeTextChanged(); 116 116 var oldRange, newRange; 117 117 var lines = sourceFrame._textModel._lines; … … 127 127 break; 128 128 } 129 sourceFrame. _afterTextChanged(oldRange, newRange);129 sourceFrame.afterTextChanged(oldRange, newRange); 130 130 sourceFrame._textViewer._commitEditing(); 131 131 } -
trunk/Source/WebCore/ChangeLog
r90815 r90818 1 2011-07-12 Pavel Podivilov <podivilov@chromium.org> 2 3 Web Inspector: make TextViewerDelegate methods implementations public in SourceFrame. 4 https://bugs.webkit.org/show_bug.cgi?id=64353 5 6 Reviewed by Pavel Feldman. 7 8 * inspector/front-end/SourceFrame.js: 9 (WebInspector.SourceFrame.prototype.beforeTextChanged): 10 (WebInspector.SourceFrame.prototype.afterTextChanged): 11 (WebInspector.SourceFrame.prototype.populateTextAreaContextMenu): 12 (WebInspector.SourceFrame.prototype.suggestedFileName): 13 (WebInspector.SourceFrame.prototype.doubleClick): 14 (WebInspector.SourceFrame.prototype.cancelEditing): 15 (WebInspector.TextViewerDelegateForSourceFrame.prototype.doubleClick): 16 (WebInspector.TextViewerDelegateForSourceFrame.prototype.beforeTextChanged): 17 (WebInspector.TextViewerDelegateForSourceFrame.prototype.afterTextChanged): 18 (WebInspector.TextViewerDelegateForSourceFrame.prototype.commitEditing): 19 (WebInspector.TextViewerDelegateForSourceFrame.prototype.cancelEditing): 20 (WebInspector.TextViewerDelegateForSourceFrame.prototype.populateLineGutterContextMenu): 21 (WebInspector.TextViewerDelegateForSourceFrame.prototype.populateTextAreaContextMenu): 22 (WebInspector.TextViewerDelegateForSourceFrame.prototype.suggestedFileName): 23 1 24 2011-07-12 Andrey Kosyakov <caseq@chromium.org> 2 25 -
trunk/Source/WebCore/inspector/front-end/SourceFrame.js
r90743 r90818 238 238 }, 239 239 240 _beforeTextChanged: function()240 beforeTextChanged: function() 241 241 { 242 242 if (!this._viewerState) { … … 249 249 }, 250 250 251 _afterTextChanged: function(oldRange, newRange)251 afterTextChanged: function(oldRange, newRange) 252 252 { 253 253 if (!oldRange || !newRange) … … 594 594 }, 595 595 596 _populateLineGutterContextMenu: function(lineNumber, contextMenu)596 populateLineGutterContextMenu: function(lineNumber, contextMenu) 597 597 { 598 598 contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCaseMenuTitles() ? "Continue to here" : "Continue to Here"), this._delegate.continueToLine.bind(this._delegate, lineNumber)); … … 639 639 }, 640 640 641 _populateTextAreaContextMenu: function(contextMenu)642 { 643 }, 644 645 _suggestedFileName: function()641 populateTextAreaContextMenu: function(contextMenu) 642 { 643 }, 644 645 suggestedFileName: function() 646 646 { 647 647 return this._delegate.suggestedFileName(); … … 873 873 }, 874 874 875 _doubleClick: function(lineNumber)875 doubleClick: function(lineNumber) 876 876 { 877 877 if (!this._delegate.canEditScriptSource()) … … 884 884 }, 885 885 886 _commitEditing: function()886 commitEditing: function() 887 887 { 888 888 if (!this._viewerState) { … … 932 932 }, 933 933 934 _cancelEditing: function()934 cancelEditing: function() 935 935 { 936 936 this._restoreViewerState(); … … 958 958 doubleClick: function(lineNumber) 959 959 { 960 this._sourceFrame. _doubleClick(lineNumber);960 this._sourceFrame.doubleClick(lineNumber); 961 961 }, 962 962 963 963 beforeTextChanged: function() 964 964 { 965 this._sourceFrame. _beforeTextChanged();965 this._sourceFrame.beforeTextChanged(); 966 966 }, 967 967 968 968 afterTextChanged: function(oldRange, newRange) 969 969 { 970 this._sourceFrame. _afterTextChanged(oldRange, newRange);970 this._sourceFrame.afterTextChanged(oldRange, newRange); 971 971 }, 972 972 973 973 commitEditing: function() 974 974 { 975 this._sourceFrame. _commitEditing();975 this._sourceFrame.commitEditing(); 976 976 }, 977 977 978 978 cancelEditing: function() 979 979 { 980 this._sourceFrame. _cancelEditing();980 this._sourceFrame.cancelEditing(); 981 981 }, 982 982 983 983 populateLineGutterContextMenu: function(lineNumber, contextMenu) 984 984 { 985 this._sourceFrame. _populateLineGutterContextMenu(lineNumber, contextMenu);985 this._sourceFrame.populateLineGutterContextMenu(lineNumber, contextMenu); 986 986 }, 987 987 988 988 populateTextAreaContextMenu: function(contextMenu) 989 989 { 990 this._sourceFrame. _populateTextAreaContextMenu(contextMenu);990 this._sourceFrame.populateTextAreaContextMenu(contextMenu); 991 991 }, 992 992 993 993 suggestedFileName: function() 994 994 { 995 return this._sourceFrame. _suggestedFileName();995 return this._sourceFrame.suggestedFileName(); 996 996 } 997 997 };
Note:
See TracChangeset
for help on using the changeset viewer.