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

Side by Side Diff: tools/dom/src/native_DOMImplementation.dart

Issue 25722010: Add support for micro-tasks in Dartium. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 get _timerFactoryClosure => 404 get _timerFactoryClosure =>
405 (int milliSeconds, void callback(Timer timer), bool repeating) { 405 (int milliSeconds, void callback(Timer timer), bool repeating) {
406 return new _Timer(milliSeconds, callback, repeating); 406 return new _Timer(milliSeconds, callback, repeating);
407 }; 407 };
408 408
409 get _pureIsolateTimerFactoryClosure => 409 get _pureIsolateTimerFactoryClosure =>
410 ((int milliSeconds, void callback(Timer time), bool repeating) => 410 ((int milliSeconds, void callback(Timer time), bool repeating) =>
411 throw new UnimplementedError("Timers on background isolates " 411 throw new UnimplementedError("Timers on background isolates "
412 "are not supported in the browser")); 412 "are not supported in the browser"));
413 413
414 final _enqueueImmediateHelperNode = new DivElement();
415 get _enqueueImmediateFactoryClosure => (void callback()) {
416 new MutationObserver((changes, observer) {
417 observer.disconnect();
418 callback();
419 }).observe(_enqueueImmediateHelperNode, childList: true, attributes: true);
420 _enqueueImmediateHelperNode.attributes.clear();
blois 2013/10/03 16:54:29 The attributes getter isn't as lightweight as it s
Anders Johnsen 2013/10/10 14:48:54 Done.
421 _enqueueImmediateHelperNode.attributes["text"] = " ";
422 };
423
424 get _pureIsolateEnqueueImmediateFactoryClosure => ((void callback()) =>
425 throw new UnimplementedError("runAsync in background isolates "
426 "are not supported in the browser"));
427
414 void _initializeCustomElement(Element e) { 428 void _initializeCustomElement(Element e) {
415 _Utils.initializeCustomElement(e); 429 _Utils.initializeCustomElement(e);
416 } 430 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698