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

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

Issue 1689033003: Switch broken console inspect method to call the _inspect method of the JS inspector host object. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « tools/deps/dartium.deps/DEPS ('k') | 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 _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
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
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 }
OLDNEW
« no previous file with comments | « tools/deps/dartium.deps/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698