Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 /** | |
| 6 * Custom bindings for the mojoPrivate API. | |
| 7 */ | |
| 8 | |
| 9 let binding = require('binding').Binding.create('mojoPrivate'); | |
| 10 | |
| 11 let pendingModuleRejections = []; | |
|
not at google - send to devlin
2015/01/13 21:46:46
I don't see this used anywhere?
Sam McNally
2015/01/13 23:48:43
Removed.
| |
| 12 | |
| 13 binding.registerCustomHook(function(bindingsAPI) { | |
| 14 let apiFunctions = bindingsAPI.apiFunctions; | |
| 15 | |
| 16 apiFunctions.setHandleRequest('define', function(name, deps, factory) { | |
| 17 define(name, deps || [], factory); | |
| 18 }); | |
| 19 }); | |
| 20 | |
| 21 exports.binding = binding.generate(); | |
| OLD | NEW |