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

Side by Side Diff: lib/ui.js

Issue 10585038: First-run page (revisited) (Closed)
Patch Set: Applied proposed changes (except Chrome-specific utils.js due to uncertainty) Created May 27, 2013, 12:58 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
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 733 matching lines...) Expand 10 before | Expand all | Expand 10 after
744 } 744 }
745 745
746 if (!addSubscription && !addAcceptable) 746 if (!addSubscription && !addAcceptable)
747 return; 747 return;
748 748
749 function notifyUser() 749 function notifyUser()
750 { 750 {
751 let {addTab} = require("appSupport"); 751 let {addTab} = require("appSupport");
752 if (addTab) 752 if (addTab)
753 { 753 {
754 addTab(window, "chrome://adblockplus/content/ui/firstRun.xhtml"); 754 addTab(window, "chrome://adblockplus/content/ui/firstRun.html");
755 } 755 }
756 else 756 else
757 { 757 {
758 let dialogSource = '\ 758 let dialogSource = '\
759 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>\ 759 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>\
760 <dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.on ly.xul" onload="document.title=content.document.title" buttons="accept" width="5 00" height="600">\ 760 <dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.on ly.xul" onload="document.title=content.document.title" buttons="accept" width="5 00" height="600">\
761 <iframe type="content-primary" flex="1" src="chrome://adblockplus/co ntent/ui/firstRun.xhtml"/>\ 761 <iframe type="content-primary" flex="1" src="chrome://adblockplus/co ntent/ui/firstRun.html"/>\
762 </dialog>'; 762 </dialog>';
763 Services.ww.openWindow(window, 763 Services.ww.openWindow(window,
764 "data:application/vnd.mozilla.xul+xml," + encodeU RIComponent(dialogSource), 764 "data:application/vnd.mozilla.xul+xml," + encodeU RIComponent(dialogSource),
765 "_blank", "chrome,centerscreen,resizable,dialog=n o", null); 765 "_blank", "chrome,centerscreen,resizable,dialog=n o", null);
766 } 766 }
767 } 767 }
768 768
769 if (addSubscription) 769 if (addSubscription)
770 { 770 {
771 // Load subscriptions data 771 // Load subscriptions data
(...skipping 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after
1930 ["abp-command-contribute", "command", UI.openContributePage.bind(UI)], 1930 ["abp-command-contribute", "command", UI.openContributePage.bind(UI)],
1931 ["abp-command-contribute-hide", "command", UI.hideContributeButton.bind(UI)] 1931 ["abp-command-contribute-hide", "command", UI.hideContributeButton.bind(UI)]
1932 ]; 1932 ];
1933 1933
1934 onShutdown.add(function() 1934 onShutdown.add(function()
1935 { 1935 {
1936 for (let window in UI.applicationWindows) 1936 for (let window in UI.applicationWindows)
1937 if (UI.isBottombarOpen(window)) 1937 if (UI.isBottombarOpen(window))
1938 UI.toggleBottombar(window); 1938 UI.toggleBottombar(window);
1939 }); 1939 });
OLDNEW
« chrome/content/ui/typoSettings.js ('K') | « chrome/skin/social/twitter.png ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld