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

Side by Side Diff: lib/appSupport.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 | « ensure_dependencies.py ('k') | lib/objectTabs.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 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 let listener = this.listeners.get(window); 683 let listener = this.listeners.get(window);
684 listener.detach(); 684 listener.detach();
685 this.listeners.delete(window); 685 this.listeners.delete(window);
686 } 686 }
687 }); 687 });
688 688
689 break; 689 break;
690 } 690 }
691 691
692 case "fennec2": 692 case "fennec2":
693 case "adblockbrowser":
693 { 694 {
694 exports.isKnownWindow = (window) => window.document.documentElement.id == "m ain-window"; 695 exports.isKnownWindow = (window) => window.document.documentElement.id == "m ain-window";
695 696
696 exports.getBrowser = (window) => window.BrowserApp.selectedBrowser; 697 exports.getBrowser = (window) => window.BrowserApp.selectedBrowser;
697 698
698 exports.addTab = (window, url, event) => window.BrowserApp.addTab(url, {sele cted: true}); 699 exports.addTab = (window, url, event) => window.BrowserApp.addTab(url, {sele cted: true});
699 700
700 let BrowserChangeListener = function(window, callback) 701 let BrowserChangeListener = function(window, callback)
701 { 702 {
702 this.window = window; 703 this.window = window;
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
951 event.state = {id: require("info").addonID}; 952 event.state = {id: require("info").addonID};
952 browser._contentWindow.dispatchEvent(event); 953 browser._contentWindow.dispatchEvent(event);
953 }); 954 });
954 }); 955 });
955 }, true); 956 }, true);
956 }; 957 };
957 958
958 break; 959 break;
959 } 960 }
960 } 961 }
OLDNEW
« no previous file with comments | « ensure_dependencies.py ('k') | lib/objectTabs.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld