asarfuckery/electronasar/canary/browser/api/content-tracing.js
2019-08-13 20:47:11 +02:00

12 lines
No EOL
660 B
JavaScript

'use strict';
const { deprecate } = require('electron');
const contentTracing = process.electronBinding('content_tracing');
contentTracing.getCategories = deprecate.promisify(contentTracing.getCategories);
contentTracing.startRecording = deprecate.promisify(contentTracing.startRecording);
contentTracing.stopRecording = deprecate.promisify(contentTracing.stopRecording);
contentTracing.getTraceBufferUsage = deprecate.promisifyMultiArg(contentTracing.getTraceBufferUsage
// convertPromiseValue: Temporarily disabled until it's used
/* (value) => [value.paths, value.bookmarks] */
);
module.exports = contentTracing;
//# sourceMappingURL=content-tracing.js.map