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

Side by Side Diff: chrome/content/ui/sidebar.js

Issue 29333254: Issue 3459 - Don't duplicate content type definition (Closed)
Patch Set: Created Jan. 6, 2016, 1:29 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/composer.js ('k') | lib/contentPolicy.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-2015 Eyeo GmbH 3 * Copyright (C) 2006-2015 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // Activate flasher 101 // Activate flasher
102 list.addEventListener("select", onSelectionChange, false); 102 list.addEventListener("select", onSelectionChange, false);
103 103
104 // Initialize data 104 // Initialize data
105 handleLocationChange(); 105 handleLocationChange();
106 106
107 // Install a progress listener to catch location changes 107 // Install a progress listener to catch location changes
108 if (addBrowserLocationListener) 108 if (addBrowserLocationListener)
109 addBrowserLocationListener(mainWin, handleLocationChange, true); 109 addBrowserLocationListener(mainWin, handleLocationChange, true);
110 110
111 for (let type of Policy.contentTypes) 111 for (let type of Policy.contentTypes.values())
112 localizedTypes.set(type, Utils.getString("type_label_" + type.toLowerCase()) ); 112 localizedTypes.set(type, Utils.getString("type_label_" + type.toLowerCase()) );
113 } 113 }
114 114
115 // To be called for a detached window when the main window has been closed 115 // To be called for a detached window when the main window has been closed
116 function mainUnload() { 116 function mainUnload() {
117 parent.close(); 117 parent.close();
118 } 118 }
119 119
120 function updateContentLocation() 120 function updateContentLocation()
121 { 121 {
(...skipping 1208 matching lines...) Expand 10 before | Expand all | Expand 10 after
1330 return {tooltip: this.itemsDummyTooltip}; 1330 return {tooltip: this.itemsDummyTooltip};
1331 }, 1331 },
1332 1332
1333 invalidateItem: function(item) 1333 invalidateItem: function(item)
1334 { 1334 {
1335 let row = this.data.indexOf(item); 1335 let row = this.data.indexOf(item);
1336 if (row >= 0) 1336 if (row >= 0)
1337 this.boxObject.invalidateRow(row); 1337 this.boxObject.invalidateRow(row);
1338 } 1338 }
1339 } 1339 }
OLDNEW
« no previous file with comments | « chrome/content/ui/composer.js ('k') | lib/contentPolicy.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld