| 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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 | 323 |
| 324 var primaryKey = JSON.stringify(this._isIndex ? entries[i].prima
ryKey : entries[i].key); | 324 var primaryKey = JSON.stringify(this._isIndex ? entries[i].prima
ryKey : entries[i].key); |
| 325 var node = new WebInspector.IDBDataGridNode(data); | 325 var node = new WebInspector.IDBDataGridNode(data); |
| 326 this._dataGrid.rootNode().appendChild(node); | 326 this._dataGrid.rootNode().appendChild(node); |
| 327 } | 327 } |
| 328 | 328 |
| 329 this._pageBackButton.disabled = skipCount === 0; | 329 this._pageBackButton.disabled = skipCount === 0; |
| 330 this._pageForwardButton.disabled = !hasMore; | 330 this._pageForwardButton.disabled = !hasMore; |
| 331 } | 331 } |
| 332 | 332 |
| 333 var idbKeyRange = key ? window.webkitIDBKeyRange.lowerBound(key) : null; | 333 var idbKeyRange = key ? window.IDBKeyRange.lowerBound(key) : null; |
| 334 if (this._isIndex) | 334 if (this._isIndex) |
| 335 this._model.loadIndexData(this._databaseId, this._objectStore.name,
this._index.name, idbKeyRange, skipCount, pageSize, callback.bind(this)); | 335 this._model.loadIndexData(this._databaseId, this._objectStore.name,
this._index.name, idbKeyRange, skipCount, pageSize, callback.bind(this)); |
| 336 else | 336 else |
| 337 this._model.loadObjectStoreData(this._databaseId, this._objectStore.
name, idbKeyRange, skipCount, pageSize, callback.bind(this)); | 337 this._model.loadObjectStoreData(this._databaseId, this._objectStore.
name, idbKeyRange, skipCount, pageSize, callback.bind(this)); |
| 338 }, | 338 }, |
| 339 | 339 |
| 340 _refreshButtonClicked: function(event) | 340 _refreshButtonClicked: function(event) |
| 341 { | 341 { |
| 342 this._updateData(true); | 342 this._updateData(true); |
| 343 }, | 343 }, |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 contents.createTextChildren("\"", value.description, "\""); | 420 contents.createTextChildren("\"", value.description, "\""); |
| 421 break; | 421 break; |
| 422 default: | 422 default: |
| 423 contents.classList.add("primitive-value"); | 423 contents.classList.add("primitive-value"); |
| 424 contents.createTextChild(value.description); | 424 contents.createTextChild(value.description); |
| 425 } | 425 } |
| 426 }, | 426 }, |
| 427 | 427 |
| 428 __proto__: WebInspector.DataGridNode.prototype | 428 __proto__: WebInspector.DataGridNode.prototype |
| 429 } | 429 } |
| 430 | |
| OLD | NEW |