| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 /** | 64 /** |
| 65 * @param {!Resources.IndexedDBModel.Database} database | 65 * @param {!Resources.IndexedDBModel.Database} database |
| 66 */ | 66 */ |
| 67 update(database) { | 67 update(database) { |
| 68 this._database = database; | 68 this._database = database; |
| 69 this._refreshDatabase(); | 69 this._refreshDatabase(); |
| 70 } | 70 } |
| 71 | 71 |
| 72 _deleteDatabase() { | 72 _deleteDatabase() { |
| 73 UI.ConfirmDialog.show( | 73 UI.ConfirmDialog.show( |
| 74 Common.UIString('Are you sure you want to delete "%s"?', this._database.
databaseId.name), | 74 this.element, Common.UIString('Are you sure you want to delete "%s"?', t
his._database.databaseId.name), |
| 75 () => this._model.deleteDatabase(this._database.databaseId)); | 75 () => this._model.deleteDatabase(this._database.databaseId)); |
| 76 } | 76 } |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 /** | 79 /** |
| 80 * @unrestricted | 80 * @unrestricted |
| 81 */ | 81 */ |
| 82 Resources.IDBDataView = class extends UI.SimpleView { | 82 Resources.IDBDataView = class extends UI.SimpleView { |
| 83 /** | 83 /** |
| 84 * @param {!Resources.IndexedDBModel} model | 84 * @param {!Resources.IndexedDBModel} model |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 cell.removeChildren(); | 364 cell.removeChildren(); |
| 365 var objectElement = Components.ObjectPropertiesSection.defaultObjectPres
entation(value, undefined, true); | 365 var objectElement = Components.ObjectPropertiesSection.defaultObjectPres
entation(value, undefined, true); |
| 366 cell.appendChild(objectElement); | 366 cell.appendChild(objectElement); |
| 367 break; | 367 break; |
| 368 default: | 368 default: |
| 369 } | 369 } |
| 370 | 370 |
| 371 return cell; | 371 return cell; |
| 372 } | 372 } |
| 373 }; | 373 }; |
| OLD | NEW |