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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/resources/DOMStorageItemsView.js

Issue 2894083002: [DevTools] Set row background instead of the table (Closed)
Patch Set: Fixed a comment Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Nokia Inc. All rights reserved. 2 * Copyright (C) 2008 Nokia Inc. All rights reserved.
3 * Copyright (C) 2013 Samsung Electronics. All rights reserved. 3 * Copyright (C) 2013 Samsung Electronics. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 22 matching lines...) Expand all
33 33
34 this._domStorage = domStorage; 34 this._domStorage = domStorage;
35 35
36 this.element.classList.add('storage-view', 'table'); 36 this.element.classList.add('storage-view', 'table');
37 37
38 var columns = /** @type {!Array<!DataGrid.DataGrid.ColumnDescriptor>} */ ([ 38 var columns = /** @type {!Array<!DataGrid.DataGrid.ColumnDescriptor>} */ ([
39 {id: 'key', title: Common.UIString('Key'), sortable: false, editable: true , weight: 50}, 39 {id: 'key', title: Common.UIString('Key'), sortable: false, editable: true , weight: 50},
40 {id: 'value', title: Common.UIString('Value'), sortable: false, editable: true, weight: 50} 40 {id: 'value', title: Common.UIString('Value'), sortable: false, editable: true, weight: 50}
41 ]); 41 ]);
42 this._dataGrid = new DataGrid.DataGrid(columns, this._editingCallback.bind(t his), this._deleteCallback.bind(this)); 42 this._dataGrid = new DataGrid.DataGrid(columns, this._editingCallback.bind(t his), this._deleteCallback.bind(this));
43 this._dataGrid.setStriped(true);
43 this._dataGrid.setName('DOMStorageItemsView'); 44 this._dataGrid.setName('DOMStorageItemsView');
44 this._dataGrid.asWidget().show(this.element); 45 this._dataGrid.asWidget().show(this.element);
45 this._eventListeners = []; 46 this._eventListeners = [];
46 this.setStorage(domStorage); 47 this.setStorage(domStorage);
47 } 48 }
48 49
49 /** 50 /**
50 * @param {!Resources.DOMStorage} domStorage 51 * @param {!Resources.DOMStorage} domStorage
51 */ 52 */
52 setStorage(domStorage) { 53 setStorage(domStorage) {
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 } 234 }
234 235
235 _deleteCallback(node) { 236 _deleteCallback(node) {
236 if (!node || node.isCreationNode) 237 if (!node || node.isCreationNode)
237 return; 238 return;
238 239
239 if (this._domStorage) 240 if (this._domStorage)
240 this._domStorage.removeItem(node.data.key); 241 this._domStorage.removeItem(node.data.key);
241 } 242 }
242 }; 243 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698