| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Generates the chrome.* API bindings from a list of schemas. | 5 // Generates the chrome.* API bindings from a list of schemas. |
| 6 | 6 |
| 7 // TODO(battre): cleanup the usage of packages everywhere, as described here | 7 // TODO(battre): cleanup the usage of packages everywhere, as described here |
| 8 // http://codereview.chromium.org/10392008/diff/38/chrome/renderer/resources/e
xtensions/schema_generated_bindings.js | 8 // http://codereview.chromium.org/10392008/diff/38/chrome/renderer/resources/e
xtensions/schema_generated_bindings.js |
| 9 | 9 |
| 10 require('json_schema'); | 10 require('json_schema'); |
| (...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 hook({ | 428 hook({ |
| 429 apiFunctions: new NamespacedAPIFunctions(apiDef.namespace, | 429 apiFunctions: new NamespacedAPIFunctions(apiDef.namespace, |
| 430 apiFunctions), | 430 apiFunctions), |
| 431 apiDefinitions: apiDefinitions, | 431 apiDefinitions: apiDefinitions, |
| 432 }, extensionId, contextType); | 432 }, extensionId, contextType); |
| 433 }); | 433 }); |
| 434 | 434 |
| 435 if (chrome.test) | 435 if (chrome.test) |
| 436 chrome.test.getApiDefinitions = GetExtensionAPIDefinition; | 436 chrome.test.getApiDefinitions = GetExtensionAPIDefinition; |
| 437 }); | 437 }); |
| OLD | NEW |