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

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

Issue 204033002: Fixes for Chrome 34 merge (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 | « tools/dom/scripts/systemnative.py ('k') | tools/dom/templates/html/dartium/cpp_header.template » ('j') | 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 } 139 }
140 140
141 static _ConsoleVariables _consoleTempVariables = new _ConsoleVariables(); 141 static _ConsoleVariables _consoleTempVariables = new _ConsoleVariables();
142 142
143 /** 143 /**
144 * Header passed in from the Dartium Developer Tools when an expression is 144 * Header passed in from the Dartium Developer Tools when an expression is
145 * evaluated in the console as opposed to the watch window or another context 145 * evaluated in the console as opposed to the watch window or another context
146 * that does not expect REPL support. 146 * that does not expect REPL support.
147 */ 147 */
148 static const _CONSOLE_API_SUPPORT_HEADER = 148 static const _CONSOLE_API_SUPPORT_HEADER =
149 'with ((console && console._commandLineAPI) || {}) {\n'; 149 'with ((console && console._commandLineAPI) || { __proto__: null }) {\n';
150
151 static bool expectsConsoleApi(String expression) { 150 static bool expectsConsoleApi(String expression) {
152 return expression.indexOf(_CONSOLE_API_SUPPORT_HEADER) == 0;; 151 return expression.indexOf(_CONSOLE_API_SUPPORT_HEADER) == 0;;
153 } 152 }
154 153
155 /** 154 /**
156 * Takes an [expression] and a list of [local] variable and returns an 155 * Takes an [expression] and a list of [local] variable and returns an
157 * expression for a closure with a body matching the original expression 156 * expression for a closure with a body matching the original expression
158 * where locals are passed in as arguments. Returns a list containing the 157 * where locals are passed in as arguments. Returns a list containing the
159 * String expression for the closure and the list of arguments that should 158 * String expression for the closure and the list of arguments that should
160 * be passed to it. The expression should then be evaluated using 159 * be passed to it. The expression should then be evaluated using
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 _scheduleImmediateHelper._schedule(callback); 629 _scheduleImmediateHelper._schedule(callback);
631 }; 630 };
632 631
633 get _pureIsolateScheduleImmediateClosure => ((void callback()) => 632 get _pureIsolateScheduleImmediateClosure => ((void callback()) =>
634 throw new UnimplementedError("scheduleMicrotask in background isolates " 633 throw new UnimplementedError("scheduleMicrotask in background isolates "
635 "are not supported in the browser")); 634 "are not supported in the browser"));
636 635
637 void _initializeCustomElement(Element e) { 636 void _initializeCustomElement(Element e) {
638 _Utils.initializeCustomElement(e); 637 _Utils.initializeCustomElement(e);
639 } 638 }
OLDNEW
« no previous file with comments | « tools/dom/scripts/systemnative.py ('k') | tools/dom/templates/html/dartium/cpp_header.template » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698