| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 }; |
| OLD | NEW |