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

Side by Side Diff: lib/compat.js

Issue 10296001: Implement File API (Closed)
Patch Set: Addressed all remaining issues Created April 16, 2013, 11:55 a.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 = {
21 requestFileSystem: function(){}
22 };
23 20
24 // 21 //
25 // Module framework stuff 22 // Module framework stuff
26 // 23 //
27 24
28 function require(module) 25 function require(module)
29 { 26 {
30 return require.scopes[module]; 27 return require.scopes[module];
31 } 28 }
32 require.scopes = {__proto__: null}; 29 require.scopes = {__proto__: null};
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 status: -1, 284 status: -1,
288 notificationCallbacks: {}, 285 notificationCallbacks: {},
289 loadFlags: 0, 286 loadFlags: 0,
290 INHIBIT_CACHING: 0, 287 INHIBIT_CACHING: 0,
291 VALIDATE_ALWAYS: 0, 288 VALIDATE_ALWAYS: 0,
292 QueryInterface: function() 289 QueryInterface: function()
293 { 290 {
294 return this; 291 return this;
295 } 292 }
296 }; 293 };
OLDNEW
« no previous file with comments | « include/AdblockPlus/tr1_memory.h ('k') | lib/io.js » ('j') | src/DefaultFileSystem.cpp » ('J')

Powered by Google App Engine
This is Rietveld