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

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 da985ef2f3a3fdb8806b06ebd107ebcf9b8c32f1..c55349972e17265203f63d7c7215638f4c814ed7 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