Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(308)

Side by Side Diff: extensions/renderer/resources/utils.js

Issue 302463005: Add support for AMD to the extensions module system. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « extensions/renderer/resources/set_icon.js ('k') | extensions/renderer/script_context.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 var createClassWrapper = requireNative('utils').createClassWrapper; 5 var createClassWrapper = requireNative('utils_natives').createClassWrapper;
6 var schemaRegistry = requireNative('schema_registry'); 6 var schemaRegistry = requireNative('schema_registry');
7 var CHECK = requireNative('logging').CHECK; 7 var CHECK = requireNative('logging').CHECK;
8 var WARNING = requireNative('logging').WARNING; 8 var WARNING = requireNative('logging').WARNING;
9 9
10 /** 10 /**
11 * An object forEach. Calls |f| with each (key, value) pair of |obj|, using 11 * An object forEach. Calls |f| with each (key, value) pair of |obj|, using
12 * |self| as the target. 12 * |self| as the target.
13 * @param {Object} obj The object to iterate over. 13 * @param {Object} obj The object to iterate over.
14 * @param {function} f The function to call in each iteration. 14 * @param {function} f The function to call in each iteration.
15 * @param {Object} self The object to use as |this| in each function call. 15 * @param {Object} self The object to use as |this| in each function call.
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 }); 121 });
122 } 122 }
123 123
124 return publicClass; 124 return publicClass;
125 } 125 }
126 126
127 exports.forEach = forEach; 127 exports.forEach = forEach;
128 exports.loadTypeSchema = loadTypeSchema; 128 exports.loadTypeSchema = loadTypeSchema;
129 exports.lookup = lookup; 129 exports.lookup = lookup;
130 exports.expose = expose; 130 exports.expose = expose;
OLDNEW
« no previous file with comments | « extensions/renderer/resources/set_icon.js ('k') | extensions/renderer/script_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698