| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
| 3 * Copyright (C) 2009 Joseph Pecoraro | 3 * Copyright (C) 2009 Joseph Pecoraro |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 this.nameElement = document.createElement("span"); | 188 this.nameElement = document.createElement("span"); |
| 189 this.nameElement.className = "name"; | 189 this.nameElement.className = "name"; |
| 190 var name = this.property.name; | 190 var name = this.property.name; |
| 191 if (/^\s|\s$|^$|\n/.test(name)) | 191 if (/^\s|\s$|^$|\n/.test(name)) |
| 192 name = "\"" + name.replace(/\n/g, "\u21B5") + "\""; | 192 name = "\"" + name.replace(/\n/g, "\u21B5") + "\""; |
| 193 this.nameElement.textContent = name; | 193 this.nameElement.textContent = name; |
| 194 if (!this.property.enumerable) | 194 if (!this.property.enumerable) |
| 195 this.nameElement.classList.add("dimmed"); | 195 this.nameElement.classList.add("dimmed"); |
| 196 if (this.property.isAccessorProperty()) | 196 if (this.property.isAccessorProperty()) |
| 197 this.nameElement.classList.add("properties-accessor-property-name"); | 197 this.nameElement.classList.add("properties-accessor-property-name"); |
| 198 if (this.property.symbol) |
| 199 this.nameElement.addEventListener("contextmenu", this._contextMenuFi
red.bind(this, this.property.symbol), false); |
| 198 | 200 |
| 199 var separatorElement = document.createElement("span"); | 201 var separatorElement = document.createElement("span"); |
| 200 separatorElement.className = "separator"; | 202 separatorElement.className = "separator"; |
| 201 separatorElement.textContent = ": "; | 203 separatorElement.textContent = ": "; |
| 202 | 204 |
| 203 if (this.property.value) { | 205 if (this.property.value) { |
| 204 this.valueElement = document.createElement("span"); | 206 this.valueElement = document.createElement("span"); |
| 205 this.valueElement.className = "value"; | 207 this.valueElement.className = "value"; |
| 206 var description = this.property.value.description; | 208 var description = this.property.value.description; |
| 207 var valueText; | 209 var valueText; |
| (...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 987 { | 989 { |
| 988 WebInspector.TextPrompt.call(this, WebInspector.ExecutionContextSelector.com
pletionsForTextPromptInCurrentContext); | 990 WebInspector.TextPrompt.call(this, WebInspector.ExecutionContextSelector.com
pletionsForTextPromptInCurrentContext); |
| 989 this.setSuggestBoxEnabled(true); | 991 this.setSuggestBoxEnabled(true); |
| 990 if (renderAsBlock) | 992 if (renderAsBlock) |
| 991 this.renderAsBlock(); | 993 this.renderAsBlock(); |
| 992 } | 994 } |
| 993 | 995 |
| 994 WebInspector.ObjectPropertyPrompt.prototype = { | 996 WebInspector.ObjectPropertyPrompt.prototype = { |
| 995 __proto__: WebInspector.TextPrompt.prototype | 997 __proto__: WebInspector.TextPrompt.prototype |
| 996 } | 998 } |
| OLD | NEW |