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

Side by Side Diff: lib/objectTabs.js

Issue 6533470486528000: Issue 2510 - Support Adblock Browser (Closed)
Patch Set: Update ensure_dependencies.py Created May 15, 2015, 7:33 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 | « lib/appSupport.js ('k') | metadata.gecko » ('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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 } 171 }
172 }, 172 },
173 173
174 /** 174 /**
175 * Called to show object tab for an element. 175 * Called to show object tab for an element.
176 */ 176 */
177 showTabFor: function(/**Element*/ element) 177 showTabFor: function(/**Element*/ element)
178 { 178 {
179 // Object tabs aren't usable in Fennec 179 // Object tabs aren't usable in Fennec
180 let {application} = require("info"); 180 let {application} = require("info");
181 if (application == "fennec" || application == "fennec2") 181 if (application == "fennec" || application == "fennec2" ||
182 application == "adblockbrowser")
182 return; 183 return;
183 184
184 let {Prefs} = require("prefs"); 185 let {Prefs} = require("prefs");
185 if (!Prefs.frameobjects) 186 if (!Prefs.frameobjects)
186 return; 187 return;
187 188
188 if (this.hideTimer) 189 if (this.hideTimer)
189 { 190 {
190 this.hideTimer.cancel(); 191 this.hideTimer.cancel();
191 this.hideTimer = null; 192 this.hideTimer = null;
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 event.stopPropagation(); 489 event.stopPropagation();
489 490
490 objTabs.doBlock(); 491 objTabs.doBlock();
491 } 492 }
492 else if (event.type == "mouseover") 493 else if (event.type == "mouseover")
493 objTabs.showTabFor(objTabs.currentElement); 494 objTabs.showTabFor(objTabs.currentElement);
494 else if (event.type == "mouseout") 495 else if (event.type == "mouseout")
495 objTabs.hideTabFor(objTabs.currentElement); 496 objTabs.hideTabFor(objTabs.currentElement);
496 } 497 }
497 exports.objectMouseEventHander = objectMouseEventHander; 498 exports.objectMouseEventHander = objectMouseEventHander;
OLDNEW
« no previous file with comments | « lib/appSupport.js ('k') | metadata.gecko » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld