| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 binding = require('binding').Binding.create('printerProvider'); | 5 var binding = require('binding').Binding.create('printerProvider'); |
| 6 var printerProviderInternal = require('binding').Binding.create( | 6 var printerProviderInternal = require('binding').Binding.create( |
| 7 'printerProviderInternal').generate(); | 7 'printerProviderInternal').generate(); |
| 8 var eventBindings = require('event_bindings'); | 8 var eventBindings = require('event_bindings'); |
| 9 var blobNatives = requireNative('blob_natives'); | 9 var blobNatives = requireNative('blob_natives'); |
| 10 | 10 |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 printerProviderInternal.reportPrinters); | 109 printerProviderInternal.reportPrinters); |
| 110 | 110 |
| 111 handleEvent('onGetCapabilityRequested', | 111 handleEvent('onGetCapabilityRequested', |
| 112 function(args, callback) { callback(true); }, | 112 function(args, callback) { callback(true); }, |
| 113 printerProviderInternal.reportPrinterCapability); | 113 printerProviderInternal.reportPrinterCapability); |
| 114 | 114 |
| 115 handleEvent('onPrintRequested', | 115 handleEvent('onPrintRequested', |
| 116 createPrintRequestBlobArguments, | 116 createPrintRequestBlobArguments, |
| 117 printerProviderInternal.reportPrintResult); | 117 printerProviderInternal.reportPrintResult); |
| 118 | 118 |
| 119 handleEvent('onUsbAccessGranted', |
| 120 function(args, callback) { callback(true); }, |
| 121 printerProviderInternal.reportUsbPrinterInfo); |
| 122 |
| 119 exports.binding = binding.generate(); | 123 exports.binding = binding.generate(); |
| OLD | NEW |