Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2418)

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 103933005: Fix bug 15417 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3e685dbb7935458ab4cfca0176b905bb74edbcc4..5bbd1413bf4b8562fe1dee520634015e5b1da8ac 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -24085,6 +24085,10 @@ class SpeechSynthesisVoice extends Interceptor native "SpeechSynthesisVoice" {
class Storage extends Interceptor
implements Map<String, String> native "Storage" {
+ void addAll(Map<String, String> other) {
+ other.forEach((k, v) { this[k] = v; });
+ }
+
// TODO(nweiz): update this when maps support lazy iteration
bool containsValue(String value) => values.any((e) => e == value);
@@ -28733,25 +28737,29 @@ class WorkerGlobalScope extends EventTarget implements _WindowTimers, WindowBase
// From WindowTimers
+ @JSName('clearInterval')
@DomName('WorkerGlobalScope.clearInterval')
@DocsEditable()
@Experimental() // untriaged
- void clearInterval(int handle) native;
+ void _clearInterval(int handle) native;
+ @JSName('clearTimeout')
@DomName('WorkerGlobalScope.clearTimeout')
@DocsEditable()
@Experimental() // untriaged
- void clearTimeout(int handle) native;
+ void _clearTimeout(int handle) native;
+ @JSName('setInterval')
@DomName('WorkerGlobalScope.setInterval')
@DocsEditable()
@Experimental() // untriaged
- int setInterval(Object handler, int timeout) native;
+ int _setInterval(Object handler, int timeout) native;
+ @JSName('setTimeout')
@DomName('WorkerGlobalScope.setTimeout')
@DocsEditable()
@Experimental() // untriaged
- int setTimeout(Object handler, int timeout) native;
+ int _setTimeout(Object handler, int timeout) native;
/// Stream of `error` events handled by this [WorkerGlobalScope].
@DomName('WorkerGlobalScope.onerror')
@@ -30381,13 +30389,13 @@ abstract class _WindowTimers extends Interceptor {
// To suppress missing implicit constructor warnings.
factory _WindowTimers._() { throw new UnsupportedError("Not supported"); }
- void clearInterval(int handle);
+ void _clearInterval(int handle);
- void clearTimeout(int handle);
+ void _clearTimeout(int handle);
- int setInterval(Object handler, int timeout);
+ int _setInterval(Object handler, int timeout);
- int setTimeout(Object handler, int timeout);
+ int _setTimeout(Object handler, int timeout);
}
// 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
@@ -30441,6 +30449,10 @@ abstract class _AttributeMap implements Map<String, String> {
_AttributeMap(this._element);
+ void addAll(Map<String, String> other) {
+ other.forEach((k, v) { this[k] = v; });
+ }
+
bool containsValue(String value) {
for (var v in this.values) {
if (value == v) {
@@ -30597,6 +30609,10 @@ class _DataAttributeMap implements Map<String, String> {
// interface Map
+ void addAll(Map<String, String> other) {
+ other.forEach((k, v) { this[k] = v; });
+ }
+
// TODO: Use lazy iterator when it is available on Map.
bool containsValue(String value) => values.any((v) => v == value);
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698