Lines Matching refs:handler

206   setup: function setup(handler, port) {
208 handler.on('test', function wphSetupTest(data) {
216 handler.send('test', false);
221 handler.postMessageTransfers = supportTransfers;
232 handler.send('test', false);
236 handler.send('test', {
241 handler.on('configure', function wphConfigure(data) {
244 handler.on('GetDocRequest', function wphSetupDoc(data) {
264 var handler = new _message_handler.MessageHandler(workerHandlerName, docId, port);
265 handler.postMessageTransfers = docParams.postMessageTransfers;
361 pdfStream = new _worker_stream.PDFWorkerStream(handler);
375 msgHandler: handler,
430 handler.send('DocProgress', {
465 handler.send('GetDoc', {
476 handler.sendWithPromise('PasswordRequest', e).then(function (data) {
482 handler.send('PasswordException', boundException);
485 handler.send('InvalidPDF', e);
487 handler.send('MissingPDF', e);
489 handler.send('UnexpectedResponse', e);
491 handler.send('UnknownError', new _util.UnknownErrorException(e.message, e.toString()));
530 handler.send('DataLoaded', {
537 handler.on('GetPage', function wphSetupGetPage(data) {
555 handler.on('GetPageIndex', function wphSetupGetPageIndex(data) {
561 handler.on('GetDestinations', function wphSetupGetDestinations(data) {
564 handler.on('GetDestination', function wphSetupGetDestination(data) {
567 handler.on('GetPageLabels', function wphSetupGetPageLabels(data) {
570 handler.on('GetPageLayout', function wphSetupGetPageLayout(data) {
573 handler.on('GetPageMode', function wphSetupGetPageMode(data) {
576 handler.on('GetViewerPreferences', function (data) {
579 handler.on('GetOpenActionDestination', function (data) {
582 handler.on('GetAttachments', function wphSetupGetAttachments(data) {
585 handler.on('GetJavaScript', function wphSetupGetJavaScript(data) {
588 handler.on('GetOutline', function wphSetupGetOutline(data) {
591 handler.on('GetPermissions', function (data) {
594 handler.on('GetMetadata', function wphSetupGetMetadata(data) {
597 handler.on('GetData', function wphSetupGetData(data) {
603 handler.on('GetStats', function wphSetupGetStats(data) {
606 handler.on('GetAnnotations', function (_ref3) {
613 handler.on('RenderPageRequest', function wphSetupRenderPage(data) {
620 handler: handler,
637 handler.send('UnsupportedFeature', {
660 handler.send('PageError', {
668 handler.on('GetTextContent', function wphExtractText(data, sink) {
680 handler: handler,
705 handler.on('FontFallback', function (data) {
706 return pdfManager.fontFallback(data.id, handler);
708 handler.on('Cleanup', function wphCleanup(data) {
711 handler.on('Terminate', function wphTerminate(data) {
730 handler.destroy();
731 handler = null;
734 handler.on('Ready', function wphReady(data) {
741 var handler = new _message_handler.MessageHandler('worker', 'main', port);
742 WorkerMessageHandler.setup(handler, port);
743 handler.send('ready', null);
4329 var handler = ok ? reaction.ok : reaction.fail;
4336 if (handler) {
4342 if (handler === true) result = value;else {
4344 result = handler(value);
4378 var result, handler, console;
4384 } else if (handler = global.onunhandledrejection) {
4385 handler({
4407 var handler;
4411 } else if (handler = global.onrejectionhandled) {
4412 handler({
11344 value: function fontFallback(id, handler) {
11345 return this.pdfDocument.fontFallback(id, handler);
12657 var handler = _ref2.handler,
12665 handler: handler,
12678 var opList = new _operator_list.OperatorList(intent, handler, _this2.pageIndex);
12679 handler.send('StartRenderPage', {
12768 var handler = _ref7.handler,
12782 handler: handler,
13121 value: function fontFallback(id, handler) {
13122 return this.catalog.fontFallback(id, handler);
13663 value: function fontFallback(id, handler) {
13678 translatedFont.fallback(handler);
30384 handler = _ref.handler,
30393 this.handler = handler;
30422 return _this.handler.sendWithPromise('FetchBuiltInCMap', {
30780 …return _context2.abrupt("return", this.handler.sendWithPromise('obj', [objId, this.pageIndex, 'Jpe…
30811 handler: this.handler,
30820 handler: this.handler,
30831 …return _this2.handler.sendWithPromise('commonobj', [objId, 'FontType3Res', imgData], [imgData.data…
30834 … _this2.handler.send('obj', [objId, _this2.pageIndex, 'Image', imgData], [imgData.data.buffer]);
30841 … return _this2.handler.sendWithPromise('commonobj', [objId, 'FontType3Res', null]);
30844 _this2.handler.send('obj', [objId, _this2.pageIndex, 'Image', null]);
30930 _this3.handler.send('UnsupportedFeature', {
30959 _this4.handler.send('UnsupportedFeature', {
30967 translated.send(_this4.handler);
30979 PartialEvaluator.buildFontPaths(font, glyphs, this.handler);
31188 _this6.handler.send('UnsupportedFeature', {
31264 …pattern.Pattern.parseShading(shading, matrix, this.xref, resources, this.handler, this.pdfFunction…
31410 self.handler.send('UnsupportedFeature', {
31593 …ill = _pattern.Pattern.parseShading(shading, null, xref, resources, self.handler, self.pdfFunction…
31659 _this7.handler.send('UnsupportedFeature', {
32973 PartialEvaluator.buildFontPaths = function (font, glyphs, handler) {
32979handler.send('commonobj', ["".concat(font.loadedName, "_path_").concat(fontChar), 'FontPath', font…
33027 send: function send(handler) {
33033 handler.send('commonobj', [this.loadedName, 'Font', this.font.exportData()]);
33035 fallback: function fallback(handler) {
33042 PartialEvaluator.buildFontPaths(this.font, glyphs, handler);
48740 Pattern.parseShading = function (shading, matrix, xref, res, handler, pdfFunctionFactory) {
48764 handler.send('UnsupportedFeature', {
54691 handler = _ref.handler,
54700 this.handler = handler;
54716 …return this.handler.sendWithPromise('JpegDecode', [image.getIR(this.forceDataSchema), colorSpace.n…
54984 var handler = _ref2.handler,
55605 on: function on(actionName, handler, scope) {
55612 ah[actionName] = [handler, scope];