feat(core): introduce support for animations

Closes #8734
This commit is contained in:
Matias Niemelä
2016-05-25 12:46:22 -07:00
parent 6c6b316bd9
commit 5e0f8cf3f0
83 changed files with 5294 additions and 756 deletions

View File

@ -17,6 +17,8 @@ import {MessageBus} from '../shared/message_bus';
import {ObservableWrapper} from '../../../src/facade/async';
import {deserializeGenericEvent} from './event_deserializer';
import {AnimationKeyframe, AnimationPlayer, AnimationStyles} from '../../../core_private';
@Injectable()
export class WebWorkerRootRenderer implements RootRenderer {
private _messageBroker;
@ -241,6 +243,12 @@ export class WebWorkerRenderer implements Renderer, RenderStoreObject {
this._runOnService('listenDone', [new FnArg(unlistenCallbackId, null)]);
};
}
animate(element: any, startingStyles: AnimationStyles, keyframes: AnimationKeyframe[], duration: number, delay: number,
easing: string): AnimationPlayer {
// TODO
return null;
}
}
export class NamedEventEmitter {

View File

@ -152,4 +152,5 @@ export class WorkerDomAdapter extends DomAdapter {
getAnimationPrefix(): string { throw "not implemented"; }
getTransitionEnd(): string { throw "not implemented"; }
supportsAnimation(): boolean { throw "not implemented"; }
}
supportsWebAnimation(): boolean { throw "not implemented"; }
}