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

Side by Side Diff: chrome/background.js

Issue 6000668259123200: Remove ext.browserAction.show/hide (Closed)
Patch Set: Created Dec. 17, 2013, 3:31 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 | « background.js ('k') | options.html » ('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 <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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 }; 202 };
203 BrowserAction.prototype = { 203 BrowserAction.prototype = {
204 setIcon: function(path) 204 setIcon: function(path)
205 { 205 {
206 chrome.browserAction.setIcon({tabId: this._tabId, path: path}); 206 chrome.browserAction.setIcon({tabId: this._tabId, path: path});
207 }, 207 },
208 setTitle: function(title) 208 setTitle: function(title)
209 { 209 {
210 chrome.browserAction.setTitle({tabId: this._tabId, title: title}); 210 chrome.browserAction.setTitle({tabId: this._tabId, title: title});
211 }, 211 },
212 hide: function()
213 {
214 chrome.browserAction.hide(this._tabId);
215 },
216 show: function()
217 {
218 chrome.browserAction.show(this._tabId);
219 },
220 setBadge: function(badge) 212 setBadge: function(badge)
221 { 213 {
222 if (!badge) 214 if (!badge)
223 { 215 {
224 chrome.browserAction.setBadgeText({ 216 chrome.browserAction.setBadgeText({
225 tabId: this._tabId, 217 tabId: this._tabId,
226 text: "" 218 text: ""
227 }); 219 });
228 return; 220 return;
229 } 221 }
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 onCompleted: new CompletedTabEventTarget(), 363 onCompleted: new CompletedTabEventTarget(),
372 onActivated: new ActivatedTabEventTarget(), 364 onActivated: new ActivatedTabEventTarget(),
373 onRemoved: new RemovedTabEventTarget() 365 onRemoved: new RemovedTabEventTarget()
374 }; 366 };
375 367
376 ext.webRequest = { 368 ext.webRequest = {
377 onBeforeRequest: new BeforeRequestEventTarget(), 369 onBeforeRequest: new BeforeRequestEventTarget(),
378 handlerBehaviorChanged: chrome.webRequest.handlerBehaviorChanged 370 handlerBehaviorChanged: chrome.webRequest.handlerBehaviorChanged
379 }; 371 };
380 })(); 372 })();
OLDNEW
« no previous file with comments | « background.js ('k') | options.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld