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

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

Issue 2149833005: DevTools: rename SourceFrame.onTextEditorContentLoaded into onTextEditorContentSet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaseline Created 4 years, 5 months 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 10 *
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 return; 124 return;
125 125
126 this._muteSourceCodeEvents = true; 126 this._muteSourceCodeEvents = true;
127 this._uiSourceCode.commitWorkingCopy(); 127 this._uiSourceCode.commitWorkingCopy();
128 delete this._muteSourceCodeEvents; 128 delete this._muteSourceCodeEvents;
129 }, 129 },
130 130
131 /** 131 /**
132 * @override 132 * @override
133 */ 133 */
134 onTextEditorContentLoaded: function() 134 onTextEditorContentSet: function()
135 { 135 {
136 if (this._diff) 136 if (this._diff)
137 this._diff.updateDiffMarkersImmediately(); 137 this._diff.updateDiffMarkersImmediately();
138 WebInspector.SourceFrame.prototype.onTextEditorContentLoaded.call(this); 138 WebInspector.SourceFrame.prototype.onTextEditorContentSet.call(this);
139 for (var message of this._uiSourceCode.messages()) 139 for (var message of this._uiSourceCode.messages())
140 this._addMessageToSource(message); 140 this._addMessageToSource(message);
141 this._decorateAllTypes(); 141 this._decorateAllTypes();
142 }, 142 },
143 143
144 /** 144 /**
145 * @override 145 * @override
146 * @param {!WebInspector.TextRange} oldRange 146 * @param {!WebInspector.TextRange} oldRange
147 * @param {!WebInspector.TextRange} newRange 147 * @param {!WebInspector.TextRange} newRange
148 */ 148 */
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 627
628 /** 628 /**
629 * @param {!WebInspector.UISourceCode.Message} a 629 * @param {!WebInspector.UISourceCode.Message} a
630 * @param {!WebInspector.UISourceCode.Message} b 630 * @param {!WebInspector.UISourceCode.Message} b
631 * @return {number} 631 * @return {number}
632 */ 632 */
633 WebInspector.UISourceCode.Message.messageLevelComparator = function(a, b) 633 WebInspector.UISourceCode.Message.messageLevelComparator = function(a, b)
634 { 634 {
635 return WebInspector.UISourceCode.Message._messageLevelPriority[a.level()] - WebInspector.UISourceCode.Message._messageLevelPriority[b.level()]; 635 return WebInspector.UISourceCode.Message._messageLevelPriority[a.level()] - WebInspector.UISourceCode.Message._messageLevelPriority[b.level()];
636 } 636 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698