2011-09-06 09:42:58 +09:00
|
|
|
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- /
|
|
|
|
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
importScripts('console.js');
|
2011-09-06 10:12:03 +09:00
|
|
|
importScripts('message_handler.js');
|
2011-09-06 09:42:58 +09:00
|
|
|
importScripts('../pdf.js');
|
|
|
|
importScripts('../fonts.js');
|
|
|
|
importScripts('../crypto.js');
|
|
|
|
importScripts('../glyphlist.js');
|
2011-09-08 02:16:02 +09:00
|
|
|
importScripts('handler.js');
|
2011-09-06 09:42:58 +09:00
|
|
|
|
|
|
|
// Listen for messages from the main thread.
|
|
|
|
var pdfDoc = null;
|
|
|
|
|
2011-09-08 02:16:02 +09:00
|
|
|
var handler = new MessageHandler("worker", this);
|
|
|
|
WorkerHandler.setup(handler);
|