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

Unified Diff: sdk/lib/html/dartium/html_dartium.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 | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | tests/compiler/dart2js/analyze_api_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a1e9e52a99d9be589ee140b16819ea086200d137..50be7d131813f30b4ccc358592c1795ede0f41e2 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -25766,6 +25766,10 @@ class SpeechSynthesisVoice extends NativeFieldWrapperClass2 {
class Storage extends NativeFieldWrapperClass2
implements Map<String, String> {
+ 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);
@@ -30353,22 +30357,22 @@ class WorkerGlobalScope extends EventTarget implements _WindowTimers, WindowBase
@DomName('WorkerGlobalScope.clearInterval')
@DocsEditable()
@Experimental() // untriaged
- void clearInterval(int handle) native "WorkerGlobalScope_clearInterval_Callback";
+ void _clearInterval(int handle) native "WorkerGlobalScope_clearInterval_Callback";
@DomName('WorkerGlobalScope.clearTimeout')
@DocsEditable()
@Experimental() // untriaged
- void clearTimeout(int handle) native "WorkerGlobalScope_clearTimeout_Callback";
+ void _clearTimeout(int handle) native "WorkerGlobalScope_clearTimeout_Callback";
@DomName('WorkerGlobalScope.setInterval')
@DocsEditable()
@Experimental() // untriaged
- int setInterval(Object handler, int timeout) native "WorkerGlobalScope_setInterval_Callback";
+ int _setInterval(Object handler, int timeout) native "WorkerGlobalScope_setInterval_Callback";
@DomName('WorkerGlobalScope.setTimeout')
@DocsEditable()
@Experimental() // untriaged
- int setTimeout(Object handler, int timeout) native "WorkerGlobalScope_setTimeout_Callback";
+ int _setTimeout(Object handler, int timeout) native "WorkerGlobalScope_setTimeout_Callback";
/// Stream of `error` events handled by this [WorkerGlobalScope].
@DomName('WorkerGlobalScope.onerror')
@@ -32189,22 +32193,22 @@ abstract class _WindowTimers extends NativeFieldWrapperClass2 {
@DomName('WindowTimers.clearInterval')
@DocsEditable()
@Experimental() // untriaged
- void clearInterval(int handle) native "WindowTimers_clearInterval_Callback";
+ void _clearInterval(int handle) native "WindowTimers_clearInterval_Callback";
@DomName('WindowTimers.clearTimeout')
@DocsEditable()
@Experimental() // untriaged
- void clearTimeout(int handle) native "WindowTimers_clearTimeout_Callback";
+ void _clearTimeout(int handle) native "WindowTimers_clearTimeout_Callback";
@DomName('WindowTimers.setInterval')
@DocsEditable()
@Experimental() // untriaged
- int setInterval(Object handler, int timeout) native "WindowTimers_setInterval_Callback";
+ int _setInterval(Object handler, int timeout) native "WindowTimers_setInterval_Callback";
@DomName('WindowTimers.setTimeout')
@DocsEditable()
@Experimental() // untriaged
- int setTimeout(Object handler, int timeout) native "WindowTimers_setTimeout_Callback";
+ int _setTimeout(Object handler, int timeout) native "WindowTimers_setTimeout_Callback";
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
@@ -32312,6 +32316,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) {
@@ -32468,6 +32476,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 | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | tests/compiler/dart2js/analyze_api_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698