Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(431)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js

Issue 2466123002: DevTools: reformat front-end code to match chromium style. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 202
203 /** 203 /**
204 * @override 204 * @override
205 */ 205 */
206 willHide: function() 206 willHide: function()
207 { 207 {
208 WebInspector.UISourceCodeFrame.prototype.willHide.call(this); 208 WebInspector.UISourceCodeFrame.prototype.willHide.call(this);
209 this._popoverHelper.hidePopover(); 209 this._popoverHelper.hidePopover();
210 }, 210 },
211 211
212 /**
213 * @override
214 */
212 onUISourceCodeContentChanged: function() 215 onUISourceCodeContentChanged: function()
213 { 216 {
214 this._removeAllBreakpoints(); 217 this._removeAllBreakpoints();
215 WebInspector.UISourceCodeFrame.prototype.onUISourceCodeContentChanged.ca ll(this); 218 WebInspector.UISourceCodeFrame.prototype.onUISourceCodeContentChanged.ca ll(this);
216 }, 219 },
217 220
218 /** 221 /**
219 * @override 222 * @override
220 */ 223 */
221 onTextChanged: function(oldRange, newRange) 224 onTextChanged: function(oldRange, newRange)
(...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after
1054 * @param {boolean} enabled 1057 * @param {boolean} enabled
1055 */ 1058 */
1056 _setBreakpoint: function(lineNumber, columnNumber, condition, enabled) 1059 _setBreakpoint: function(lineNumber, columnNumber, condition, enabled)
1057 { 1060 {
1058 if (!WebInspector.debuggerWorkspaceBinding.uiLineHasMapping(this.uiSourc eCode(), lineNumber)) 1061 if (!WebInspector.debuggerWorkspaceBinding.uiLineHasMapping(this.uiSourc eCode(), lineNumber))
1059 return; 1062 return;
1060 1063
1061 this._breakpointManager.setBreakpoint(this.uiSourceCode(), lineNumber, c olumnNumber, condition, enabled); 1064 this._breakpointManager.setBreakpoint(this.uiSourceCode(), lineNumber, c olumnNumber, condition, enabled);
1062 }, 1065 },
1063 1066
1067 /**
1068 * @override
1069 */
1064 dispose: function() 1070 dispose: function()
1065 { 1071 {
1066 this._breakpointManager.removeEventListener(WebInspector.BreakpointManag er.Events.BreakpointAdded, this._breakpointAdded, this); 1072 this._breakpointManager.removeEventListener(WebInspector.BreakpointManag er.Events.BreakpointAdded, this._breakpointAdded, this);
1067 this._breakpointManager.removeEventListener(WebInspector.BreakpointManag er.Events.BreakpointRemoved, this._breakpointRemoved, this); 1073 this._breakpointManager.removeEventListener(WebInspector.BreakpointManag er.Events.BreakpointRemoved, this._breakpointRemoved, this);
1068 this.uiSourceCode().removeEventListener(WebInspector.UISourceCode.Events .SourceMappingChanged, this._onSourceMappingChanged, this); 1074 this.uiSourceCode().removeEventListener(WebInspector.UISourceCode.Events .SourceMappingChanged, this._onSourceMappingChanged, this);
1069 this.uiSourceCode().removeEventListener(WebInspector.UISourceCode.Events .WorkingCopyChanged, this._workingCopyChanged, this); 1075 this.uiSourceCode().removeEventListener(WebInspector.UISourceCode.Events .WorkingCopyChanged, this._workingCopyChanged, this);
1070 this.uiSourceCode().removeEventListener(WebInspector.UISourceCode.Events .WorkingCopyCommitted, this._workingCopyCommitted, this); 1076 this.uiSourceCode().removeEventListener(WebInspector.UISourceCode.Events .WorkingCopyCommitted, this._workingCopyCommitted, this);
1071 this.uiSourceCode().removeEventListener(WebInspector.UISourceCode.Events .TitleChanged, this._showBlackboxInfobarIfNeeded, this); 1077 this.uiSourceCode().removeEventListener(WebInspector.UISourceCode.Events .TitleChanged, this._showBlackboxInfobarIfNeeded, this);
1072 WebInspector.moduleSetting("skipStackFramesPattern").removeChangeListene r(this._showBlackboxInfobarIfNeeded, this); 1078 WebInspector.moduleSetting("skipStackFramesPattern").removeChangeListene r(this._showBlackboxInfobarIfNeeded, this);
1073 WebInspector.moduleSetting("skipContentScripts").removeChangeListener(th is._showBlackboxInfobarIfNeeded, this); 1079 WebInspector.moduleSetting("skipContentScripts").removeChangeListener(th is._showBlackboxInfobarIfNeeded, this);
1074 WebInspector.UISourceCodeFrame.prototype.dispose.call(this); 1080 WebInspector.UISourceCodeFrame.prototype.dispose.call(this);
1075 }, 1081 },
1076 1082
1077 __proto__: WebInspector.UISourceCodeFrame.prototype 1083 __proto__: WebInspector.UISourceCodeFrame.prototype
1078 }; 1084 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698