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

Side by Side Diff: lib/adblockplus_compat.js

Issue 9846017: Make JavaScript sources compile into the library; convert JavaScript files on the fly (Closed)
Patch Set: Created March 14, 2013, 10:02 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 the Adblock Plus extension, 2 * This file is part of the Adblock Plus extension,
3 * Copyright (C) 2006-2012 Eyeo GmbH 3 * Copyright (C) 2006-2012 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
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details. 12 * GNU General Public License for more details.
13 * 13 *
14 * You should have received a copy of the GNU General Public License 14 * You should have received a copy of the GNU General Public License
15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
16 */ 16 */
17 17
18 // TODO: These need to be defined properly
19 function XMLHttpRequest() {};
20 var window = {
21 setTimeout: function(){},
22 requestFileSystem: function(){}
23 };
24
18 // 25 //
19 // Module framework stuff 26 // Module framework stuff
20 // 27 //
21 28
22 function require(module) 29 function require(module)
23 { 30 {
24 return require.scopes[module]; 31 return require.scopes[module];
25 } 32 }
26 require.scopes = {__proto__: null}; 33 require.scopes = {__proto__: null};
27 34
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 status: -1, 599 status: -1,
593 notificationCallbacks: {}, 600 notificationCallbacks: {},
594 loadFlags: 0, 601 loadFlags: 0,
595 INHIBIT_CACHING: 0, 602 INHIBIT_CACHING: 0,
596 VALIDATE_ALWAYS: 0, 603 VALIDATE_ALWAYS: 0,
597 QueryInterface: function() 604 QueryInterface: function()
598 { 605 {
599 return this; 606 return this;
600 } 607 }
601 }; 608 };
OLDNEW
« include/AdblockPlus/JsEngine.h ('K') | « lib/adblockplus.js ('k') | libadblockplus.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld