| Index: sdk/lib/html/src/shared_FactoryProviders.dart
|
| diff --git a/sdk/lib/html/src/shared_FactoryProviders.dart b/sdk/lib/html/src/shared_FactoryProviders.dart
|
| deleted file mode 100644
|
| index a5d6909a119bab537c92ac52914961fa8e502dd7..0000000000000000000000000000000000000000
|
| --- a/sdk/lib/html/src/shared_FactoryProviders.dart
|
| +++ /dev/null
|
| @@ -1,84 +0,0 @@
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -part of html;
|
| -
|
| -class _CustomEventFactoryProvider {
|
| - static CustomEvent createCustomEvent(String type, [bool canBubble = true,
|
| - bool cancelable = true, Object detail = null]) {
|
| - final CustomEvent e = document.$dom_createEvent("CustomEvent");
|
| - e.$dom_initCustomEvent(type, canBubble, cancelable, detail);
|
| - return e;
|
| - }
|
| -}
|
| -
|
| -class _EventFactoryProvider {
|
| - static Event createEvent(String type, [bool canBubble = true,
|
| - bool cancelable = true]) {
|
| - final Event e = document.$dom_createEvent("Event");
|
| - e.$dom_initEvent(type, canBubble, cancelable);
|
| - return e;
|
| - }
|
| -}
|
| -
|
| -class _MouseEventFactoryProvider {
|
| - static MouseEvent createMouseEvent(String type, Window view, int detail,
|
| - int screenX, int screenY, int clientX, int clientY, int button,
|
| - [bool canBubble = true, bool cancelable = true, bool ctrlKey = false,
|
| - bool altKey = false, bool shiftKey = false, bool metaKey = false,
|
| - EventTarget relatedTarget = null]) {
|
| - final e = document.$dom_createEvent("MouseEvent");
|
| - e.$dom_initMouseEvent(type, canBubble, cancelable, view, detail,
|
| - screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey,
|
| - button, relatedTarget);
|
| - return e;
|
| - }
|
| -}
|
| -
|
| -class _CssStyleDeclarationFactoryProvider {
|
| - static CssStyleDeclaration createCssStyleDeclaration_css(String css) {
|
| - final style = new Element.tag('div').style;
|
| - style.cssText = css;
|
| - return style;
|
| - }
|
| -
|
| - static CssStyleDeclaration createCssStyleDeclaration() {
|
| - return new CssStyleDeclaration.css('');
|
| - }
|
| -}
|
| -
|
| -class _DocumentFragmentFactoryProvider {
|
| - /** @domName Document.createDocumentFragment */
|
| - static DocumentFragment createDocumentFragment() =>
|
| - document.createDocumentFragment();
|
| -
|
| - static DocumentFragment createDocumentFragment_html(String html) {
|
| - final fragment = new DocumentFragment();
|
| - fragment.innerHtml = html;
|
| - return fragment;
|
| - }
|
| -
|
| - // TODO(nweiz): enable this when XML is ported.
|
| - // factory DocumentFragment.xml(String xml) {
|
| - // final fragment = new DocumentFragment();
|
| - // final e = new XMLElement.tag("xml");
|
| - // e.innerHtml = xml;
|
| - //
|
| - // // Copy list first since we don't want liveness during iteration.
|
| - // final List nodes = new List.from(e.nodes);
|
| - // fragment.nodes.addAll(nodes);
|
| - // return fragment;
|
| - // }
|
| -
|
| - static DocumentFragment createDocumentFragment_svg(String svgContent) {
|
| - final fragment = new DocumentFragment();
|
| - final e = new svg.SvgSvgElement();
|
| - e.innerHtml = svgContent;
|
| -
|
| - // Copy list first since we don't want liveness during iteration.
|
| - final List nodes = new List.from(e.nodes);
|
| - fragment.nodes.addAll(nodes);
|
| - return fragment;
|
| - }
|
| -}
|
|
|