Chromium Code Reviews| Index: sdk/lib/html/dart2js/html_dart2js.dart |
| diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart |
| index c9a47e3f43ead70c3b1d76397d7bec44a1b828cb..8825fcea86b66fac944601f8f0dbfb167f6cad01 100644 |
| --- a/sdk/lib/html/dart2js/html_dart2js.dart |
| +++ b/sdk/lib/html/dart2js/html_dart2js.dart |
| @@ -171,47 +171,6 @@ class AnimationEvent extends Event native "*WebKitAnimationEvent" { |
| // BSD-style license that can be found in the LICENSE file. |
| -/// @domName HTMLAppletElement; @docsEditable true |
| -class AppletElement extends Element native "*HTMLAppletElement" { |
| - |
| - /// @domName HTMLAppletElement.align; @docsEditable true |
| - String align; |
| - |
| - /// @domName HTMLAppletElement.alt; @docsEditable true |
| - String alt; |
| - |
| - /// @domName HTMLAppletElement.archive; @docsEditable true |
| - String archive; |
| - |
| - /// @domName HTMLAppletElement.code; @docsEditable true |
| - String code; |
| - |
| - /// @domName HTMLAppletElement.codeBase; @docsEditable true |
| - String codeBase; |
| - |
| - /// @domName HTMLAppletElement.height; @docsEditable true |
| - String height; |
| - |
| - /// @domName HTMLAppletElement.hspace; @docsEditable true |
| - String hspace; |
| - |
| - /// @domName HTMLAppletElement.name; @docsEditable true |
| - String name; |
| - |
| - /// @domName HTMLAppletElement.object; @docsEditable true |
| - String object; |
| - |
| - /// @domName HTMLAppletElement.vspace; @docsEditable true |
| - String vspace; |
| - |
| - /// @domName HTMLAppletElement.width; @docsEditable true |
| - String width; |
| -} |
| -// 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. |
| - |
| - |
| /// @domName DOMApplicationCache; @docsEditable true |
| class ApplicationCache extends EventTarget native "*DOMApplicationCache" { |
| @@ -513,23 +472,6 @@ class BaseElement extends Element native "*HTMLBaseElement" { |
| // BSD-style license that can be found in the LICENSE file. |
| -/// @domName HTMLBaseFontElement; @docsEditable true |
| -class BaseFontElement extends Element native "*HTMLBaseFontElement" { |
| - |
| - /// @domName HTMLBaseFontElement.color; @docsEditable true |
| - String color; |
| - |
| - /// @domName HTMLBaseFontElement.face; @docsEditable true |
| - String face; |
| - |
| - /// @domName HTMLBaseFontElement.size; @docsEditable true |
| - int size; |
| -} |
| -// 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. |
| - |
| - |
| /// @domName BatteryManager; @docsEditable true |
| class BatteryManager extends EventTarget native "*BatteryManager" { |
| @@ -10188,23 +10130,6 @@ class Float64Array extends ArrayBufferView implements JavaScriptIndexingBehavior |
| // BSD-style license that can be found in the LICENSE file. |
| -/// @domName HTMLFontElement; @docsEditable true |
| -class FontElement extends Element native "*HTMLFontElement" { |
| - |
| - /// @domName HTMLFontElement.color; @docsEditable true |
| - String color; |
| - |
| - /// @domName HTMLFontElement.face; @docsEditable true |
| - String face; |
| - |
| - /// @domName HTMLFontElement.size; @docsEditable true |
| - String size; |
| -} |
| -// 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. |
| - |
| - |
| /// @domName FormData; @docsEditable true |
| class FormData native "*FormData" { |
| @@ -10280,123 +10205,6 @@ class FormElement extends Element native "*HTMLFormElement" { |
| // BSD-style license that can be found in the LICENSE file. |
| -/// @domName HTMLFrameElement; @docsEditable true |
| -class FrameElement extends Element native "*HTMLFrameElement" { |
| -} |
| -// 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. |
| - |
| - |
| -/// @domName HTMLFrameSetElement; @docsEditable true |
| -class FrameSetElement extends Element native "*HTMLFrameSetElement" { |
| - |
| - static const EventStreamProvider<Event> beforeUnloadEvent = const EventStreamProvider<Event>('beforeunload'); |
| - |
| - static const EventStreamProvider<Event> blurEvent = const EventStreamProvider<Event>('blur'); |
| - |
| - static const EventStreamProvider<Event> errorEvent = const EventStreamProvider<Event>('error'); |
| - |
| - static const EventStreamProvider<Event> focusEvent = const EventStreamProvider<Event>('focus'); |
| - |
| - static const EventStreamProvider<HashChangeEvent> hashChangeEvent = const EventStreamProvider<HashChangeEvent>('hashchange'); |
| - |
| - static const EventStreamProvider<Event> loadEvent = const EventStreamProvider<Event>('load'); |
| - |
| - static const EventStreamProvider<MessageEvent> messageEvent = const EventStreamProvider<MessageEvent>('message'); |
| - |
| - static const EventStreamProvider<Event> offlineEvent = const EventStreamProvider<Event>('offline'); |
| - |
| - static const EventStreamProvider<Event> onlineEvent = const EventStreamProvider<Event>('online'); |
| - |
| - static const EventStreamProvider<PopStateEvent> popStateEvent = const EventStreamProvider<PopStateEvent>('popstate'); |
| - |
| - static const EventStreamProvider<Event> resizeEvent = const EventStreamProvider<Event>('resize'); |
| - |
| - static const EventStreamProvider<StorageEvent> storageEvent = const EventStreamProvider<StorageEvent>('storage'); |
| - |
| - static const EventStreamProvider<Event> unloadEvent = const EventStreamProvider<Event>('unload'); |
| - |
| - /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent; @docsEditable true |
| - FrameSetElementEvents get on => |
| - new FrameSetElementEvents(this); |
| - |
| - Stream<Event> get onBeforeUnload => beforeUnloadEvent.forTarget(this); |
| - |
| - Stream<Event> get onBlur => blurEvent.forTarget(this); |
| - |
| - Stream<Event> get onError => errorEvent.forTarget(this); |
| - |
| - Stream<Event> get onFocus => focusEvent.forTarget(this); |
| - |
| - Stream<HashChangeEvent> get onHashChange => hashChangeEvent.forTarget(this); |
| - |
| - Stream<Event> get onLoad => loadEvent.forTarget(this); |
| - |
| - Stream<MessageEvent> get onMessage => messageEvent.forTarget(this); |
| - |
| - Stream<Event> get onOffline => offlineEvent.forTarget(this); |
| - |
| - Stream<Event> get onOnline => onlineEvent.forTarget(this); |
| - |
| - Stream<PopStateEvent> get onPopState => popStateEvent.forTarget(this); |
| - |
| - Stream<Event> get onResize => resizeEvent.forTarget(this); |
| - |
| - Stream<StorageEvent> get onStorage => storageEvent.forTarget(this); |
| - |
| - Stream<Event> get onUnload => unloadEvent.forTarget(this); |
| -} |
| - |
| -/// @docsEditable true |
| -class FrameSetElementEvents extends ElementEvents { |
| - /// @docsEditable true |
| - FrameSetElementEvents(EventTarget _ptr) : super(_ptr); |
| - |
| - /// @docsEditable true |
| - EventListenerList get beforeUnload => this['beforeunload']; |
| - |
| - /// @docsEditable true |
| - EventListenerList get blur => this['blur']; |
| - |
| - /// @docsEditable true |
| - EventListenerList get error => this['error']; |
| - |
| - /// @docsEditable true |
| - EventListenerList get focus => this['focus']; |
| - |
| - /// @docsEditable true |
| - EventListenerList get hashChange => this['hashchange']; |
| - |
| - /// @docsEditable true |
| - EventListenerList get load => this['load']; |
| - |
| - /// @docsEditable true |
| - EventListenerList get message => this['message']; |
| - |
| - /// @docsEditable true |
| - EventListenerList get offline => this['offline']; |
| - |
| - /// @docsEditable true |
| - EventListenerList get online => this['online']; |
| - |
| - /// @docsEditable true |
| - EventListenerList get popState => this['popstate']; |
| - |
| - /// @docsEditable true |
| - EventListenerList get resize => this['resize']; |
| - |
| - /// @docsEditable true |
| - EventListenerList get storage => this['storage']; |
| - |
| - /// @docsEditable true |
| - EventListenerList get unload => this['unload']; |
| -} |
| -// 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. |
| - |
| - |
| /// @domName Gamepad; @docsEditable true |
| class Gamepad native "*Gamepad" { |
| @@ -13158,56 +12966,6 @@ class MapElement extends Element native "*HTMLMapElement" { |
| // BSD-style license that can be found in the LICENSE file. |
| -/// @domName HTMLMarqueeElement; @docsEditable true |
| -class MarqueeElement extends Element native "*HTMLMarqueeElement" { |
| - |
| - /// Checks if this type is supported on the current platform. |
| - static bool get supported => Element.isTagSupported('marquee')&& (new Element.tag('marquee') is MarqueeElement); |
| - |
| - /// @domName HTMLMarqueeElement.behavior; @docsEditable true |
| - String behavior; |
| - |
| - /// @domName HTMLMarqueeElement.bgColor; @docsEditable true |
| - String bgColor; |
| - |
| - /// @domName HTMLMarqueeElement.direction; @docsEditable true |
| - String direction; |
| - |
| - /// @domName HTMLMarqueeElement.height; @docsEditable true |
| - String height; |
| - |
| - /// @domName HTMLMarqueeElement.hspace; @docsEditable true |
| - int hspace; |
| - |
| - /// @domName HTMLMarqueeElement.loop; @docsEditable true |
| - int loop; |
| - |
| - /// @domName HTMLMarqueeElement.scrollAmount; @docsEditable true |
| - int scrollAmount; |
| - |
| - /// @domName HTMLMarqueeElement.scrollDelay; @docsEditable true |
| - int scrollDelay; |
| - |
| - /// @domName HTMLMarqueeElement.trueSpeed; @docsEditable true |
| - bool trueSpeed; |
| - |
| - /// @domName HTMLMarqueeElement.vspace; @docsEditable true |
| - int vspace; |
| - |
| - /// @domName HTMLMarqueeElement.width; @docsEditable true |
| - String width; |
| - |
| - /// @domName HTMLMarqueeElement.start; @docsEditable true |
| - void start() native; |
| - |
| - /// @domName HTMLMarqueeElement.stop; @docsEditable true |
| - void stop() native; |
| -} |
| -// 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. |
| - |
| - |
| /// @domName MediaController; @docsEditable true |
| class MediaController extends EventTarget native "*MediaController" { |
| @@ -23146,6 +22904,22 @@ class XsltProcessor native "*XSLTProcessor" { |
| // BSD-style license that can be found in the LICENSE file. |
| +/// @domName HTMLAppletElement; @docsEditable true |
| +class _AppletElement extends Element native "*HTMLAppletElement" { |
| +} |
| +// 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. |
| + |
| + |
| +/// @domName HTMLBaseFontElement; @docsEditable true |
| +class _BaseFontElement extends Element native "*HTMLBaseFontElement" { |
| +} |
| +// 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. |
| + |
| + |
| /// @domName ClientRectList; @docsEditable true |
| class _ClientRectList implements JavaScriptIndexingBehavior, List<ClientRect> native "*ClientRectList" { |
| @@ -23964,6 +23738,131 @@ class _EntryArraySync implements JavaScriptIndexingBehavior, List<EntrySync> nat |
| // BSD-style license that can be found in the LICENSE file. |
| +/// @domName HTMLFontElement; @docsEditable true |
| +class _FontElement extends Element native "*HTMLFontElement" { |
| +} |
| +// 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. |
| + |
| + |
| +/// @domName HTMLFrameElement; @docsEditable true |
| +class _FrameElement extends Element native "*HTMLFrameElement" { |
| +} |
| +// 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. |
| + |
| + |
| +/// @domName HTMLFrameSetElement; @docsEditable true |
| +class _FrameSetElement extends Element native "*HTMLFrameSetElement" { |
| + |
| + static const EventStreamProvider<Event> beforeUnloadEvent = const EventStreamProvider<Event>('beforeunload'); |
|
blois
2013/01/15 23:05:55
Can you open a bug on this? We just need to have a
Andrei Mouravski
2013/01/15 23:57:59
http://code.google.com/p/dart/issues/detail?id=792
|
| + |
| + static const EventStreamProvider<Event> blurEvent = const EventStreamProvider<Event>('blur'); |
| + |
| + static const EventStreamProvider<Event> errorEvent = const EventStreamProvider<Event>('error'); |
| + |
| + static const EventStreamProvider<Event> focusEvent = const EventStreamProvider<Event>('focus'); |
| + |
| + static const EventStreamProvider<HashChangeEvent> hashChangeEvent = const EventStreamProvider<HashChangeEvent>('hashchange'); |
| + |
| + static const EventStreamProvider<Event> loadEvent = const EventStreamProvider<Event>('load'); |
| + |
| + static const EventStreamProvider<MessageEvent> messageEvent = const EventStreamProvider<MessageEvent>('message'); |
| + |
| + static const EventStreamProvider<Event> offlineEvent = const EventStreamProvider<Event>('offline'); |
| + |
| + static const EventStreamProvider<Event> onlineEvent = const EventStreamProvider<Event>('online'); |
| + |
| + static const EventStreamProvider<PopStateEvent> popStateEvent = const EventStreamProvider<PopStateEvent>('popstate'); |
| + |
| + static const EventStreamProvider<Event> resizeEvent = const EventStreamProvider<Event>('resize'); |
| + |
| + static const EventStreamProvider<StorageEvent> storageEvent = const EventStreamProvider<StorageEvent>('storage'); |
| + |
| + static const EventStreamProvider<Event> unloadEvent = const EventStreamProvider<Event>('unload'); |
| + |
| + /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent; @docsEditable true |
| + _FrameSetElementEvents get on => |
| + new _FrameSetElementEvents(this); |
| + |
| + Stream<Event> get onBeforeUnload => beforeUnloadEvent.forTarget(this); |
| + |
| + Stream<Event> get onBlur => blurEvent.forTarget(this); |
| + |
| + Stream<Event> get onError => errorEvent.forTarget(this); |
| + |
| + Stream<Event> get onFocus => focusEvent.forTarget(this); |
| + |
| + Stream<HashChangeEvent> get onHashChange => hashChangeEvent.forTarget(this); |
| + |
| + Stream<Event> get onLoad => loadEvent.forTarget(this); |
| + |
| + Stream<MessageEvent> get onMessage => messageEvent.forTarget(this); |
| + |
| + Stream<Event> get onOffline => offlineEvent.forTarget(this); |
| + |
| + Stream<Event> get onOnline => onlineEvent.forTarget(this); |
| + |
| + Stream<PopStateEvent> get onPopState => popStateEvent.forTarget(this); |
| + |
| + Stream<Event> get onResize => resizeEvent.forTarget(this); |
| + |
| + Stream<StorageEvent> get onStorage => storageEvent.forTarget(this); |
| + |
| + Stream<Event> get onUnload => unloadEvent.forTarget(this); |
| +} |
| + |
| +/// @docsEditable true |
| +class _FrameSetElementEvents extends ElementEvents { |
| + /// @docsEditable true |
| + _FrameSetElementEvents(EventTarget _ptr) : super(_ptr); |
| + |
| + /// @docsEditable true |
| + EventListenerList get beforeUnload => this['beforeunload']; |
| + |
| + /// @docsEditable true |
| + EventListenerList get blur => this['blur']; |
| + |
| + /// @docsEditable true |
| + EventListenerList get error => this['error']; |
| + |
| + /// @docsEditable true |
| + EventListenerList get focus => this['focus']; |
| + |
| + /// @docsEditable true |
| + EventListenerList get hashChange => this['hashchange']; |
| + |
| + /// @docsEditable true |
| + EventListenerList get load => this['load']; |
| + |
| + /// @docsEditable true |
| + EventListenerList get message => this['message']; |
| + |
| + /// @docsEditable true |
| + EventListenerList get offline => this['offline']; |
| + |
| + /// @docsEditable true |
| + EventListenerList get online => this['online']; |
| + |
| + /// @docsEditable true |
| + EventListenerList get popState => this['popstate']; |
| + |
| + /// @docsEditable true |
| + EventListenerList get resize => this['resize']; |
| + |
| + /// @docsEditable true |
| + EventListenerList get storage => this['storage']; |
| + |
| + /// @docsEditable true |
| + EventListenerList get unload => this['unload']; |
| +} |
| +// 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. |
| + |
| + |
| /// @domName GamepadList; @docsEditable true |
| class _GamepadList implements JavaScriptIndexingBehavior, List<Gamepad> native "*GamepadList" { |
| @@ -24126,6 +24025,17 @@ class _GamepadList implements JavaScriptIndexingBehavior, List<Gamepad> native " |
| // BSD-style license that can be found in the LICENSE file. |
| +/// @domName HTMLMarqueeElement; @docsEditable true |
| +class _MarqueeElement extends Element native "*HTMLMarqueeElement" { |
| + |
| + /// Checks if this type is supported on the current platform. |
| + static bool get supported => Element.isTagSupported('marquee')&& (new Element.tag('marquee') is MarqueeElement); |
|
blois
2013/01/15 23:05:55
Should remove this- it's in systemhtml.py, in the
Andrei Mouravski
2013/01/15 23:57:59
Done.
|
| +} |
| +// 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. |
| + |
| + |
| /// @domName MediaStreamList; @docsEditable true |
| class _MediaStreamList implements JavaScriptIndexingBehavior, List<MediaStream> native "*MediaStreamList" { |