Chromium Code Reviews| 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 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 } |
| OLD | NEW |