OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple Inc. All rights reserved. |
3 * Copyright (C) 2009 Google Inc. All rights reserved. | 3 * Copyright (C) 2009 Google Inc. All rights reserved. |
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 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 { | 211 { |
212 this.expanded = !this.expanded; | 212 this.expanded = !this.expanded; |
213 }, | 213 }, |
214 | 214 |
215 handleClick: function(event) | 215 handleClick: function(event) |
216 { | 216 { |
217 this.toggleExpanded(); | 217 this.toggleExpanded(); |
218 event.consume(); | 218 event.consume(); |
219 } | 219 } |
220 } | 220 } |
| 221 |
| 222 /** |
| 223 * @constructor |
| 224 * @extends {WebInspector.Section} |
| 225 * @param {string|!Element} title |
| 226 * @param {string=} subtitle |
| 227 */ |
| 228 WebInspector.PropertiesSection = function(title, subtitle) |
| 229 { |
| 230 WebInspector.Section.call(this, title, subtitle); |
| 231 |
| 232 this.headerElement.classList.add("monospace"); |
| 233 this.propertiesElement = createElement("ol"); |
| 234 this.propertiesElement.className = "properties properties-tree monospace"; |
| 235 this.propertiesTreeOutline = new TreeOutline(this.propertiesElement, true); |
| 236 this.propertiesTreeOutline.setFocusable(false); |
| 237 this.propertiesTreeOutline.section = this; |
| 238 |
| 239 this.element.appendChild(this.propertiesElement); |
| 240 } |
| 241 |
| 242 WebInspector.PropertiesSection.prototype = { |
| 243 __proto__: WebInspector.Section.prototype |
| 244 } |
OLD | NEW |