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

Delta Between Two Patch Sets: safari/ext/background.js

Issue 6528746257383424: Issue 1708 - Integrate first-run page changes in Chrome/Opera/Safari (Closed)
Left Patch Set: Rebased patch Created Dec. 18, 2014, 10:12 p.m.
Right Patch Set: Rebased Created Dec. 19, 2014, 8:09 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « options.js ('k') | 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
(no file at all)
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-2014 Eyeo GmbH 3 * Copyright (C) 2006-2014 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 return this._frames[0].url; 48 return this._frames[0].url;
49 }, 49 },
50 activate: function() 50 activate: function()
51 { 51 {
52 this._tab.activate(); 52 this._tab.activate();
53 }, 53 },
54 sendMessage: function(message, responseCallback) 54 sendMessage: function(message, responseCallback)
55 { 55 {
56 this._messageProxy.sendMessage(message, responseCallback, {pageId: this._i d}); 56 this._messageProxy.sendMessage(message, responseCallback, {pageId: this._i d});
57 } 57 }
58 };
59
60 ext._getPage = function(id)
61 {
62 return pages[id];
58 }; 63 };
59 64
60 var isPageActive = function(page) 65 var isPageActive = function(page)
61 { 66 {
62 var tab = page._tab; 67 var tab = page._tab;
63 var win = tab.browserWindow; 68 var win = tab.browserWindow;
64 return win && tab == win.activeTab && page == tab._visiblePage; 69 return win && tab == win.activeTab && page == tab._visiblePage;
65 }; 70 };
66 71
67 var forgetPage = function(id) 72 var forgetPage = function(id)
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 page.activate(); 676 page.activate();
672 if (callback) 677 if (callback)
673 callback(page); 678 callback(page);
674 return; 679 return;
675 } 680 }
676 } 681 }
677 682
678 ext.pages.open(optionsUrl, callback); 683 ext.pages.open(optionsUrl, callback);
679 }; 684 };
680 })(); 685 })();
LEFTRIGHT
« options.js ('k') | 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