Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(770)

Unified Diff: third_party/WebKit/Source/devtools/front_end/resources/IndexedDBViews.js

Issue 2444223002: [Devtools] Cleanup DataGrid's typecast and identifier naming (Closed)
Patch Set: changes Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/resources/IndexedDBViews.js
diff --git a/third_party/WebKit/Source/devtools/front_end/resources/IndexedDBViews.js b/third_party/WebKit/Source/devtools/front_end/resources/IndexedDBViews.js
index 415ffc5908206c74b1bed1ff407e2bdde49c0833..a6fd70c1e0cb3f5dd8b0cc0f3f31dfc56efac185 100644
--- a/third_party/WebKit/Source/devtools/front_end/resources/IndexedDBViews.js
+++ b/third_party/WebKit/Source/devtools/front_end/resources/IndexedDBViews.js
@@ -123,12 +123,12 @@ WebInspector.IDBDataView.prototype = {
{
var keyPath = this._isIndex ? this._index.keyPath : this._objectStore.keyPath;
- var columns = [];
- columns.push({id: "number", title: WebInspector.UIString("#"), width: "50px"});
- columns.push({id: "key", titleDOMFragment: this._keyColumnHeaderFragment(WebInspector.UIString("Key"), keyPath)});
+ var columns = /** @type {!Array<!WebInspector.DataGrid.ColumnDescriptor>} */ ([]);
+ columns.push({id: "number", title: WebInspector.UIString("#"), sortable: false, width: "50px"});
+ columns.push({id: "key", titleDOMFragment: this._keyColumnHeaderFragment(WebInspector.UIString("Key"), keyPath), sortable: false});
if (this._isIndex)
- columns.push({id: "primaryKey", titleDOMFragment: this._keyColumnHeaderFragment(WebInspector.UIString("Primary key"), this._objectStore.keyPath)});
- columns.push({id: "value", title: WebInspector.UIString("Value")});
+ columns.push({id: "primaryKey", titleDOMFragment: this._keyColumnHeaderFragment(WebInspector.UIString("Primary key"), this._objectStore.keyPath), sortable: false});
+ columns.push({id: "value", title: WebInspector.UIString("Value"), sortable: false});
var dataGrid = new WebInspector.DataGrid(columns);
return dataGrid;

Powered by Google App Engine
This is Rietveld 408576698