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

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

Issue 48733004: Dartium support for Uri.base (dart-side) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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 | « tests/html/html.status ('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 _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 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 } 528 }
529 529
530 final _printClosure = window.console.log; 530 final _printClosure = window.console.log;
531 final _pureIsolatePrintClosure = (s) { 531 final _pureIsolatePrintClosure = (s) {
532 throw new UnimplementedError("Printing from a background isolate " 532 throw new UnimplementedError("Printing from a background isolate "
533 "is not supported in the browser"); 533 "is not supported in the browser");
534 }; 534 };
535 535
536 final _forwardingPrintClosure = _Utils.forwardingPrint; 536 final _forwardingPrintClosure = _Utils.forwardingPrint;
537 537
538 final _uriBaseClosure = () => Uri.parse(window.location.href);
539
540 final _pureIsolateUriBaseClosure = () {
541 throw new UnimplementedError("Uri.base on a background isolate "
542 "is not supported in the browser");
siva 2013/10/28 18:44:51 Shouldn't we have some kind of base for this too m
vsm 2013/10/29 14:10:53 Any idea how I can get this base for a background
floitsch 2013/10/29 18:05:21 The spawnUri already comes with an initial message
543 };
544
538 class _Timer implements Timer { 545 class _Timer implements Timer {
539 var _canceler; 546 var _canceler;
540 547
541 _Timer(int milliSeconds, void callback(Timer timer), bool repeating) { 548 _Timer(int milliSeconds, void callback(Timer timer), bool repeating) {
542 549
543 if (repeating) { 550 if (repeating) {
544 int id = window._setInterval(() { 551 int id = window._setInterval(() {
545 callback(this); 552 callback(this);
546 }, milliSeconds); 553 }, milliSeconds);
547 _canceler = () => window._clearInterval(id); 554 _canceler = () => window._clearInterval(id);
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 _scheduleImmediateHelper._schedule(callback); 621 _scheduleImmediateHelper._schedule(callback);
615 }; 622 };
616 623
617 get _pureIsolateScheduleImmediateClosure => ((void callback()) => 624 get _pureIsolateScheduleImmediateClosure => ((void callback()) =>
618 throw new UnimplementedError("scheduleMicrotask in background isolates " 625 throw new UnimplementedError("scheduleMicrotask in background isolates "
619 "are not supported in the browser")); 626 "are not supported in the browser"));
620 627
621 void _initializeCustomElement(Element e) { 628 void _initializeCustomElement(Element e) {
622 _Utils.initializeCustomElement(e); 629 _Utils.initializeCustomElement(e);
623 } 630 }
OLDNEW
« no previous file with comments | « tests/html/html.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698