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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 249 /** | 249 /** |
| 250 * @protected | 250 * @protected |
| 251 */ | 251 */ |
| 252 onBindingChanged() { | 252 onBindingChanged() { |
| 253 // Overriden in subclasses. | 253 // Overriden in subclasses. |
| 254 } | 254 } |
| 255 | 255 |
| 256 _updateDiffUISourceCode() { | 256 _updateDiffUISourceCode() { |
| 257 if (!this._diff) | 257 if (!this._diff) |
| 258 return; | 258 return; |
| 259 if (this._persistenceBinding) | 259 if (this._persistenceBinding && this._persistenceBinding.exactMatch) |
|
luoe
2017/03/23 02:03:16
joel: stray code
einbinder
2017/03/23 04:32:48
Done.
| |
| 260 this._diff.setUISourceCode(this._persistenceBinding.network); | 260 this._diff.setUISourceCode(this._persistenceBinding.network); |
| 261 else if (this._uiSourceCode.project().type() === Workspace.projectTypes.Netw ork) | 261 else if (this._uiSourceCode.project().type() === Workspace.projectTypes.Netw ork) |
| 262 this._diff.setUISourceCode(this._uiSourceCode); | 262 this._diff.setUISourceCode(this._uiSourceCode); |
| 263 else | 263 else |
| 264 this._diff.setUISourceCode(null); | 264 this._diff.setUISourceCode(null); |
| 265 } | 265 } |
| 266 | 266 |
| 267 _updateStyle() { | 267 _updateStyle() { |
| 268 this.element.classList.toggle( | 268 this.element.classList.toggle( |
| 269 'source-frame-unsaved-committed-changes', | 269 'source-frame-unsaved-committed-changes', |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 698 | 698 |
| 699 /** | 699 /** |
| 700 * @param {!Workspace.UISourceCode.Message} a | 700 * @param {!Workspace.UISourceCode.Message} a |
| 701 * @param {!Workspace.UISourceCode.Message} b | 701 * @param {!Workspace.UISourceCode.Message} b |
| 702 * @return {number} | 702 * @return {number} |
| 703 */ | 703 */ |
| 704 Workspace.UISourceCode.Message.messageLevelComparator = function(a, b) { | 704 Workspace.UISourceCode.Message.messageLevelComparator = function(a, b) { |
| 705 return Workspace.UISourceCode.Message._messageLevelPriority[a.level()] - | 705 return Workspace.UISourceCode.Message._messageLevelPriority[a.level()] - |
| 706 Workspace.UISourceCode.Message._messageLevelPriority[b.level()]; | 706 Workspace.UISourceCode.Message._messageLevelPriority[b.level()]; |
| 707 }; | 707 }; |
| OLD | NEW |