Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: chrome/content/watcher.js

Issue 29331959: Issue 3377 - Add Private column to Diagnostics (Closed)
Patch Set: Created Dec. 4, 2015, 4:06 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/content/watcher.xul » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This Source Code is subject to the terms of the Mozilla Public License 2 * This Source Code is subject to the terms of the Mozilla Public License
3 * version 2.0 (the "License"). You can obtain a copy of the License at 3 * version 2.0 (the "License"). You can obtain a copy of the License at
4 * http://mozilla.org/MPL/2.0/. 4 * http://mozilla.org/MPL/2.0/.
5 */ 5 */
6 6
7 const Cc = Components.classes; 7 const Cc = Components.classes;
8 const Ci = Components.interfaces; 8 const Ci = Components.interfaces;
9 const Cr = Components.results; 9 const Cr = Components.results;
10 const Cu = Components.utils; 10 const Cu = Components.utils;
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 return String(value); 124 return String(value);
125 } 125 }
126 126
127 for each (let entry in processingQueue) 127 for each (let entry in processingQueue)
128 { 128 {
129 entry.cols = { 129 entry.cols = {
130 address: stringify(entry.location), 130 address: stringify(entry.location),
131 type: stringify(entry.type), 131 type: stringify(entry.type),
132 result: stringBundle.GetStringFromName(entry.result && entry.result.allow ? "decision.allow" : "decision.block"), 132 result: stringBundle.GetStringFromName(entry.result && entry.result.allow ? "decision.allow" : "decision.block"),
133 origin: stringify(entry.frames && entry.frames[0] && entry.frames[0].locat ion), 133 origin: stringify(entry.frames && entry.frames[0] && entry.frames[0].locat ion),
134 private: stringBundle.GetStringFromName(entry.isPrivate ? "private.yes" : "private.no"),
134 filters: stringify(entry.filters && entry.filters.join(", ")), 135 filters: stringify(entry.filters && entry.filters.join(", ")),
135 time: stringify(entry.processingTime) 136 time: stringify(entry.processingTime)
136 }; 137 };
137 treeView.add(entry); 138 treeView.add(entry);
138 } 139 }
139 140
140 processingQueue = []; 141 processingQueue = [];
141 } 142 }
142 143
143 function fillInTooltip(event) 144 function fillInTooltip(event)
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 selection: null, 263 selection: null,
263 264
264 setTree: function(boxObject) 265 setTree: function(boxObject)
265 { 266 {
266 if (!boxObject) 267 if (!boxObject)
267 return; 268 return;
268 269
269 this.boxObject = boxObject; 270 this.boxObject = boxObject;
270 271
271 let atomService = Cc["@mozilla.org/atom-service;1"].getService(Ci.nsIAtomSer vice); 272 let atomService = Cc["@mozilla.org/atom-service;1"].getService(Ci.nsIAtomSer vice);
272 for each (let col in ["address", "type", "result", "origin", "filter", "time "]) 273 for each (let col in ["address", "type", "result", "origin", "private", "fil ter", "time"])
273 { 274 {
274 let atomStr = "col-" + col; 275 let atomStr = "col-" + col;
275 this.atoms[atomStr] = atomService.getAtom(atomStr); 276 this.atoms[atomStr] = atomService.getAtom(atomStr);
276 } 277 }
277 for each (let flag in ["selected", "blocked"]) 278 for each (let flag in ["selected", "blocked"])
278 { 279 {
279 let atomStr = flag + "-true"; 280 let atomStr = flag + "-true";
280 this.atoms[atomStr] = atomService.getAtom(atomStr); 281 this.atoms[atomStr] = atomService.getAtom(atomStr);
281 282
282 atomStr = flag + "-false"; 283 atomStr = flag + "-false";
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 for (let i = 0; i < this.observers.length; i++) 549 for (let i = 0; i < this.observers.length; i++)
549 if (this.observers[i] == observer) 550 if (this.observers[i] == observer)
550 this.observers.splice(i--, 1); 551 this.observers.splice(i--, 1);
551 }, 552 },
552 notifyObservers: function(operation, entry) 553 notifyObservers: function(operation, entry)
553 { 554 {
554 for each (let observer in this.observers) 555 for each (let observer in this.observers)
555 observer(this, operation, entry); 556 observer(this, operation, entry);
556 } 557 }
557 }; 558 };
OLDNEW
« no previous file with comments | « no previous file | chrome/content/watcher.xul » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld