OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 part of html; | 5 part of html; |
6 | 6 |
7 class _ConsoleVariables { | 7 class _ConsoleVariables { |
8 Map<String, Object> _data = new Map<String, Object>(); | 8 Map<String, Object> _data = new Map<String, Object>(); |
9 | 9 |
10 /** | 10 /** |
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 _DOMStringMap.internal(); | 485 _DOMStringMap.internal(); |
486 | 486 |
487 bool containsValue(String value) => Maps.containsValue(this, value); | 487 bool containsValue(String value) => Maps.containsValue(this, value); |
488 bool containsKey(String key) => _blink.Native_DOMStringMap_containsKey(this, k
ey); | 488 bool containsKey(String key) => _blink.Native_DOMStringMap_containsKey(this, k
ey); |
489 String operator [](String key) => _blink.Native_DOMStringMap_item(this, key); | 489 String operator [](String key) => _blink.Native_DOMStringMap_item(this, key); |
490 void operator []=(String key, String value) => _blink.Native_DOMStringMap_setI
tem(this, key, value); | 490 void operator []=(String key, String value) => _blink.Native_DOMStringMap_setI
tem(this, key, value); |
491 String putIfAbsent(String key, String ifAbsent()) => Maps.putIfAbsent(this, ke
y, ifAbsent); | 491 String putIfAbsent(String key, String ifAbsent()) => Maps.putIfAbsent(this, ke
y, ifAbsent); |
492 String remove(String key) => _blink.Native_DOMStringMap_remove(this, key); | 492 String remove(String key) => _blink.Native_DOMStringMap_remove(this, key); |
493 void clear() => Maps.clear(this); | 493 void clear() => Maps.clear(this); |
494 void forEach(void f(String key, String value)) => Maps.forEach(this, f); | 494 void forEach(void f(String key, String value)) => Maps.forEach(this, f); |
495 Iterable<String> get keys => _blink.Native_DOMStringMap_get_keys(this, keys); | 495 Iterable<String> get keys => _blink.Native_DOMStringMap_get_keys(this); |
496 Iterable<String> get values => Maps.getValues(this); | 496 Iterable<String> get values => Maps.getValues(this); |
497 int get length => Maps.length(this); | 497 int get length => Maps.length(this); |
498 bool get isEmpty => Maps.isEmpty(this); | 498 bool get isEmpty => Maps.isEmpty(this); |
499 bool get isNotEmpty => Maps.isNotEmpty(this); | 499 bool get isNotEmpty => Maps.isNotEmpty(this); |
500 void addAll(Map<String, String> other) { | 500 void addAll(Map<String, String> other) { |
501 other.forEach((key, value) => this[key] = value); | 501 other.forEach((key, value) => this[key] = value); |
502 } | 502 } |
503 } | 503 } |
504 | 504 |
505 final _printClosure = window.console.log; | 505 final _printClosure = window.console.log; |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
599 _scheduleImmediateHelper._schedule(callback); | 599 _scheduleImmediateHelper._schedule(callback); |
600 }; | 600 }; |
601 | 601 |
602 get _pureIsolateScheduleImmediateClosure => ((void callback()) => | 602 get _pureIsolateScheduleImmediateClosure => ((void callback()) => |
603 throw new UnimplementedError("scheduleMicrotask in background isolates " | 603 throw new UnimplementedError("scheduleMicrotask in background isolates " |
604 "are not supported in the browser")); | 604 "are not supported in the browser")); |
605 | 605 |
606 void _initializeCustomElement(Element e) { | 606 void _initializeCustomElement(Element e) { |
607 _Utils.initializeCustomElement(e); | 607 _Utils.initializeCustomElement(e); |
608 } | 608 } |
OLD | NEW |