| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 this._headersTreeOutline.expandTreeElementsWhenArrowing = true; | 47 this._headersTreeOutline.expandTreeElementsWhenArrowing = true; |
| 48 | 48 |
| 49 this._securityOriginTreeElement = new TreeElement(); | 49 this._securityOriginTreeElement = new TreeElement(); |
| 50 this._securityOriginTreeElement.selectable = false; | 50 this._securityOriginTreeElement.selectable = false; |
| 51 this._headersTreeOutline.appendChild(this._securityOriginTreeElement); | 51 this._headersTreeOutline.appendChild(this._securityOriginTreeElement); |
| 52 | 52 |
| 53 this._nameTreeElement = new TreeElement(); | 53 this._nameTreeElement = new TreeElement(); |
| 54 this._nameTreeElement.selectable = false; | 54 this._nameTreeElement.selectable = false; |
| 55 this._headersTreeOutline.appendChild(this._nameTreeElement); | 55 this._headersTreeOutline.appendChild(this._nameTreeElement); |
| 56 | 56 |
| 57 this._intVersionTreeElement = new TreeElement(); | 57 this._versionTreeElement = new TreeElement(); |
| 58 this._intVersionTreeElement.selectable = false; | 58 this._versionTreeElement.selectable = false; |
| 59 this._headersTreeOutline.appendChild(this._intVersionTreeElement); | 59 this._headersTreeOutline.appendChild(this._versionTreeElement); |
| 60 | |
| 61 this._stringVersionTreeElement = new TreeElement(); | |
| 62 this._stringVersionTreeElement.selectable = false; | |
| 63 this._headersTreeOutline.appendChild(this._stringVersionTreeElement); | |
| 64 | 60 |
| 65 this.update(database); | 61 this.update(database); |
| 66 } | 62 } |
| 67 | 63 |
| 68 WebInspector.IDBDatabaseView.prototype = { | 64 WebInspector.IDBDatabaseView.prototype = { |
| 69 /** | 65 /** |
| 70 * @return {!Array.<!WebInspector.ToolbarItem>} | 66 * @return {!Array.<!WebInspector.ToolbarItem>} |
| 71 */ | 67 */ |
| 72 toolbarItems: function() | 68 toolbarItems: function() |
| 73 { | 69 { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 84 fragment.createChild("div", "attribute-name").textContent = name + ":"; | 80 fragment.createChild("div", "attribute-name").textContent = name + ":"; |
| 85 fragment.createChild("div", "attribute-value source-code").textContent =
value; | 81 fragment.createChild("div", "attribute-value source-code").textContent =
value; |
| 86 | 82 |
| 87 return fragment; | 83 return fragment; |
| 88 }, | 84 }, |
| 89 | 85 |
| 90 _refreshDatabase: function() | 86 _refreshDatabase: function() |
| 91 { | 87 { |
| 92 this._securityOriginTreeElement.title = this._formatHeader(WebInspector.
UIString("Security origin"), this._database.databaseId.securityOrigin); | 88 this._securityOriginTreeElement.title = this._formatHeader(WebInspector.
UIString("Security origin"), this._database.databaseId.securityOrigin); |
| 93 this._nameTreeElement.title = this._formatHeader(WebInspector.UIString("
Name"), this._database.databaseId.name); | 89 this._nameTreeElement.title = this._formatHeader(WebInspector.UIString("
Name"), this._database.databaseId.name); |
| 94 this._stringVersionTreeElement.title = this._formatHeader(WebInspector.U
IString("String Version"), this._database.version); | 90 this._versionTreeElement.title = this._formatHeader(WebInspector.UIStrin
g("Version"), this._database.version); |
| 95 this._intVersionTreeElement.title = this._formatHeader(WebInspector.UISt
ring("Integer Version"), this._database.intVersion); | |
| 96 }, | 91 }, |
| 97 | 92 |
| 98 /** | 93 /** |
| 99 * @param {!WebInspector.IndexedDBModel.Database} database | 94 * @param {!WebInspector.IndexedDBModel.Database} database |
| 100 */ | 95 */ |
| 101 update: function(database) | 96 update: function(database) |
| 102 { | 97 { |
| 103 this._database = database; | 98 this._database = database; |
| 104 this._refreshDatabase(); | 99 this._refreshDatabase(); |
| 105 }, | 100 }, |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 cell.appendChild(objectElement); | 388 cell.appendChild(objectElement); |
| 394 break; | 389 break; |
| 395 default: | 390 default: |
| 396 } | 391 } |
| 397 | 392 |
| 398 return cell; | 393 return cell; |
| 399 }, | 394 }, |
| 400 | 395 |
| 401 __proto__: WebInspector.DataGridNode.prototype | 396 __proto__: WebInspector.DataGridNode.prototype |
| 402 } | 397 } |
| OLD | NEW |