| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2016 The Chromium Authors. All rights reserved. | 2 * Copyright 2016 The Chromium Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * @constructor | 8 * @constructor |
| 9 * @extends {WebInspector.VBox} | 9 * @extends {WebInspector.VBox} |
| 10 * @implements {WebInspector.ListWidget.Delegate} | 10 * @implements {WebInspector.ListWidget.Delegate} |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 /** @type {!Map.<string, !{title: string, editable: boolean}>} */ | 34 /** @type {!Map.<string, !{title: string, editable: boolean}>} */ |
| 35 this._columnConfigs = new Map(); | 35 this._columnConfigs = new Map(); |
| 36 columnData.forEach(columnData => this._columnConfigs.set(columnData.title.to
LowerCase(), columnData)); | 36 columnData.forEach(columnData => this._columnConfigs.set(columnData.title.to
LowerCase(), columnData)); |
| 37 | 37 |
| 38 this._addHeaderColumnCallback = addHeaderColumnCallback; | 38 this._addHeaderColumnCallback = addHeaderColumnCallback; |
| 39 this._changeHeaderColumnCallback = changeHeaderColumnCallback; | 39 this._changeHeaderColumnCallback = changeHeaderColumnCallback; |
| 40 this._removeHeaderColumnCallback = removeHeaderColumnCallback; | 40 this._removeHeaderColumnCallback = removeHeaderColumnCallback; |
| 41 | 41 |
| 42 this.contentElement.tabIndex = 0; | 42 this.contentElement.tabIndex = 0; |
| 43 } | 43 }; |
| 44 | 44 |
| 45 WebInspector.NetworkManageCustomHeadersView.prototype = { | 45 WebInspector.NetworkManageCustomHeadersView.prototype = { |
| 46 /** | 46 /** |
| 47 * @override | 47 * @override |
| 48 */ | 48 */ |
| 49 wasShown: function() | 49 wasShown: function() |
| 50 { | 50 { |
| 51 this._headersUpdated(); | 51 this._headersUpdated(); |
| 52 }, | 52 }, |
| 53 | 53 |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 { | 155 { |
| 156 var headerId = editor.control("header").value.trim().toLowerCase(); | 156 var headerId = editor.control("header").value.trim().toLowerCase(); |
| 157 if (this._columnConfigs.has(headerId) && item.header !== headerId) | 157 if (this._columnConfigs.has(headerId) && item.header !== headerId) |
| 158 return false; | 158 return false; |
| 159 return true; | 159 return true; |
| 160 } | 160 } |
| 161 }, | 161 }, |
| 162 | 162 |
| 163 __proto__: WebInspector.VBox.prototype | 163 __proto__: WebInspector.VBox.prototype |
| 164 }; | 164 }; |
| OLD | NEW |