| 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 _Property { | 7 class _Property { |
| 8 _Property(this.name) : | 8 _Property(this.name) : |
| 9 _hasValue = false, | 9 _hasValue = false, |
| 10 writable = false, | 10 writable = false, |
| (...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 767 } | 767 } |
| 768 | 768 |
| 769 /** | 769 /** |
| 770 * Helper to wrap the inspect method on InjectedScriptHost to provide the | 770 * Helper to wrap the inspect method on InjectedScriptHost to provide the |
| 771 * inspect method required for the | 771 * inspect method required for the |
| 772 */ | 772 */ |
| 773 static List consoleApi(host) { | 773 static List consoleApi(host) { |
| 774 return [ | 774 return [ |
| 775 "inspect", | 775 "inspect", |
| 776 (o) { | 776 (o) { |
| 777 host.callMethod("inspect", [o]); | 777 host.callMethod("_inspect", [unwrap_jso(o)]); |
| 778 return o; | 778 return o; |
| 779 }, | 779 }, |
| 780 "dir", | 780 "dir", |
| 781 window().console.dir, | 781 window().console.dir, |
| 782 "dirxml", | 782 "dirxml", |
| 783 window().console.dirxml | 783 window().console.dirxml |
| 784 // FIXME: add copy method. | 784 // FIXME: add copy method. |
| 785 ]; | 785 ]; |
| 786 } | 786 } |
| 787 | 787 |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1112 _scheduleImmediateHelper._schedule(callback); | 1112 _scheduleImmediateHelper._schedule(callback); |
| 1113 }; | 1113 }; |
| 1114 | 1114 |
| 1115 get _pureIsolateScheduleImmediateClosure => ((void callback()) => | 1115 get _pureIsolateScheduleImmediateClosure => ((void callback()) => |
| 1116 throw new UnimplementedError("scheduleMicrotask in background isolates " | 1116 throw new UnimplementedError("scheduleMicrotask in background isolates " |
| 1117 "are not supported in the browser")); | 1117 "are not supported in the browser")); |
| 1118 | 1118 |
| 1119 // Class for unsupported native browser 'DOM' objects. | 1119 // Class for unsupported native browser 'DOM' objects. |
| 1120 class _UnsupportedBrowserObject extends DartHtmlDomObject { | 1120 class _UnsupportedBrowserObject extends DartHtmlDomObject { |
| 1121 } | 1121 } |
| OLD | NEW |