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

Side by Side Diff: lib/appSupport.js

Issue 5741004535627776: Fix toolbar icon customization in Australis (Closed)
Patch Set: Created Nov. 22, 2013, 5:06 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 | « chrome/locale/en-US/overlay.dtd ('k') | lib/customizableUI.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 <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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 } 59 }
60 60
61 61
62 /** 62 /**
63 * The ID (or a list of possible IDs) of the content area context menu. 63 * The ID (or a list of possible IDs) of the content area context menu.
64 * @type String|String[] 64 * @type String|String[]
65 */ 65 */
66 exports.contentContextMenu = null; 66 exports.contentContextMenu = null;
67 67
68 /** 68 /**
69 * The properties parent, before, after determine the default placement of the 69 * Determines the default placement of the toolbar icon via object properties
70 * toolbar icon, the property isAddonBar indicates that it is an add-on bar 70 * parent, before and after.
71 * (different options text is displayed then).
72 * @type Object 71 * @type Object
73 */ 72 */
74 exports.defaultToolbarPosition = null; 73 exports.defaultToolbarPosition = null;
75 74
76 /** 75 /**
77 * The properties parent, before, after determine the placement of the status 76 * The properties parent, before, after determine the placement of the status
78 * bar icon. 77 * bar icon.
79 * @type Object 78 * @type Object
80 */ 79 */
81 exports.statusbarPosition = null; 80 exports.statusbarPosition = null;
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 { 269 {
271 if (event) 270 if (event)
272 window.openNewTabWith(url, exports.getBrowser(window).contentDocument, n ull, event, false); 271 window.openNewTabWith(url, exports.getBrowser(window).contentDocument, n ull, event, false);
273 else 272 else
274 window.gBrowser.loadOneTab(url, {inBackground: false}); 273 window.gBrowser.loadOneTab(url, {inBackground: false});
275 }; 274 };
276 275
277 exports.contentContextMenu = "contentAreaContextMenu"; 276 exports.contentContextMenu = "contentAreaContextMenu";
278 277
279 exports.defaultToolbarPosition = { 278 exports.defaultToolbarPosition = {
280 parent: "addon-bar", 279 parent: "nav-bar"
281 before: "addonbar-closebutton",
282 isAddonBar: true
283 }; 280 };
284 281
285 exports.toolsMenu = { 282 exports.toolsMenu = {
286 parent: "menu_ToolsPopup" 283 parent: "menu_ToolsPopup"
287 }; 284 };
288 285
289 exports.addBottomBar = function fx_addBottomBar(window, element) 286 exports.addBottomBar = function fx_addBottomBar(window, element)
290 { 287 {
291 let bar = _addBottomBar(window, window.document.getElementById("appcontent "), element); 288 let bar = _addBottomBar(window, window.document.getElementById("appcontent "), element);
292 if (bar) 289 if (bar)
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after
916 { 913 {
917 let dialogTitle = this.overlay.attributes.subscriptionDialogTitle; 914 let dialogTitle = this.overlay.attributes.subscriptionDialogTitle;
918 let dialogMessage = this.overlay.attributes.subscriptionDialogMessage.repl ace(/\?1\?/, title).replace(/\?2\?/, url); 915 let dialogMessage = this.overlay.attributes.subscriptionDialogMessage.repl ace(/\?1\?/, title).replace(/\?2\?/, url);
919 if (Utils.confirm(window, dialogMessage, dialogTitle)) 916 if (Utils.confirm(window, dialogMessage, dialogTitle))
920 this.setSubscription(url, title); 917 this.setSubscription(url, title);
921 }; 918 };
922 919
923 break; 920 break;
924 } 921 }
925 } 922 }
OLDNEW
« no previous file with comments | « chrome/locale/en-US/overlay.dtd ('k') | lib/customizableUI.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld