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

Side by Side Diff: chrome/ext/popup.js

Issue 29403564: Issue 5083 - Merges chrome subdirectory to top level directory (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome
Patch Set: Created April 10, 2017, 6:52 a.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/ext/devtools.js ('k') | chrome/icons/abp-16.png » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 "use strict";
2
3 (function()
4 {
5 const backgroundPage = chrome.extension.getBackgroundPage();
6 window.ext = Object.create(backgroundPage.ext);
7
8 window.ext.closePopup = () =>
9 {
10 window.close();
11 };
12
13 // We have to override ext.backgroundPage, because in order
14 // to send messages the local "chrome" namespace must be used.
15 window.ext.backgroundPage = {
16 sendMessage: chrome.runtime.sendMessage,
17
18 getWindow()
19 {
20 return backgroundPage;
21 }
22 };
23 }());
OLDNEW
« no previous file with comments | « chrome/ext/devtools.js ('k') | chrome/icons/abp-16.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld