| Index: sdk/lib/html/dartium/html_dartium.dart
|
| diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
|
| index d08cd9fc6a91d6aa5d28dc79320f0b80c0391bf6..1bc5ef095e0f7a45af66e1c1fc15b2e6eb783d02 100644
|
| --- a/sdk/lib/html/dartium/html_dartium.dart
|
| +++ b/sdk/lib/html/dartium/html_dartium.dart
|
| @@ -27221,7 +27221,7 @@ abstract class Window {
|
| * * [Window close discussion](http://www.w3.org/TR/html5/browsers.html#dom-window-close) from the W3C
|
| */
|
| void close();
|
| - void postMessage(var message, String targetOrigin, [List messagePorts = null]);
|
| + void postMessage(var message, String targetOrigin, [List messagePorts]);
|
| }
|
|
|
| abstract class Location {
|
| @@ -27516,7 +27516,7 @@ class KeyboardEventController {
|
| String _type;
|
|
|
| /** The element we are watching for events to happen on. */
|
| - EventTarget _target;
|
| + Element _target;
|
|
|
| // The distance to shift from upper case alphabet Roman letters to lower case.
|
| final int _ROMAN_ALPHABET_OFFSET = "a".charCodes[0] - "A".charCodes[0];
|
| @@ -27575,7 +27575,7 @@ class KeyboardEventController {
|
| * General constructor, performs basic initialization for our improved
|
| * KeyboardEvent controller.
|
| */
|
| - _KeyboardEventController(EventTarget target, String type) {
|
| + _KeyboardEventController(Element target, String type) {
|
| _callbacks = [];
|
| _type = type;
|
| _target = target;
|
| @@ -28926,6 +28926,20 @@ class KeyEvent implements KeyboardEvent {
|
| throw new UnsupportedError("Cannot initialize an Event from a KeyEvent.");
|
| }
|
| String get _shadowKeyIdentifier => _parent.$dom_keyIdentifier;
|
| +
|
| + int get $dom_charCode => charCode;
|
| + int get $dom_keyCode => keyCode;
|
| + EventTarget get target => _parent.target;
|
| + String get $dom_keyIdentifier {
|
| + throw new UnsupportedError("keyIdentifier is unsupported.");
|
| + }
|
| + void $dom_initKeyboardEvent(String type, bool canBubble, bool cancelable,
|
| + LocalWindow view, String keyIdentifier, int keyLocation, bool ctrlKey,
|
| + bool altKey, bool shiftKey, bool metaKey,
|
| + bool altGraphKey) {
|
| + throw new UnsupportedError(
|
| + "Cannot initialize a KeyboardEvent from a KeyEvent.");
|
| + }
|
| }
|
| // 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
|
| @@ -29076,9 +29090,12 @@ class _JsSerializer extends _Serializer {
|
| ReceivePortSync._isolateId, x._receivePort._portId ];
|
| }
|
|
|
| + visitSendPort(SendPort x) {
|
| + throw new UnimplementedError('Asynchronous send port not yet implemented.');
|
| + }
|
| +
|
| visitRemoteSendPortSync(_RemoteSendPortSync x) {
|
| - return [ 'sendport', 'dart',
|
| - x._receivePort._isolateId, x._receivePort._portId ];
|
| + return [ 'sendport', 'dart', x._isolateId, x._portId ];
|
| }
|
| }
|
|
|
| @@ -29136,7 +29153,7 @@ class _RemoteSendPortSync implements SendPortSync {
|
| }
|
|
|
| static _call(int isolateId, int portId, var message) {
|
| - var target = 'dart-port-$isolateId-$portId';
|
| + var target = 'dart-port-$isolateId-$portId';
|
| // TODO(vsm): Make this re-entrant.
|
| // TODO(vsm): Set this up set once, on the first call.
|
| var source = '$target-result';
|
| @@ -29201,13 +29218,13 @@ class ReceivePortSync {
|
| static int get _isolateId {
|
| // TODO(vsm): Make this coherent with existing isolate code.
|
| if (_cachedIsolateId == null) {
|
| - _cachedIsolateId = _getNewIsolateId();
|
| + _cachedIsolateId = _getNewIsolateId();
|
| }
|
| return _cachedIsolateId;
|
| }
|
|
|
| static String _getListenerName(isolateId, portId) =>
|
| - 'dart-port-$isolateId-$portId';
|
| + 'dart-port-$isolateId-$portId';
|
| String get _listenerName => _getListenerName(_isolateId, _portId);
|
|
|
| void receive(callback(var message)) {
|
|
|