| 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 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 * @constructor | 32 * @constructor |
| 33 * @extends {WebInspector.VBox} | 33 * @extends {WebInspector.VBox} |
| 34 * @param {!WebInspector.IndexedDBModel.Database} database | 34 * @param {!WebInspector.IndexedDBModel.Database} database |
| 35 */ | 35 */ |
| 36 WebInspector.IDBDatabaseView = function(database) | 36 WebInspector.IDBDatabaseView = function(database) |
| 37 { | 37 { |
| 38 WebInspector.VBox.call(this); | 38 WebInspector.VBox.call(this); |
| 39 this.registerRequiredCSS("resources/indexedDBViews.css"); | 39 this.registerRequiredCSS("resources/indexedDBViews.css"); |
| 40 | 40 |
| 41 this.element.classList.add("indexed-db-database-view"); | 41 this.element.classList.add("indexed-db-database-view"); |
| 42 this.element.classList.add("storage-view"); |
| 42 | 43 |
| 43 this._headersListElement = this.element.createChild("ol", "outline-disclosur
e"); | 44 this._headersListElement = this.element.createChild("ol", "outline-disclosur
e"); |
| 44 this._headersTreeOutline = new TreeOutline(this._headersListElement); | 45 this._headersTreeOutline = new TreeOutline(this._headersListElement); |
| 45 this._headersTreeOutline.expandTreeElementsWhenArrowing = true; | 46 this._headersTreeOutline.expandTreeElementsWhenArrowing = true; |
| 46 | 47 |
| 47 this._securityOriginTreeElement = new TreeElement("", null, false); | 48 this._securityOriginTreeElement = new TreeElement("", null, false); |
| 48 this._securityOriginTreeElement.selectable = false; | 49 this._securityOriginTreeElement.selectable = false; |
| 49 this._headersTreeOutline.appendChild(this._securityOriginTreeElement); | 50 this._headersTreeOutline.appendChild(this._securityOriginTreeElement); |
| 50 | 51 |
| 51 this._nameTreeElement = new TreeElement("", null, false); | 52 this._nameTreeElement = new TreeElement("", null, false); |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 contents.createTextChildren("\"", value.description, "\""); | 416 contents.createTextChildren("\"", value.description, "\""); |
| 416 break; | 417 break; |
| 417 default: | 418 default: |
| 418 contents.classList.add("primitive-value"); | 419 contents.classList.add("primitive-value"); |
| 419 contents.createTextChild(value.description); | 420 contents.createTextChild(value.description); |
| 420 } | 421 } |
| 421 }, | 422 }, |
| 422 | 423 |
| 423 __proto__: WebInspector.DataGridNode.prototype | 424 __proto__: WebInspector.DataGridNode.prototype |
| 424 } | 425 } |
| OLD | NEW |