Chromium Code Reviews| 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 11 matching lines...) Expand all Loading... | |
| 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 /** | 31 /** |
| 32 * @unrestricted | 32 * @unrestricted |
|
dgozman
2017/06/02 18:36:52
No need for unrestricted.
| |
| 33 */ | 33 */ |
| 34 Resources.IDBCategoryView = class extends UI.VBox { | |
| 35 /** | |
| 36 * @param {function()} refreshIndexedDB | |
| 37 */ | |
| 38 constructor(refreshIndexedDB) { | |
| 39 super(); | |
| 40 | |
| 41 this._reportView = new UI.ReportView('IndexedDB'); | |
|
dgozman
2017/06/02 18:36:52
You can just use |var reportView| and not save to
| |
| 42 this._reportView.show(this.contentElement); | |
| 43 | |
| 44 var footer = this._reportView.appendSection('').appendRow(); | |
| 45 this._refreshButton = UI.createTextButton( | |
| 46 Common.UIString('Refresh IndexedDB'), () => refreshIndexedDB(), Common.U IString('Refresh IndexedDB')); | |
| 47 footer.appendChild(this._refreshButton); | |
| 48 } | |
| 49 }; | |
| 50 | |
| 51 /** | |
| 52 * @unrestricted | |
| 53 */ | |
| 34 Resources.IDBDatabaseView = class extends UI.VBox { | 54 Resources.IDBDatabaseView = class extends UI.VBox { |
| 35 /** | 55 /** |
| 36 * @param {!Resources.IndexedDBModel} model | 56 * @param {!Resources.IndexedDBModel} model |
| 37 * @param {!Resources.IndexedDBModel.Database} database | 57 * @param {!Resources.IndexedDBModel.Database} database |
| 38 */ | 58 */ |
| 39 constructor(model, database) { | 59 constructor(model, database) { |
| 40 super(); | 60 super(); |
| 41 | 61 |
| 42 this._model = model; | 62 this._model = model; |
| 43 | 63 |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 384 cell.removeChildren(); | 404 cell.removeChildren(); |
| 385 var objectElement = ObjectUI.ObjectPropertiesSection.defaultObjectPresen tation(value, undefined, true); | 405 var objectElement = ObjectUI.ObjectPropertiesSection.defaultObjectPresen tation(value, undefined, true); |
| 386 cell.appendChild(objectElement); | 406 cell.appendChild(objectElement); |
| 387 break; | 407 break; |
| 388 default: | 408 default: |
| 389 } | 409 } |
| 390 | 410 |
| 391 return cell; | 411 return cell; |
| 392 } | 412 } |
| 393 }; | 413 }; |
| OLD | NEW |