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

Side by Side Diff: lib/appSupport.js

Issue 8559070: Integrated URL Fixer into Adblock Plus (Closed)
Patch Set: Created Oct. 12, 2012, 2:18 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 | « defaults/typoRules.json ('k') | lib/main.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 Source Code is subject to the terms of the Mozilla Public License 2 * This Source Code is subject to the terms of the Mozilla Public License
3 * version 2.0 (the "License"). You can obtain a copy of the License at 3 * version 2.0 (the "License"). You can obtain a copy of the License at
4 * http://mozilla.org/MPL/2.0/. 4 * http://mozilla.org/MPL/2.0/.
5 */ 5 */
6 6
7 /** 7 /**
8 * @fileOverview Various application-specific functions. 8 * @fileOverview Various application-specific functions.
9 */ 9 */
10 10
11 Cu.import("resource://gre/modules/XPCOMUtils.jsm"); 11 Cu.import("resource://gre/modules/XPCOMUtils.jsm");
12 Cu.import("resource://gre/modules/Services.jsm"); 12 Cu.import("resource://gre/modules/Services.jsm");
13 13
14 /** 14 /**
15 * Import typo-correction specific exports
16 */
17 exports.__proto__ = require("typoAppIntegration");
18
19 /**
15 * Checks whether an application window is known and should get Adblock Plus 20 * Checks whether an application window is known and should get Adblock Plus
16 * user interface elements. 21 * user interface elements.
17 * @result Boolean 22 * @result Boolean
18 */ 23 */
19 exports.isKnownWindow = function isKnownWindow(/**Window*/ window) false; 24 exports.isKnownWindow = function isKnownWindow(/**Window*/ window) false;
20 25
21 /** 26 /**
22 * HACK: In some applications the window finishes initialization during load 27 * HACK: In some applications the window finishes initialization during load
23 * event processing which makes an additional delay necessary. This flag 28 * event processing which makes an additional delay necessary. This flag
24 * indicates that. 29 * indicates that.
(...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after
905 { 910 {
906 let dialogTitle = this.overlay.attributes.subscriptionDialogTitle; 911 let dialogTitle = this.overlay.attributes.subscriptionDialogTitle;
907 let dialogMessage = this.overlay.attributes.subscriptionDialogMessage.repl ace(/\?1\?/, title).replace(/\?2\?/, url); 912 let dialogMessage = this.overlay.attributes.subscriptionDialogMessage.repl ace(/\?1\?/, title).replace(/\?2\?/, url);
908 if (Utils.confirm(window, dialogMessage, dialogTitle)) 913 if (Utils.confirm(window, dialogMessage, dialogTitle))
909 this.setSubscription(url, title); 914 this.setSubscription(url, title);
910 }; 915 };
911 916
912 break; 917 break;
913 } 918 }
914 } 919 }
OLDNEW
« no previous file with comments | « defaults/typoRules.json ('k') | lib/main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld