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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/cookie_table/CookiesTable.js

Issue 2894083002: [DevTools] Set row background instead of the table (Closed)
Patch Set: Fixed a comment Created 3 years, 7 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) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Joseph Pecoraro 3 * Copyright (C) 2009 Joseph Pecoraro
4 * Copyright (C) 2010 Google Inc. All rights reserved. 4 * Copyright (C) 2010 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 weight: 7 84 weight: 7
85 } 85 }
86 ]); 86 ]);
87 87
88 if (editable) { 88 if (editable) {
89 this._dataGrid = new DataGrid.DataGrid( 89 this._dataGrid = new DataGrid.DataGrid(
90 columns, this._onUpdateCookie.bind(this), this._onDeleteCookie.bind(th is), refreshCallback); 90 columns, this._onUpdateCookie.bind(this), this._onDeleteCookie.bind(th is), refreshCallback);
91 } else { 91 } else {
92 this._dataGrid = new DataGrid.DataGrid(columns); 92 this._dataGrid = new DataGrid.DataGrid(columns);
93 } 93 }
94 this._dataGrid.setStriped(true);
94 95
95 this._dataGrid.setName('cookiesTable'); 96 this._dataGrid.setName('cookiesTable');
96 this._dataGrid.addEventListener(DataGrid.DataGrid.Events.SortingChanged, thi s._rebuildTable, this); 97 this._dataGrid.addEventListener(DataGrid.DataGrid.Events.SortingChanged, thi s._rebuildTable, this);
97 98
98 if (selectedCallback) 99 if (selectedCallback)
99 this._dataGrid.addEventListener(DataGrid.DataGrid.Events.SelectedNode, sel ectedCallback, this); 100 this._dataGrid.addEventListener(DataGrid.DataGrid.Events.SelectedNode, sel ectedCallback, this);
100 101
101 /** @type {?string} */ 102 /** @type {?string} */
102 this._lastEditedColumnId = null; 103 this._lastEditedColumnId = null;
103 104
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 } 480 }
480 481
481 _refresh() { 482 _refresh() {
482 if (this._refreshCallback) 483 if (this._refreshCallback)
483 this._refreshCallback(); 484 this._refreshCallback();
484 } 485 }
485 }; 486 };
486 487
487 /** @const */ 488 /** @const */
488 CookieTable.CookiesTable._expiresSessionValue = Common.UIString('Session'); 489 CookieTable.CookiesTable._expiresSessionValue = Common.UIString('Session');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698