refactor: rename web-workers to web_workers

Closes #3683
This commit is contained in:
Misko Hevery
2015-08-21 12:21:29 -07:00
parent 20acb86ca2
commit 5d403966d5
57 changed files with 137 additions and 147 deletions

View File

@ -63,7 +63,7 @@ import {
} from 'angular2/src/render/render'; } from 'angular2/src/render/render';
import {ElementSchemaRegistry} from 'angular2/src/render/dom/schema/element_schema_registry'; import {ElementSchemaRegistry} from 'angular2/src/render/dom/schema/element_schema_registry';
import {DomElementSchemaRegistry} from 'angular2/src/render/dom/schema/dom_element_schema_registry'; import {DomElementSchemaRegistry} from 'angular2/src/render/dom/schema/dom_element_schema_registry';
import {Serializer} from "angular2/src/web-workers/shared/serializer"; import {Serializer} from "angular2/src/web_workers/shared/serializer";
import {Log} from './utils'; import {Log} from './utils';
/** /**

View File

@ -3,7 +3,7 @@ library angular2.src.web_workers.shared.isolate_message_bus;
import 'dart:isolate'; import 'dart:isolate';
import 'dart:async'; import 'dart:async';
import 'dart:core'; import 'dart:core';
import 'package:angular2/src/web-workers/shared/message_bus.dart' import 'package:angular2/src/web_workers/shared/message_bus.dart'
show MessageBus, MessageBusSink, MessageBusSource; show MessageBus, MessageBusSink, MessageBusSource;
import 'package:angular2/src/facade/async.dart'; import 'package:angular2/src/facade/async.dart';

View File

@ -1,6 +1,5 @@
import {EventEmitter} from 'angular2/src/facade/async'; import {EventEmitter} from 'angular2/src/facade/async';
import {BaseException} from 'angular2/src/facade/lang'; import {BaseException} from 'angular2/src/facade/lang';
// TODO(jteplitz602): Replace both the interface and the exported class with an abstract class #3683
function _abstract() { function _abstract() {
throw new BaseException("This method is abstract"); throw new BaseException("This method is abstract");
@ -11,21 +10,20 @@ function _abstract() {
* Communication is based on a channel abstraction. Messages published in a * Communication is based on a channel abstraction. Messages published in a
* given channel to one MessageBusSink are received on the same channel * given channel to one MessageBusSink are received on the same channel
* by the corresponding MessageBusSource. * by the corresponding MessageBusSource.
* TODO(jteplitz602): This should just extend both the source and the sink once
* https://github.com/angular/ts2dart/issues/263 is closed.
*/ */
export interface MessageBusInterface { export /* abstract (with TS 1.6) */ class MessageBus implements MessageBusSource, MessageBusSink {
/** /**
* Returns an {@link EventEmitter} that emits every time a messsage * Returns an {@link EventEmitter} that emits every time a messsage
* is received on the given channel. * is received on the given channel.
*/ */
from(channel: string): EventEmitter; from(channel: string): EventEmitter { throw _abstract(); }
/** /**
* Returns an {@link EventEmitter} for the given channel * Returns an {@link EventEmitter} for the given channel
* To publish methods to that channel just call next (or add in dart) on the returned emitter * To publish methods to that channel just call next (or add in dart) on the returned emitter
*/ */
to(channel: string): EventEmitter; to(channel: string): EventEmitter { throw _abstract(); }
} }
export interface MessageBusSource { export interface MessageBusSource {
@ -43,10 +41,3 @@ export interface MessageBusSink {
*/ */
to(channel: string): EventEmitter; to(channel: string): EventEmitter;
} }
// TODO(jteplitz602): Remove this class once we have abstract classes #3683
export class MessageBus implements MessageBusInterface {
from(channel: string): EventEmitter { throw _abstract(); }
to(channel: string): EventEmitter { throw _abstract(); }
}

View File

@ -1,8 +1,8 @@
import { import {
MessageBusInterface, MessageBus,
MessageBusSource, MessageBusSource,
MessageBusSink MessageBusSink
} from "angular2/src/web-workers/shared/message_bus"; } from "angular2/src/web_workers/shared/message_bus";
import {EventEmitter} from 'angular2/src/facade/async'; import {EventEmitter} from 'angular2/src/facade/async';
import {StringMap, StringMapWrapper} from 'angular2/src/facade/collection'; import {StringMap, StringMapWrapper} from 'angular2/src/facade/collection';
import {Injectable} from "angular2/di"; import {Injectable} from "angular2/di";
@ -12,7 +12,7 @@ import {Injectable} from "angular2/di";
* postMessage API. * postMessage API.
*/ */
@Injectable() @Injectable()
export class PostMessageBus implements MessageBusInterface { export class PostMessageBus implements MessageBus {
constructor(private _sink: PostMessageBusSink, private _source: PostMessageBusSource) {} constructor(private _sink: PostMessageBusSink, private _source: PostMessageBusSource) {}
from(channel: string): EventEmitter { return this._source.from(channel); } from(channel: string): EventEmitter { return this._source.from(channel); }

View File

@ -1,6 +1,6 @@
import {Injectable, Inject} from "angular2/di"; import {Injectable, Inject} from "angular2/di";
import {RenderProtoViewRef} from "angular2/src/render/api"; import {RenderProtoViewRef} from "angular2/src/render/api";
import {ON_WEB_WORKER} from "angular2/src/web-workers/shared/api"; import {ON_WEB_WORKER} from "angular2/src/web_workers/shared/api";
@Injectable() @Injectable()
export class RenderProtoViewRefStore { export class RenderProtoViewRefStore {

View File

@ -1,6 +1,6 @@
import {Injectable, Inject} from "angular2/di"; import {Injectable, Inject} from "angular2/di";
import {RenderViewRef, RenderFragmentRef, RenderViewWithFragments} from "angular2/src/render/api"; import {RenderViewRef, RenderFragmentRef, RenderViewWithFragments} from "angular2/src/render/api";
import {ON_WEB_WORKER} from "angular2/src/web-workers/shared/api"; import {ON_WEB_WORKER} from "angular2/src/web_workers/shared/api";
import {List, ListWrapper} from "angular2/src/facade/collection"; import {List, ListWrapper} from "angular2/src/facade/collection";
@Injectable() @Injectable()

View File

@ -31,14 +31,14 @@ import {
ViewEncapsulation, ViewEncapsulation,
PropertyBindingType PropertyBindingType
} from "angular2/src/render/api"; } from "angular2/src/render/api";
import {WebWorkerElementRef} from 'angular2/src/web-workers/shared/api'; import {WebWorkerElementRef} from 'angular2/src/web_workers/shared/api';
import {AST, ASTWithSource} from 'angular2/src/change_detection/change_detection'; import {AST, ASTWithSource} from 'angular2/src/change_detection/change_detection';
import {Parser} from "angular2/src/change_detection/parser/parser"; import {Parser} from "angular2/src/change_detection/parser/parser";
import {Injectable} from "angular2/di"; import {Injectable} from "angular2/di";
import {RenderProtoViewRefStore} from 'angular2/src/web-workers/shared/render_proto_view_ref_store'; import {RenderProtoViewRefStore} from 'angular2/src/web_workers/shared/render_proto_view_ref_store';
import { import {
RenderViewWithFragmentsStore RenderViewWithFragmentsStore
} from 'angular2/src/web-workers/shared/render_view_with_fragments_store'; } from 'angular2/src/web_workers/shared/render_view_with_fragments_store';
@Injectable() @Injectable()
export class Serializer { export class Serializer {

View File

@ -3,10 +3,10 @@ library angular2.src.web_workers.ui;
import 'dart:isolate'; import 'dart:isolate';
import 'dart:async'; import 'dart:async';
import 'dart:core'; import 'dart:core';
import 'package:angular2/src/web-workers/shared/message_bus.dart' import 'package:angular2/src/web_workers/shared/message_bus.dart'
show MessageBus; show MessageBus;
import 'package:angular2/src/web-workers/ui/impl.dart' show bootstrapUICommon; import 'package:angular2/src/web_workers/ui/impl.dart' show bootstrapUICommon;
import 'package:angular2/src/web-workers/shared/isolate_message_bus.dart'; import 'package:angular2/src/web_workers/shared/isolate_message_bus.dart';
/** /**
* Bootstrapping a WebWorker * Bootstrapping a WebWorker

View File

@ -2,10 +2,10 @@ import {
PostMessageBus, PostMessageBus,
PostMessageBusSink, PostMessageBusSink,
PostMessageBusSource PostMessageBusSource
} from 'angular2/src/web-workers/shared/post_message_bus'; } from 'angular2/src/web_workers/shared/post_message_bus';
import {MessageBus} from 'angular2/src/web-workers/shared/message_bus'; import {MessageBus} from 'angular2/src/web_workers/shared/message_bus';
import {BaseException} from "angular2/src/facade/lang"; import {BaseException} from "angular2/src/facade/lang";
import {bootstrapUICommon} from "angular2/src/web-workers/ui/impl"; import {bootstrapUICommon} from "angular2/src/web_workers/ui/impl";
/** /**
* Bootstrapping a WebWorker * Bootstrapping a WebWorker

View File

@ -52,19 +52,19 @@ import {UrlResolver} from 'angular2/src/services/url_resolver';
import {Testability} from 'angular2/src/core/testability/testability'; import {Testability} from 'angular2/src/core/testability/testability';
import {XHR} from 'angular2/src/render/xhr'; import {XHR} from 'angular2/src/render/xhr';
import {XHRImpl} from 'angular2/src/render/xhr_impl'; import {XHRImpl} from 'angular2/src/render/xhr_impl';
import {Serializer} from 'angular2/src/web-workers/shared/serializer'; import {Serializer} from 'angular2/src/web_workers/shared/serializer';
import {ON_WEB_WORKER} from 'angular2/src/web-workers/shared/api'; import {ON_WEB_WORKER} from 'angular2/src/web_workers/shared/api';
import {RenderProtoViewRefStore} from 'angular2/src/web-workers/shared/render_proto_view_ref_store'; import {RenderProtoViewRefStore} from 'angular2/src/web_workers/shared/render_proto_view_ref_store';
import { import {
RenderViewWithFragmentsStore RenderViewWithFragmentsStore
} from 'angular2/src/web-workers/shared/render_view_with_fragments_store'; } from 'angular2/src/web_workers/shared/render_view_with_fragments_store';
import {AnchorBasedAppRootUrl} from 'angular2/src/services/anchor_based_app_root_url'; import {AnchorBasedAppRootUrl} from 'angular2/src/services/anchor_based_app_root_url';
import {WebWorkerMain} from 'angular2/src/web-workers/ui/impl'; import {WebWorkerMain} from 'angular2/src/web_workers/ui/impl';
import {MessageBus, MessageBusInterface} from 'angular2/src/web-workers/shared/message_bus'; import {MessageBus} from 'angular2/src/web_workers/shared/message_bus';
import {MessageBasedRenderCompiler} from 'angular2/src/web-workers/ui/render_compiler'; import {MessageBasedRenderCompiler} from 'angular2/src/web_workers/ui/render_compiler';
import {MessageBasedRenderer} from 'angular2/src/web-workers/ui/renderer'; import {MessageBasedRenderer} from 'angular2/src/web_workers/ui/renderer';
import {MessageBasedXHRImpl} from 'angular2/src/web-workers/ui/xhr_impl'; import {MessageBasedXHRImpl} from 'angular2/src/web_workers/ui/xhr_impl';
import {WebWorkerSetup} from 'angular2/src/web-workers/ui/setup'; import {WebWorkerSetup} from 'angular2/src/web_workers/ui/setup';
var _rootInjector: Injector; var _rootInjector: Injector;
@ -139,7 +139,7 @@ function _injectorBindings(): List<any> {
]; ];
} }
export function createInjector(zone: NgZone, bus: MessageBusInterface): Injector { export function createInjector(zone: NgZone, bus: MessageBus): Injector {
BrowserDomAdapter.makeCurrent(); BrowserDomAdapter.makeCurrent();
_rootBindings.push(bind(NgZone).toValue(zone)); _rootBindings.push(bind(NgZone).toValue(zone));
_rootBindings.push(bind(MessageBus).toValue(bus)); _rootBindings.push(bind(MessageBus).toValue(bus));

View File

@ -2,13 +2,13 @@ import {
RenderViewRef, RenderViewRef,
RenderEventDispatcher, RenderEventDispatcher,
} from 'angular2/src/render/api'; } from 'angular2/src/render/api';
import {Serializer} from 'angular2/src/web-workers/shared/serializer'; import {Serializer} from 'angular2/src/web_workers/shared/serializer';
import { import {
serializeMouseEvent, serializeMouseEvent,
serializeKeyboardEvent, serializeKeyboardEvent,
serializeGenericEvent, serializeGenericEvent,
serializeEventWithTarget serializeEventWithTarget
} from 'angular2/src/web-workers/ui/event_serializer'; } from 'angular2/src/web_workers/ui/event_serializer';
import {BaseException} from "angular2/src/facade/lang"; import {BaseException} from "angular2/src/facade/lang";
import {StringMapWrapper} from 'angular2/src/facade/collection'; import {StringMapWrapper} from 'angular2/src/facade/collection';
import {EventEmitter, ObservableWrapper} from 'angular2/src/facade/async'; import {EventEmitter, ObservableWrapper} from 'angular2/src/facade/async';

View File

@ -6,15 +6,15 @@
*/ */
import {createInjector} from "./di_bindings"; import {createInjector} from "./di_bindings";
import {MessageBus, MessageBusSink} from "angular2/src/web-workers/shared/message_bus"; import {MessageBus, MessageBusSink} from "angular2/src/web_workers/shared/message_bus";
import {createNgZone} from 'angular2/src/core/application_common'; import {createNgZone} from 'angular2/src/core/application_common';
import {Injectable} from 'angular2/di'; import {Injectable} from 'angular2/di';
import {BrowserDomAdapter} from 'angular2/src/dom/browser_adapter'; import {BrowserDomAdapter} from 'angular2/src/dom/browser_adapter';
import {wtfInit} from 'angular2/src/profile/wtf_init'; import {wtfInit} from 'angular2/src/profile/wtf_init';
import {WebWorkerSetup} from 'angular2/src/web-workers/ui/setup'; import {WebWorkerSetup} from 'angular2/src/web_workers/ui/setup';
import {MessageBasedRenderCompiler} from 'angular2/src/web-workers/ui/render_compiler'; import {MessageBasedRenderCompiler} from 'angular2/src/web_workers/ui/render_compiler';
import {MessageBasedRenderer} from 'angular2/src/web-workers/ui/renderer'; import {MessageBasedRenderer} from 'angular2/src/web_workers/ui/renderer';
import {MessageBasedXHRImpl} from 'angular2/src/web-workers/ui/xhr_impl'; import {MessageBasedXHRImpl} from 'angular2/src/web_workers/ui/xhr_impl';
/** /**
* Creates a zone, sets up the DI bindings * Creates a zone, sets up the DI bindings

View File

@ -1,6 +1,6 @@
import {Injectable} from 'angular2/di'; import {Injectable} from 'angular2/di';
import {MessageBus} from 'angular2/src/web-workers/shared/message_bus'; import {MessageBus} from 'angular2/src/web_workers/shared/message_bus';
import {Serializer} from 'angular2/src/web-workers/shared/serializer'; import {Serializer} from 'angular2/src/web_workers/shared/serializer';
import { import {
RenderDirectiveMetadata, RenderDirectiveMetadata,
ProtoViewDto, ProtoViewDto,
@ -10,8 +10,8 @@ import {
RenderCompiler RenderCompiler
} from 'angular2/src/render/api'; } from 'angular2/src/render/api';
import {EventEmitter, ObservableWrapper, PromiseWrapper, Promise} from 'angular2/src/facade/async'; import {EventEmitter, ObservableWrapper, PromiseWrapper, Promise} from 'angular2/src/facade/async';
import {RENDER_COMPILER_CHANNEL} from 'angular2/src/web-workers/shared/messaging_api'; import {RENDER_COMPILER_CHANNEL} from 'angular2/src/web_workers/shared/messaging_api';
import {ReceivedMessage} from 'angular2/src/web-workers/ui/impl'; import {ReceivedMessage} from 'angular2/src/web_workers/ui/impl';
import {BaseException, Type} from 'angular2/src/facade/lang'; import {BaseException, Type} from 'angular2/src/facade/lang';
// TODO(jteplitz602): Create parent UIComponent class #3703 // TODO(jteplitz602): Create parent UIComponent class #3703

View File

@ -1,21 +1,21 @@
import {Injectable} from 'angular2/di'; import {Injectable} from 'angular2/di';
import {MessageBus} from 'angular2/src/web-workers/shared/message_bus'; import {MessageBus} from 'angular2/src/web_workers/shared/message_bus';
import {Serializer} from 'angular2/src/web-workers/shared/serializer'; import {Serializer} from 'angular2/src/web_workers/shared/serializer';
import { import {
RenderViewRef, RenderViewRef,
RenderFragmentRef, RenderFragmentRef,
RenderProtoViewRef, RenderProtoViewRef,
Renderer Renderer
} from 'angular2/src/render/api'; } from 'angular2/src/render/api';
import {WebWorkerElementRef} from 'angular2/src/web-workers/shared/api'; import {WebWorkerElementRef} from 'angular2/src/web_workers/shared/api';
import {EventEmitter, ObservableWrapper, PromiseWrapper, Promise} from 'angular2/src/facade/async'; import {EventEmitter, ObservableWrapper, PromiseWrapper, Promise} from 'angular2/src/facade/async';
import {EVENT_CHANNEL, RENDERER_CHANNEL} from 'angular2/src/web-workers/shared/messaging_api'; import {EVENT_CHANNEL, RENDERER_CHANNEL} from 'angular2/src/web_workers/shared/messaging_api';
import {ReceivedMessage} from 'angular2/src/web-workers/ui/impl'; import {ReceivedMessage} from 'angular2/src/web_workers/ui/impl';
import {BaseException, Type} from 'angular2/src/facade/lang'; import {BaseException, Type} from 'angular2/src/facade/lang';
import {EventDispatcher} from 'angular2/src/web-workers/ui/event_dispatcher'; import {EventDispatcher} from 'angular2/src/web_workers/ui/event_dispatcher';
import { import {
RenderViewWithFragmentsStore RenderViewWithFragmentsStore
} from 'angular2/src/web-workers/shared/render_view_with_fragments_store'; } from 'angular2/src/web_workers/shared/render_view_with_fragments_store';
@Injectable() @Injectable()
export class MessageBasedRenderer { export class MessageBasedRenderer {

View File

@ -1,6 +1,6 @@
import {SETUP_CHANNEL} from 'angular2/src/web-workers/shared/messaging_api'; import {SETUP_CHANNEL} from 'angular2/src/web_workers/shared/messaging_api';
import {EventEmitter, ObservableWrapper} from 'angular2/src/facade/async'; import {EventEmitter, ObservableWrapper} from 'angular2/src/facade/async';
import {MessageBus} from 'angular2/src/web-workers/shared/message_bus'; import {MessageBus} from 'angular2/src/web_workers/shared/message_bus';
import {AnchorBasedAppRootUrl} from 'angular2/src/services/anchor_based_app_root_url'; import {AnchorBasedAppRootUrl} from 'angular2/src/services/anchor_based_app_root_url';
import {Injectable} from 'angular2/di'; import {Injectable} from 'angular2/di';

View File

@ -1,9 +1,9 @@
import {Injectable} from 'angular2/di'; import {Injectable} from 'angular2/di';
import {MessageBus} from 'angular2/src/web-workers/shared/message_bus'; import {MessageBus} from 'angular2/src/web_workers/shared/message_bus';
import {Serializer} from 'angular2/src/web-workers/shared/serializer'; import {Serializer} from 'angular2/src/web_workers/shared/serializer';
import {EventEmitter, ObservableWrapper, PromiseWrapper, Promise} from 'angular2/src/facade/async'; import {EventEmitter, ObservableWrapper, PromiseWrapper, Promise} from 'angular2/src/facade/async';
import {XHR_CHANNEL} from 'angular2/src/web-workers/shared/messaging_api'; import {XHR_CHANNEL} from 'angular2/src/web_workers/shared/messaging_api';
import {ReceivedMessage} from 'angular2/src/web-workers/ui/impl'; import {ReceivedMessage} from 'angular2/src/web_workers/ui/impl';
import {BaseException, Type} from 'angular2/src/facade/lang'; import {BaseException, Type} from 'angular2/src/facade/lang';
import {XHR} from 'angular2/src/render/xhr'; import {XHR} from 'angular2/src/render/xhr';

View File

@ -1,7 +1,7 @@
library angular2.src.web_workers.worker; library angular2.src.web_workers.worker;
import "package:angular2/src/web-workers/shared/isolate_message_bus.dart"; import "package:angular2/src/web_workers/shared/isolate_message_bus.dart";
import "package:angular2/src/web-workers/worker/application_common.dart" import "package:angular2/src/web_workers/worker/application_common.dart"
show bootstrapWebWorkerCommon; show bootstrapWebWorkerCommon;
import "package:angular2/src/facade/async.dart" show Future; import "package:angular2/src/facade/async.dart" show Future;
import "package:angular2/src/core/application_ref.dart" show ApplicationRef; import "package:angular2/src/core/application_ref.dart" show ApplicationRef;

View File

@ -2,12 +2,12 @@ import {
PostMessageBus, PostMessageBus,
PostMessageBusSink, PostMessageBusSink,
PostMessageBusSource PostMessageBusSource
} from 'angular2/src/web-workers/shared/post_message_bus'; } from 'angular2/src/web_workers/shared/post_message_bus';
import {Type, BaseException} from "angular2/src/facade/lang"; import {Type, BaseException} from "angular2/src/facade/lang";
import {Binding} from "angular2/di"; import {Binding} from "angular2/di";
import {Map} from 'angular2/src/facade/collection'; import {Map} from 'angular2/src/facade/collection';
import {Promise} from 'angular2/src/facade/async'; import {Promise} from 'angular2/src/facade/async';
import {bootstrapWebWorkerCommon} from "angular2/src/web-workers/worker/application_common"; import {bootstrapWebWorkerCommon} from "angular2/src/web_workers/worker/application_common";
import {ApplicationRef} from "angular2/src/core/application_ref"; import {ApplicationRef} from "angular2/src/core/application_ref";
import {Injectable} from "angular2/di"; import {Injectable} from "angular2/di";

View File

@ -34,7 +34,7 @@ import {Promise, PromiseWrapper, PromiseCompleter} from 'angular2/src/facade/asy
import {NgZone} from 'angular2/src/core/zone/ng_zone'; import {NgZone} from 'angular2/src/core/zone/ng_zone';
import {LifeCycle} from 'angular2/src/core/life_cycle/life_cycle'; import {LifeCycle} from 'angular2/src/core/life_cycle/life_cycle';
import {XHR} from 'angular2/src/render/xhr'; import {XHR} from 'angular2/src/render/xhr';
import {WebWorkerXHRImpl} from 'angular2/src/web-workers/worker/xhr_impl'; import {WebWorkerXHRImpl} from 'angular2/src/web_workers/worker/xhr_impl';
import {ComponentUrlMapper} from 'angular2/src/core/compiler/component_url_mapper'; import {ComponentUrlMapper} from 'angular2/src/core/compiler/component_url_mapper';
import {UrlResolver} from 'angular2/src/services/url_resolver'; import {UrlResolver} from 'angular2/src/services/url_resolver';
import {AppRootUrl} from 'angular2/src/services/app_root_url'; import {AppRootUrl} from 'angular2/src/services/app_root_url';
@ -52,19 +52,19 @@ import {WebWorkerRenderer, WebWorkerCompiler} from './renderer';
import {Renderer, RenderCompiler} from 'angular2/src/render/api'; import {Renderer, RenderCompiler} from 'angular2/src/render/api';
import {internalView} from 'angular2/src/core/compiler/view_ref'; import {internalView} from 'angular2/src/core/compiler/view_ref';
import {MessageBrokerFactory} from 'angular2/src/web-workers/worker/broker'; import {MessageBrokerFactory} from 'angular2/src/web_workers/worker/broker';
import {MessageBus, MessageBusInterface} from 'angular2/src/web-workers/shared/message_bus'; import {MessageBus} from 'angular2/src/web_workers/shared/message_bus';
import {APP_COMPONENT_REF_PROMISE, APP_COMPONENT} from 'angular2/src/core/application_tokens'; import {APP_COMPONENT_REF_PROMISE, APP_COMPONENT} from 'angular2/src/core/application_tokens';
import {ApplicationRef} from 'angular2/src/core/application_ref'; import {ApplicationRef} from 'angular2/src/core/application_ref';
import {Serializer} from "angular2/src/web-workers/shared/serializer"; import {Serializer} from "angular2/src/web_workers/shared/serializer";
import {ON_WEB_WORKER} from "angular2/src/web-workers/shared/api"; import {ON_WEB_WORKER} from "angular2/src/web_workers/shared/api";
import {RenderProtoViewRefStore} from 'angular2/src/web-workers/shared/render_proto_view_ref_store'; import {RenderProtoViewRefStore} from 'angular2/src/web_workers/shared/render_proto_view_ref_store';
import { import {
RenderViewWithFragmentsStore RenderViewWithFragmentsStore
} from 'angular2/src/web-workers/shared/render_view_with_fragments_store'; } from 'angular2/src/web_workers/shared/render_view_with_fragments_store';
import {ObservableWrapper} from 'angular2/src/facade/async'; import {ObservableWrapper} from 'angular2/src/facade/async';
import {SETUP_CHANNEL} from 'angular2/src/web-workers/shared/messaging_api'; import {SETUP_CHANNEL} from 'angular2/src/web_workers/shared/messaging_api';
import {WebWorkerEventDispatcher} from 'angular2/src/web-workers/worker/event_dispatcher'; import {WebWorkerEventDispatcher} from 'angular2/src/web_workers/worker/event_dispatcher';
var _rootInjector: Injector; var _rootInjector: Injector;
@ -77,8 +77,8 @@ class PrintLogger {
logGroupEnd() {} logGroupEnd() {}
} }
function _injectorBindings(appComponentType, bus: MessageBusInterface, function _injectorBindings(appComponentType, bus: MessageBus, initData: StringMap<string, any>):
initData: StringMap<string, any>): List<Type | Binding | List<any>> { List<Type | Binding | List<any>> {
var bestChangeDetection = new DynamicChangeDetection(); var bestChangeDetection = new DynamicChangeDetection();
if (PreGeneratedChangeDetection.isSupported()) { if (PreGeneratedChangeDetection.isSupported()) {
bestChangeDetection = new PreGeneratedChangeDetection(); bestChangeDetection = new PreGeneratedChangeDetection();
@ -142,7 +142,7 @@ function _injectorBindings(appComponentType, bus: MessageBusInterface,
} }
export function bootstrapWebWorkerCommon( export function bootstrapWebWorkerCommon(
appComponentType: Type, bus: MessageBusInterface, appComponentType: Type, bus: MessageBus,
componentInjectableBindings: List<Type | Binding | List<any>> = null): Promise<ApplicationRef> { componentInjectableBindings: List<Type | Binding | List<any>> = null): Promise<ApplicationRef> {
var bootstrapProcess: PromiseCompleter<any> = PromiseWrapper.completer(); var bootstrapProcess: PromiseCompleter<any> = PromiseWrapper.completer();
@ -187,8 +187,8 @@ export function bootstrapWebWorkerCommon(
} }
function _createAppInjector(appComponentType: Type, bindings: List<Type | Binding | List<any>>, function _createAppInjector(appComponentType: Type, bindings: List<Type | Binding | List<any>>,
zone: NgZone, bus: MessageBusInterface, zone: NgZone, bus: MessageBus, initData: StringMap<string, any>):
initData: StringMap<string, any>): Injector { Injector {
if (isBlank(_rootInjector)) _rootInjector = Injector.resolveAndCreate(_rootBindings); if (isBlank(_rootInjector)) _rootInjector = Injector.resolveAndCreate(_rootBindings);
var mergedBindings: any[] = var mergedBindings: any[] =
isPresent(bindings) ? isPresent(bindings) ?

View File

@ -1,5 +1,5 @@
/// <reference path="../../../globals.d.ts" /> /// <reference path="../../../globals.d.ts" />
import {MessageBus} from "angular2/src/web-workers/shared/message_bus"; import {MessageBus} from "angular2/src/web_workers/shared/message_bus";
import {print, isPresent, DateWrapper, stringify} from "../../facade/lang"; import {print, isPresent, DateWrapper, stringify} from "../../facade/lang";
import { import {
Promise, Promise,
@ -9,7 +9,7 @@ import {
EventEmitter EventEmitter
} from "angular2/src/facade/async"; } from "angular2/src/facade/async";
import {ListWrapper, StringMapWrapper, MapWrapper} from "../../facade/collection"; import {ListWrapper, StringMapWrapper, MapWrapper} from "../../facade/collection";
import {Serializer} from "angular2/src/web-workers/shared/serializer"; import {Serializer} from "angular2/src/web_workers/shared/serializer";
import {Injectable} from "angular2/di"; import {Injectable} from "angular2/di";
import {Type} from "angular2/src/facade/lang"; import {Type} from "angular2/src/facade/lang";

View File

@ -1,9 +1,9 @@
import {Injectable} from 'angular2/di'; import {Injectable} from 'angular2/di';
import {Map, MapWrapper} from 'angular2/src/facade/collection'; import {Map, MapWrapper} from 'angular2/src/facade/collection';
import {RenderViewRef, RenderEventDispatcher} from 'angular2/src/render/api'; import {RenderViewRef, RenderEventDispatcher} from 'angular2/src/render/api';
import {Serializer} from 'angular2/src/web-workers/shared/serializer'; import {Serializer} from 'angular2/src/web_workers/shared/serializer';
import {EVENT_CHANNEL} from 'angular2/src/web-workers/shared/messaging_api'; import {EVENT_CHANNEL} from 'angular2/src/web_workers/shared/messaging_api';
import {MessageBus} from 'angular2/src/web-workers/shared/message_bus'; import {MessageBus} from 'angular2/src/web_workers/shared/message_bus';
import {EventEmitter, ObservableWrapper} from 'angular2/src/facade/async'; import {EventEmitter, ObservableWrapper} from 'angular2/src/facade/async';
import {deserializeGenericEvent} from './event_deserializer'; import {deserializeGenericEvent} from './event_deserializer';
import {NgZone} from 'angular2/src/core/zone/ng_zone'; import {NgZone} from 'angular2/src/core/zone/ng_zone';

View File

@ -18,19 +18,19 @@ import {
MessageBrokerFactory, MessageBrokerFactory,
FnArg, FnArg,
UiArguments UiArguments
} from "angular2/src/web-workers/worker/broker"; } from "angular2/src/web_workers/worker/broker";
import {isPresent, print, BaseException} from "angular2/src/facade/lang"; import {isPresent, print, BaseException} from "angular2/src/facade/lang";
import {Injectable} from "angular2/di"; import {Injectable} from "angular2/di";
import { import {
RenderViewWithFragmentsStore, RenderViewWithFragmentsStore,
WebWorkerRenderViewRef WebWorkerRenderViewRef
} from 'angular2/src/web-workers/shared/render_view_with_fragments_store'; } from 'angular2/src/web_workers/shared/render_view_with_fragments_store';
import {WebWorkerElementRef} from 'angular2/src/web-workers/shared/api'; import {WebWorkerElementRef} from 'angular2/src/web_workers/shared/api';
import { import {
RENDER_COMPILER_CHANNEL, RENDER_COMPILER_CHANNEL,
RENDERER_CHANNEL RENDERER_CHANNEL
} from 'angular2/src/web-workers/shared/messaging_api'; } from 'angular2/src/web_workers/shared/messaging_api';
import {WebWorkerEventDispatcher} from 'angular2/src/web-workers/worker/event_dispatcher'; import {WebWorkerEventDispatcher} from 'angular2/src/web_workers/worker/event_dispatcher';
@Injectable() @Injectable()
export class WebWorkerCompiler implements RenderCompiler { export class WebWorkerCompiler implements RenderCompiler {

View File

@ -6,8 +6,8 @@ import {
UiArguments, UiArguments,
MessageBroker, MessageBroker,
MessageBrokerFactory MessageBrokerFactory
} from 'angular2/src/web-workers/worker/broker'; } from 'angular2/src/web_workers/worker/broker';
import {XHR_CHANNEL} from 'angular2/src/web-workers/shared/messaging_api'; import {XHR_CHANNEL} from 'angular2/src/web_workers/shared/messaging_api';
/** /**
* Implementation of render/xhr that relays XHR requests to the UI side where they are sent * Implementation of render/xhr that relays XHR requests to the UI side where they are sent

View File

@ -11,7 +11,7 @@ import {
proxy proxy
} from 'angular2/test_lib'; } from 'angular2/test_lib';
import {ObservableWrapper} from 'angular2/src/facade/async'; import {ObservableWrapper} from 'angular2/src/facade/async';
import {MessageBusInterface} from 'angular2/src/web-workers/shared/message_bus'; import {MessageBus} from 'angular2/src/web_workers/shared/message_bus';
import {createConnectedMessageBus} from './message_bus_util'; import {createConnectedMessageBus} from './message_bus_util';
export function main() { export function main() {
@ -19,7 +19,7 @@ export function main() {
* Tests the PostMessageBus in TypeScript and the IsolateMessageBus in Dart * Tests the PostMessageBus in TypeScript and the IsolateMessageBus in Dart
*/ */
describe("MessageBus", () => { describe("MessageBus", () => {
var bus: MessageBusInterface; var bus: MessageBus;
beforeEach(() => { bus = createConnectedMessageBus(); }); beforeEach(() => { bus = createConnectedMessageBus(); });

View File

@ -1,15 +1,15 @@
library angular2.test.web_workers.shared.message_bus_util; library angular2.test.web_workers.shared.message_bus_util;
import 'dart:isolate'; import 'dart:isolate';
import 'package:angular2/src/web-workers/shared/message_bus.dart' import 'package:angular2/src/web_workers/shared/message_bus.dart'
show MessageBusInterface; show MessageBus;
import 'package:angular2/src/web-workers/shared/isolate_message_bus.dart'; import 'package:angular2/src/web_workers/shared/isolate_message_bus.dart';
/* /*
* Returns an IsolateMessageBus thats sink is connected to its own source. * Returns an IsolateMessageBus thats sink is connected to its own source.
* Useful for testing the sink and source. * Useful for testing the sink and source.
*/ */
MessageBusInterface createConnectedMessageBus() { MessageBus createConnectedMessageBus() {
var receivePort = new ReceivePort(); var receivePort = new ReceivePort();
var sendPort = receivePort.sendPort; var sendPort = receivePort.sendPort;

View File

@ -2,14 +2,14 @@ import {
PostMessageBusSource, PostMessageBusSource,
PostMessageBusSink, PostMessageBusSink,
PostMessageBus PostMessageBus
} from 'angular2/src/web-workers/shared/post_message_bus'; } from 'angular2/src/web_workers/shared/post_message_bus';
import {MessageBusInterface} from 'angular2/src/web-workers/shared/message_bus'; import {MessageBus} from 'angular2/src/web_workers/shared/message_bus';
/* /*
* Returns a PostMessageBus thats sink is connected to its own source. * Returns a PostMessageBus thats sink is connected to its own source.
* Useful for testing the sink and source. * Useful for testing the sink and source.
*/ */
export function createConnectedMessageBus(): MessageBusInterface { export function createConnectedMessageBus(): MessageBus {
var mockPostMessage = new MockPostMessage(); var mockPostMessage = new MockPostMessage();
var source = new PostMessageBusSource(<any>mockPostMessage); var source = new PostMessageBusSource(<any>mockPostMessage);
var sink = new PostMessageBusSink(mockPostMessage); var sink = new PostMessageBusSink(mockPostMessage);

View File

@ -1,6 +1,6 @@
import {AsyncTestCompleter, inject, describe, it, expect} from "angular2/test_lib"; import {AsyncTestCompleter, inject, describe, it, expect} from "angular2/test_lib";
import {RenderProtoViewRef} from "angular2/src/render/api"; import {RenderProtoViewRef} from "angular2/src/render/api";
import {RenderProtoViewRefStore} from "angular2/src/web-workers/shared/render_proto_view_ref_store"; import {RenderProtoViewRefStore} from "angular2/src/web_workers/shared/render_proto_view_ref_store";
export function main() { export function main() {
describe("RenderProtoViewRefStore", () => { describe("RenderProtoViewRefStore", () => {

View File

@ -4,7 +4,7 @@ import {
RenderViewWithFragmentsStore, RenderViewWithFragmentsStore,
WebWorkerRenderViewRef, WebWorkerRenderViewRef,
WebWorkerRenderFragmentRef WebWorkerRenderFragmentRef
} from "angular2/src/web-workers/shared/render_view_with_fragments_store"; } from "angular2/src/web_workers/shared/render_view_with_fragments_store";
import {List, ListWrapper} from "angular2/src/facade/collection"; import {List, ListWrapper} from "angular2/src/facade/collection";
export function main() { export function main() {

View File

@ -11,20 +11,20 @@ import {
proxy proxy
} from 'angular2/test_lib'; } from 'angular2/test_lib';
import {IMPLEMENTS} from 'angular2/src/facade/lang'; import {IMPLEMENTS} from 'angular2/src/facade/lang';
import {Serializer} from 'angular2/src/web-workers/shared/serializer'; import {Serializer} from 'angular2/src/web_workers/shared/serializer';
import {NgZone} from 'angular2/src/core/zone/ng_zone'; import {NgZone} from 'angular2/src/core/zone/ng_zone';
import {ON_WEB_WORKER} from 'angular2/src/web-workers/shared/api'; import {ON_WEB_WORKER} from 'angular2/src/web_workers/shared/api';
import {bind} from 'angular2/di'; import {bind} from 'angular2/di';
import {RenderProtoViewRefStore} from 'angular2/src/web-workers/shared/render_proto_view_ref_store'; import {RenderProtoViewRefStore} from 'angular2/src/web_workers/shared/render_proto_view_ref_store';
import { import {
RenderViewWithFragmentsStore, RenderViewWithFragmentsStore,
WebWorkerRenderViewRef WebWorkerRenderViewRef
} from 'angular2/src/web-workers/shared/render_view_with_fragments_store'; } from 'angular2/src/web_workers/shared/render_view_with_fragments_store';
import {RenderEventDispatcher, RenderViewRef} from 'angular2/src/render/api'; import {RenderEventDispatcher, RenderViewRef} from 'angular2/src/render/api';
import {createPairedMessageBuses} from './worker_test_util'; import {createPairedMessageBuses} from './worker_test_util';
import {WebWorkerEventDispatcher} from 'angular2/src/web-workers/worker/event_dispatcher'; import {WebWorkerEventDispatcher} from 'angular2/src/web_workers/worker/event_dispatcher';
import {ObservableWrapper} from 'angular2/src/facade/async'; import {ObservableWrapper} from 'angular2/src/facade/async';
import {EVENT_CHANNEL} from 'angular2/src/web-workers/shared/messaging_api'; import {EVENT_CHANNEL} from 'angular2/src/web_workers/shared/messaging_api';
export function main() { export function main() {
describe("EventDispatcher", () => { describe("EventDispatcher", () => {

View File

@ -11,9 +11,9 @@ import {
import {DOM} from 'angular2/src/dom/dom_adapter'; import {DOM} from 'angular2/src/dom/dom_adapter';
import {DomTestbed, TestRootView, elRef} from '../../render/dom/dom_testbed'; import {DomTestbed, TestRootView, elRef} from '../../render/dom/dom_testbed';
import {bind} from 'angular2/di'; import {bind} from 'angular2/di';
import {WebWorkerCompiler, WebWorkerRenderer} from "angular2/src/web-workers/worker/renderer"; import {WebWorkerCompiler, WebWorkerRenderer} from "angular2/src/web_workers/worker/renderer";
import {MessageBrokerFactory, UiArguments, FnArg} from "angular2/src/web-workers/worker/broker"; import {MessageBrokerFactory, UiArguments, FnArg} from "angular2/src/web_workers/worker/broker";
import {Serializer} from "angular2/src/web-workers/shared/serializer"; import {Serializer} from "angular2/src/web_workers/shared/serializer";
import {isPresent, isBlank, BaseException, Type} from "angular2/src/facade/lang"; import {isPresent, isBlank, BaseException, Type} from "angular2/src/facade/lang";
import {MapWrapper, ListWrapper} from "angular2/src/facade/collection"; import {MapWrapper, ListWrapper} from "angular2/src/facade/collection";
import { import {
@ -29,16 +29,16 @@ import {
import { import {
RenderProtoViewRefStore, RenderProtoViewRefStore,
WebWorkerRenderProtoViewRef WebWorkerRenderProtoViewRef
} from "angular2/src/web-workers/shared/render_proto_view_ref_store"; } from "angular2/src/web_workers/shared/render_proto_view_ref_store";
import { import {
RenderViewWithFragmentsStore, RenderViewWithFragmentsStore,
WebWorkerRenderViewRef WebWorkerRenderViewRef
} from 'angular2/src/web-workers/shared/render_view_with_fragments_store'; } from 'angular2/src/web_workers/shared/render_view_with_fragments_store';
import {resolveInternalDomProtoView, DomProtoView} from 'angular2/src/render/dom/view/proto_view'; import {resolveInternalDomProtoView, DomProtoView} from 'angular2/src/render/dom/view/proto_view';
import {someComponent} from '../../render/dom/dom_renderer_integration_spec'; import {someComponent} from '../../render/dom/dom_renderer_integration_spec';
import {WebWorkerMain} from 'angular2/src/web-workers/ui/impl'; import {WebWorkerMain} from 'angular2/src/web_workers/ui/impl';
import {MessageBasedRenderCompiler} from 'angular2/src/web-workers/ui/render_compiler'; import {MessageBasedRenderCompiler} from 'angular2/src/web_workers/ui/render_compiler';
import {MessageBasedRenderer} from 'angular2/src/web-workers/ui/renderer'; import {MessageBasedRenderer} from 'angular2/src/web_workers/ui/renderer';
import { import {
createPairedMessageBuses createPairedMessageBuses
} from './worker_test_util' } from './worker_test_util'

View File

@ -1,10 +1,9 @@
import {StringMap, StringMapWrapper, ListWrapper} from 'angular2/src/facade/collection'; import {StringMap, StringMapWrapper, ListWrapper} from 'angular2/src/facade/collection';
import { import {
MessageBusInterface,
MessageBusSink, MessageBusSink,
MessageBusSource, MessageBusSource,
MessageBus MessageBus
} from 'angular2/src/web-workers/shared/message_bus'; } from 'angular2/src/web_workers/shared/message_bus';
import {MockEventEmitter} from './mock_event_emitter'; import {MockEventEmitter} from './mock_event_emitter';
/** /**
@ -25,7 +24,7 @@ export function createPairedMessageBuses(): PairedMessageBuses {
} }
export class PairedMessageBuses { export class PairedMessageBuses {
constructor(public ui: MessageBusInterface, public worker: MessageBusInterface) {} constructor(public ui: MessageBus, public worker: MessageBus) {}
} }
export class MockMessageBusSource implements MessageBusSource { export class MockMessageBusSource implements MessageBusSource {

View File

@ -15,8 +15,8 @@ import {
MessageBroker, MessageBroker,
UiArguments, UiArguments,
MessageBrokerFactory MessageBrokerFactory
} from 'angular2/src/web-workers/worker/broker'; } from 'angular2/src/web_workers/worker/broker';
import {WebWorkerXHRImpl} from "angular2/src/web-workers/worker/xhr_impl"; import {WebWorkerXHRImpl} from "angular2/src/web_workers/worker/xhr_impl";
import {PromiseWrapper} from "angular2/src/facade/async"; import {PromiseWrapper} from "angular2/src/facade/async";
export function main() { export function main() {

View File

@ -1,11 +1,11 @@
library angular2.examples.message_broker.background_index; library angular2.examples.message_broker.background_index;
import "package:angular2/src/web-workers/worker/broker.dart" import "package:angular2/src/web_workers/worker/broker.dart"
show MessageBroker, UiArguments; show MessageBroker, UiArguments;
import "package:angular2/src/web-workers/shared/serializer.dart" import "package:angular2/src/web_workers/shared/serializer.dart"
show Serializer; show Serializer;
import "package:angular2/src/web-workers/shared/isolate_message_bus.dart"; import "package:angular2/src/web_workers/shared/isolate_message_bus.dart";
import "package:angular2/src/web-workers/worker/application.dart" import "package:angular2/src/web_workers/worker/application.dart"
show WebWorkerMessageBusSink; show WebWorkerMessageBusSink;
import "package:angular2/src/facade/async.dart"; import "package:angular2/src/facade/async.dart";
import "dart:isolate"; import "dart:isolate";

View File

@ -2,10 +2,10 @@ import {
PostMessageBus, PostMessageBus,
PostMessageBusSink, PostMessageBusSink,
PostMessageBusSource PostMessageBusSource
} from 'angular2/src/web-workers/shared/post_message_bus'; } from 'angular2/src/web_workers/shared/post_message_bus';
import {ObservableWrapper} from 'angular2/src/facade/async'; import {ObservableWrapper} from 'angular2/src/facade/async';
import {MessageBroker, UiArguments} from "angular2/src/web-workers/worker/broker"; import {MessageBroker, UiArguments} from "angular2/src/web_workers/worker/broker";
import {Serializer} from "angular2/src/web-workers/shared/serializer"; import {Serializer} from "angular2/src/web_workers/shared/serializer";
interface PostMessageInterface { interface PostMessageInterface {
(message: any, transferrables?:[ArrayBuffer]): void; (message: any, transferrables?:[ArrayBuffer]): void;

View File

@ -1,6 +1,6 @@
library angular2.examples.message_broker.index; library angular2.examples.message_broker.index;
import "package:angular2/src/web-workers/ui/application.dart" import "package:angular2/src/web_workers/ui/application.dart"
show spawnWebWorker; show spawnWebWorker;
import "package:angular2/src/facade/async.dart"; import "package:angular2/src/facade/async.dart";
import "dart:html"; import "dart:html";

View File

@ -2,7 +2,7 @@ import {
PostMessageBus, PostMessageBus,
PostMessageBusSink, PostMessageBusSink,
PostMessageBusSource PostMessageBusSource
} from 'angular2/src/web-workers/shared/post_message_bus'; } from 'angular2/src/web_workers/shared/post_message_bus';
import {ObservableWrapper} from 'angular2/src/facade/async'; import {ObservableWrapper} from 'angular2/src/facade/async';
var webWorker = new Worker("loader.js"); var webWorker = new Worker("loader.js");

View File

@ -2,7 +2,7 @@ library examples.src.web_workers.images.background_index;
import "index_common.dart" show ImageDemo; import "index_common.dart" show ImageDemo;
import "dart:isolate"; import "dart:isolate";
import "package:angular2/src/web-workers/worker/application.dart" import "package:angular2/src/web_workers/worker/application.dart"
show bootstrapWebWorker; show bootstrapWebWorker;
import "package:angular2/src/reflection/reflection_capabilities.dart"; import "package:angular2/src/reflection/reflection_capabilities.dart";
import "package:angular2/src/reflection/reflection.dart"; import "package:angular2/src/reflection/reflection.dart";

View File

@ -1,4 +1,4 @@
import {bootstrapWebWorker} from "angular2/src/web-workers/worker/application"; import {bootstrapWebWorker} from "angular2/src/web_workers/worker/application";
import {ImageDemo} from "./index_common"; import {ImageDemo} from "./index_common";
export function main() { export function main() {

View File

@ -1,6 +1,6 @@
library angular2.examples.web_workers.images.index; library angular2.examples.web_workers.images.index;
import "package:angular2/src/web-workers/ui/application.dart" show bootstrap; import "package:angular2/src/web_workers/ui/application.dart" show bootstrap;
import "package:angular2/src/reflection/reflection_capabilities.dart"; import "package:angular2/src/reflection/reflection_capabilities.dart";
import "package:angular2/src/reflection/reflection.dart"; import "package:angular2/src/reflection/reflection.dart";

View File

@ -1,2 +1,2 @@
import {bootstrap} from "angular2/src/web-workers/ui/application"; import {bootstrap} from "angular2/src/web_workers/ui/application";
bootstrap("loader.js"); bootstrap("loader.js");

View File

@ -2,7 +2,7 @@ library examples.src.web_workers.kitchen_sink.background_index;
import "index_common.dart" show HelloCmp; import "index_common.dart" show HelloCmp;
import "dart:isolate"; import "dart:isolate";
import "package:angular2/src/web-workers/worker/application.dart" import "package:angular2/src/web_workers/worker/application.dart"
show bootstrapWebWorker; show bootstrapWebWorker;
import "package:angular2/src/reflection/reflection_capabilities.dart"; import "package:angular2/src/reflection/reflection_capabilities.dart";
import "package:angular2/src/reflection/reflection.dart"; import "package:angular2/src/reflection/reflection.dart";

View File

@ -1,5 +1,5 @@
import {HelloCmp} from "./index_common"; import {HelloCmp} from "./index_common";
import {bootstrapWebWorker} from "angular2/src/web-workers/worker/application"; import {bootstrapWebWorker} from "angular2/src/web_workers/worker/application";
export function main() { export function main() {
bootstrapWebWorker(HelloCmp); bootstrapWebWorker(HelloCmp);

View File

@ -1,6 +1,6 @@
library angular2.examples.web_workers.kitchen_sink.index; library angular2.examples.web_workers.kitchen_sink.index;
import "package:angular2/src/web-workers/ui/application.dart" show bootstrap; import "package:angular2/src/web_workers/ui/application.dart" show bootstrap;
import "package:angular2/src/reflection/reflection_capabilities.dart"; import "package:angular2/src/reflection/reflection_capabilities.dart";
import "package:angular2/src/reflection/reflection.dart"; import "package:angular2/src/reflection/reflection.dart";

View File

@ -1,2 +1,2 @@
import {bootstrap} from "angular2/src/web-workers/ui/application"; import {bootstrap} from "angular2/src/web_workers/ui/application";
bootstrap("loader.js"); bootstrap("loader.js");

View File

@ -2,7 +2,7 @@ library examples.src.web_workers.todo.background_index;
import "index_common.dart" show TodoApp; import "index_common.dart" show TodoApp;
import "dart:isolate"; import "dart:isolate";
import "package:angular2/src/web-workers/worker/application.dart" import "package:angular2/src/web_workers/worker/application.dart"
show bootstrapWebWorker; show bootstrapWebWorker;
import "package:angular2/src/reflection/reflection_capabilities.dart"; import "package:angular2/src/reflection/reflection_capabilities.dart";
import "package:angular2/src/reflection/reflection.dart"; import "package:angular2/src/reflection/reflection.dart";

View File

@ -1,4 +1,4 @@
import {bootstrapWebWorker} from "angular2/src/web-workers/worker/application"; import {bootstrapWebWorker} from "angular2/src/web_workers/worker/application";
import {TodoApp} from "./index_common"; import {TodoApp} from "./index_common";
export function main() { export function main() {

View File

@ -1,6 +1,6 @@
library angular2.examples.web_workers.todo.index; library angular2.examples.web_workers.todo.index;
import "package:angular2/src/web-workers/ui/application.dart" show bootstrap; import "package:angular2/src/web_workers/ui/application.dart" show bootstrap;
import "package:angular2/src/reflection/reflection_capabilities.dart"; import "package:angular2/src/reflection/reflection_capabilities.dart";
import "package:angular2/src/reflection/reflection.dart"; import "package:angular2/src/reflection/reflection.dart";

View File

@ -1,2 +1,2 @@
import {bootstrap} from "angular2/src/web-workers/ui/application"; import {bootstrap} from "angular2/src/web_workers/ui/application";
bootstrap("loader.js"); bootstrap("loader.js");