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

Side by Side Diff: lib/compat.js

Issue 10085006: Implement setTimeout (Closed)
Patch Set: Created April 8, 2013, 1:07 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 18 // TODO: These need to be defined properly
19 function XMLHttpRequest() {}; 19 function XMLHttpRequest() {};
20 var window = { 20 var window = {
21 setTimeout: function(){},
22 requestFileSystem: function(){} 21 requestFileSystem: function(){}
23 }; 22 };
24 23
25 // 24 //
26 // Module framework stuff 25 // Module framework stuff
27 // 26 //
28 27
29 function require(module) 28 function require(module)
30 { 29 {
31 return require.scopes[module]; 30 return require.scopes[module];
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 status: -1, 287 status: -1,
289 notificationCallbacks: {}, 288 notificationCallbacks: {},
290 loadFlags: 0, 289 loadFlags: 0,
291 INHIBIT_CACHING: 0, 290 INHIBIT_CACHING: 0,
292 VALIDATE_ALWAYS: 0, 291 VALIDATE_ALWAYS: 0,
293 QueryInterface: function() 292 QueryInterface: function()
294 { 293 {
295 return this; 294 return this;
296 } 295 }
297 }; 296 };
OLDNEW
« no previous file with comments | « include/AdblockPlus/JsEngine.h ('k') | libadblockplus.gyp » ('j') | src/GlobalJsObject.cpp » ('J')

Powered by Google App Engine
This is Rietveld