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

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

Issue 2575153002: Merge to M56 "[DevTools] Make SourceFrame.setEditable work." (Closed)
Patch Set: Created 4 years 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/source_frame/SourceFrame.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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 _onBindingChanged(event) { 213 _onBindingChanged(event) {
214 var binding = /** @type {!Persistence.PersistenceBinding} */ (event.data); 214 var binding = /** @type {!Persistence.PersistenceBinding} */ (event.data);
215 if (binding.network === this._uiSourceCode || binding.fileSystem === this._u iSourceCode) 215 if (binding.network === this._uiSourceCode || binding.fileSystem === this._u iSourceCode)
216 this._updateStyle(); 216 this._updateStyle();
217 } 217 }
218 218
219 _updateStyle() { 219 _updateStyle() {
220 this.element.classList.toggle( 220 this.element.classList.toggle(
221 'source-frame-unsaved-committed-changes', 221 'source-frame-unsaved-committed-changes',
222 Persistence.persistence.hasUnsavedCommittedChanges(this._uiSourceCode)); 222 Persistence.persistence.hasUnsavedCommittedChanges(this._uiSourceCode));
223 this.setEditable(!this._canEditSource()); 223 this.setEditable(this._canEditSource());
224 } 224 }
225 225
226 onUISourceCodeContentChanged() { 226 onUISourceCodeContentChanged() {
227 } 227 }
228 228
229 _updateAutocomplete() { 229 _updateAutocomplete() {
230 this._textEditor.configureAutocomplete( 230 this._textEditor.configureAutocomplete(
231 Common.moduleSetting('textEditorAutocompletion').get() ? this._autocompl eteConfig : null); 231 Common.moduleSetting('textEditorAutocompletion').get() ? this._autocompl eteConfig : null);
232 } 232 }
233 233
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 653
654 /** 654 /**
655 * @param {!Workspace.UISourceCode.Message} a 655 * @param {!Workspace.UISourceCode.Message} a
656 * @param {!Workspace.UISourceCode.Message} b 656 * @param {!Workspace.UISourceCode.Message} b
657 * @return {number} 657 * @return {number}
658 */ 658 */
659 Workspace.UISourceCode.Message.messageLevelComparator = function(a, b) { 659 Workspace.UISourceCode.Message.messageLevelComparator = function(a, b) {
660 return Workspace.UISourceCode.Message._messageLevelPriority[a.level()] - 660 return Workspace.UISourceCode.Message._messageLevelPriority[a.level()] -
661 Workspace.UISourceCode.Message._messageLevelPriority[b.level()]; 661 Workspace.UISourceCode.Message._messageLevelPriority[b.level()];
662 }; 662 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/source_frame/SourceFrame.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698