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

Delta Between Two Patch Sets: chrome/content/ui/filters-search.js

Issue 5938722247802880: Support the new findbar API (Closed)
Left Patch Set: Fixed issues Created March 10, 2014, 10:19 p.m.
Right Patch Set: Added remaining stubs Created March 18, 2014, 3:51 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 /* 1 /*
2 * This file is part of Adblock Plus <http://adblockplus.org/>, 2 * This file is part of Adblock Plus <http://adblockplus.org/>,
3 * Copyright (C) 2006-2013 Eyeo GmbH 3 * Copyright (C) 2006-2013 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 removeResultListener: function(listener) 173 removeResultListener: function(listener)
174 { 174 {
175 let index = this._resultListeners.indexOf(listener); 175 let index = this._resultListeners.indexOf(listener);
176 if (index !== -1) 176 if (index !== -1)
177 this._resultListeners.splice(index, 1); 177 this._resultListeners.splice(index, 1);
178 }, 178 },
179 179
180 // Irrelevant for us 180 // Irrelevant for us
181 highlight: function(highlight, word) {}, 181 highlight: function(highlight, word) {},
182 enableSelection: function() {}, 182 enableSelection: function() {},
183 focusContent: function() {} 183 removeSelection: function() {},
184 focusContent: function() {},
185 keyPress: function() {}
184 }, 186 },
185 187
186 get _lastSearchString() 188 get _lastSearchString()
187 { 189 {
188 return this.finder.searchString; 190 return this.finder.searchString;
189 }, 191 },
190 192
191 // This was used before Firefox 27 instead of the "finder" property. 193 // This was used before Firefox 27 instead of the "finder" property.
192 fastFind: 194 fastFind:
193 { 195 {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 removeEventListener: function(event, handler, capture) 260 removeEventListener: function(event, handler, capture)
259 { 261 {
260 E("filtersTree").addEventListener(event, handler, capture); 262 E("filtersTree").addEventListener(event, handler, capture);
261 }, 263 },
262 }; 264 };
263 265
264 window.addEventListener("load", function() 266 window.addEventListener("load", function()
265 { 267 {
266 FilterSearch.init(); 268 FilterSearch.init();
267 }, false); 269 }, false);
LEFTRIGHT
« no previous file | no next file » | Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Toggle Comments ('s')

Powered by Google App Engine
This is Rietveld