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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui_lazy/DataGrid.js

Issue 2215773002: Add ability to add/edit cookie in Chrome Dev Tool (front-end) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Manage cookie flags from the context menu Created 4 years, 4 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/ui_lazy/DataGrid.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui_lazy/DataGrid.js b/third_party/WebKit/Source/devtools/front_end/ui_lazy/DataGrid.js
index 00faa50fe523dd4191da8576dfea490f5f9d2ba0..ca468b7e7714e30b724c5ca72047f9b19a7e92ef 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui_lazy/DataGrid.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui_lazy/DataGrid.js
@@ -1212,6 +1212,8 @@ WebInspector.DataGridNode = function(data, hasChildren)
this._expanded = false;
/** @type {boolean} */
this._selected = false;
+ /** @type {boolean} */
+ this._unsaved = false;
/** @type {number|undefined} */
this._depth;
/** @type {boolean|undefined} */
@@ -1275,6 +1277,8 @@ WebInspector.DataGridNode.prototype = {
this._element.classList.add("selected");
if (this.revealed)
this._element.classList.add("revealed");
+ if (this.unsaved)
+ this._element.classList.add("unsaved");
},
/**
@@ -1396,6 +1400,22 @@ WebInspector.DataGridNode.prototype = {
this.deselect();
},
+ get unsaved()
+ {
+ return this._unsaved;
+ },
+
+ set unsaved(x)
+ {
+ this._unsaved = x;
+ if (!this._element)
+ return;
+ if (x)
+ this._element.classList.add("unsaved");
+ else
+ this._element.classList.remove("unsaved");
+ },
+
get expanded()
{
return this._expanded;
@@ -1467,7 +1487,7 @@ WebInspector.DataGridNode.prototype = {
var data = this.data[columnIdentifier];
if (data instanceof Node) {
cell.appendChild(data);
- } else {
+ } else if (data !== null) {
cell.textContent = data;
if (this.dataGrid._columns[columnIdentifier].longText)
cell.title = data;

Powered by Google App Engine
This is Rietveld 408576698