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

Side by Side Diff: chrome/content/ui/filters-filterview.js

Issue 29364102: Issue 4658 - Incorporate element hiding emulation filters (Closed) Base URL: https://bitbucket.org/fhd/adblockplus
Patch Set: Update adblockpluscore dependency to b1e70036624f Created Dec. 13, 2016, 5:32 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 | « chrome/content/ui/filters-backup.js ('k') | chrome/content/ui/sidebar.js » ('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 file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2016 Eyeo GmbH 3 * Copyright (C) 2006-2016 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after
645 return; 645 return;
646 646
647 this.init(); 647 this.init();
648 this.boxObject = boxObject; 648 this.boxObject = boxObject;
649 649
650 this.noGroupDummy = {index: 0, filter: {text: this.boxObject.treeBody.getAtt ribute("noGroupText"), dummy: true}}; 650 this.noGroupDummy = {index: 0, filter: {text: this.boxObject.treeBody.getAtt ribute("noGroupText"), dummy: true}};
651 this.noFiltersDummy = {index: 0, filter: {text: this.boxObject.treeBody.getA ttribute("noFiltersText"), dummy: true}}; 651 this.noFiltersDummy = {index: 0, filter: {text: this.boxObject.treeBody.getA ttribute("noFiltersText"), dummy: true}};
652 this.editDummy = {filter: {text: ""}}; 652 this.editDummy = {filter: {text: ""}};
653 653
654 let atomService = Cc["@mozilla.org/atom-service;1"].getService(Ci.nsIAtomSer vice); 654 let atomService = Cc["@mozilla.org/atom-service;1"].getService(Ci.nsIAtomSer vice);
655 let stringAtoms = ["col-filter", "col-enabled", "col-hitcount", "col-lasthit ", "type-invalid", "type-comment", "type-blocking", "type-whitelist", "type-elem hide", "type-elemhideexception", "type-cssproperty"]; 655 let stringAtoms = ["col-filter", "col-enabled", "col-hitcount", "col-lasthit ", "type-invalid", "type-comment", "type-blocking", "type-whitelist", "type-elem hide", "type-elemhideexception", "type-elemhideemulation"];
656 let boolAtoms = ["selected", "dummy", "slow", "disabled"]; 656 let boolAtoms = ["selected", "dummy", "slow", "disabled"];
657 657
658 this.atoms = {}; 658 this.atoms = {};
659 for (let atom of stringAtoms) 659 for (let atom of stringAtoms)
660 this.atoms[atom] = atomService.getAtom(atom); 660 this.atoms[atom] = atomService.getAtom(atom);
661 for (let atom of boolAtoms) 661 for (let atom of boolAtoms)
662 { 662 {
663 this.atoms[atom + "-true"] = atomService.getAtom(atom + "-true"); 663 this.atoms[atom + "-true"] = atomService.getAtom(atom + "-true");
664 this.atoms[atom + "-false"] = atomService.getAtom(atom + "-false"); 664 this.atoms[atom + "-false"] = atomService.getAtom(atom + "-false");
665 } 665 }
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
842 getProgressMode: () => null, 842 getProgressMode: () => null,
843 getImageSrc: () => null, 843 getImageSrc: () => null,
844 isSeparator: () => false, 844 isSeparator: () => false,
845 performAction: () => {}, 845 performAction: () => {},
846 performActionOnRow: () => {}, 846 performActionOnRow: () => {},
847 performActionOnCell: () => {}, 847 performActionOnCell: () => {},
848 getCellValue: () => null, 848 getCellValue: () => null,
849 setCellValue: () => {}, 849 setCellValue: () => {},
850 selectionChanged: () => {} 850 selectionChanged: () => {}
851 }; 851 };
OLDNEW
« no previous file with comments | « chrome/content/ui/filters-backup.js ('k') | chrome/content/ui/sidebar.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld