Chromium Code Reviews| 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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 265 * @protected | 265 * @protected |
| 266 */ | 266 */ |
| 267 onBindingChanged() { | 267 onBindingChanged() { |
| 268 // Overriden in subclasses. | 268 // Overriden in subclasses. |
| 269 } | 269 } |
| 270 | 270 |
| 271 _updateStyle() { | 271 _updateStyle() { |
| 272 this.element.classList.toggle( | 272 this.element.classList.toggle( |
| 273 'source-frame-unsaved-committed-changes', | 273 'source-frame-unsaved-committed-changes', |
| 274 Persistence.persistence.hasUnsavedCommittedChanges(this._uiSourceCode)); | 274 Persistence.persistence.hasUnsavedCommittedChanges(this._uiSourceCode)); |
| 275 this.setEditable(!this._canEditSource()); | 275 this.setEditable(this._canEditSource()); |
|
lushnikov
2016/12/10 00:59:50
how did it work at all?
| |
| 276 } | 276 } |
| 277 | 277 |
| 278 onUISourceCodeContentChanged() { | 278 onUISourceCodeContentChanged() { |
| 279 } | 279 } |
| 280 | 280 |
| 281 _updateAutocomplete() { | 281 _updateAutocomplete() { |
| 282 this.textEditor.configureAutocomplete( | 282 this.textEditor.configureAutocomplete( |
| 283 Common.moduleSetting('textEditorAutocompletion').get() ? this._autocompl eteConfig : null); | 283 Common.moduleSetting('textEditorAutocompletion').get() ? this._autocompl eteConfig : null); |
| 284 } | 284 } |
| 285 | 285 |
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 694 | 694 |
| 695 /** | 695 /** |
| 696 * @param {!Workspace.UISourceCode.Message} a | 696 * @param {!Workspace.UISourceCode.Message} a |
| 697 * @param {!Workspace.UISourceCode.Message} b | 697 * @param {!Workspace.UISourceCode.Message} b |
| 698 * @return {number} | 698 * @return {number} |
| 699 */ | 699 */ |
| 700 Workspace.UISourceCode.Message.messageLevelComparator = function(a, b) { | 700 Workspace.UISourceCode.Message.messageLevelComparator = function(a, b) { |
| 701 return Workspace.UISourceCode.Message._messageLevelPriority[a.level()] - | 701 return Workspace.UISourceCode.Message._messageLevelPriority[a.level()] - |
| 702 Workspace.UISourceCode.Message._messageLevelPriority[b.level()]; | 702 Workspace.UISourceCode.Message._messageLevelPriority[b.level()]; |
| 703 }; | 703 }; |
| OLD | NEW |