| Index: third_party/pkg/angular/lib/core_dom/module.dart
|
| diff --git a/third_party/pkg/angular/lib/core_dom/module.dart b/third_party/pkg/angular/lib/core_dom/module.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d193675d3c7ed454fa5be56c995ed17cd3e4e04b
|
| --- /dev/null
|
| +++ b/third_party/pkg/angular/lib/core_dom/module.dart
|
| @@ -0,0 +1,62 @@
|
| +library angular.core.dom;
|
| +
|
| +import 'dart:async' as async;
|
| +import 'dart:convert' show JSON;
|
| +import 'dart:html' as dom;
|
| +import 'dart:mirrors';
|
| +
|
| +import 'package:di/di.dart';
|
| +import 'package:perf_api/perf_api.dart';
|
| +
|
| +import 'package:angular/core/module.dart';
|
| +import 'package:angular/core/parser/parser.dart';
|
| +
|
| +part 'block.dart';
|
| +part 'block_factory.dart';
|
| +part 'cookies.dart';
|
| +part 'common.dart';
|
| +part 'compiler.dart';
|
| +part 'directive.dart';
|
| +part 'directive_map.dart';
|
| +part 'http.dart';
|
| +part 'ng_mustache.dart';
|
| +part 'node_cursor.dart';
|
| +part 'selector.dart';
|
| +part 'template_cache.dart';
|
| +part 'tree_sanitizer.dart';
|
| +
|
| +class NgCoreDomModule extends Module {
|
| + NgCoreDomModule() {
|
| + value(dom.Window, dom.window);
|
| +
|
| + factory(TemplateCache, (_) => new TemplateCache(capacity: 0));
|
| + type(dom.NodeTreeSanitizer, implementedBy: NullTreeSanitizer);
|
| +
|
| + type(NgTextMustacheDirective);
|
| + type(NgAttrMustacheDirective);
|
| +
|
| + type(Compiler);
|
| + type(Http);
|
| + type(UrlRewriter);
|
| + type(HttpBackend);
|
| + type(HttpDefaultHeaders);
|
| + type(HttpDefaults);
|
| + type(HttpInterceptors);
|
| + type(BlockCache);
|
| + type(BrowserCookies);
|
| + type(Cookies);
|
| + type(LocationWrapper);
|
| + type(FieldMetadataExtractor);
|
| + type(DirectiveMap);
|
| + }
|
| +}
|
| +
|
| +/**
|
| + * Implementing components [onShadowRoot] method will be called when
|
| + * the template for the component has been loaded and inserted into Shadow DOM.
|
| + * It is guaranteed that when [onShadowRoot] is invoked, that shadow DOM
|
| + * has been loaded and is ready.
|
| + */
|
| +abstract class NgShadowRootAware {
|
| + void onShadowRoot(dom.ShadowRoot shadowRoot);
|
| +}
|
|
|