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

Side by Side Diff: sky/engine/bindings/builtin.dart

Issue 926163002: Program _uriBaseClosure into the DartVM (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 | « no previous file | sky/engine/bindings/builtin_natives.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 library sky_builtin; 5 library sky_builtin;
6 6
7 import "dart:async"; 7 import "dart:async";
8 8
9 // Corelib 'print' implementation. 9 // Corelib 'print' implementation.
10 void _print(arg) { 10 void _print(arg) {
(...skipping 30 matching lines...) Expand all
41 int _id; 41 int _id;
42 } 42 }
43 43
44 void _scheduleMicrotask(void callback()) native "ScheduleMicrotask"; 44 void _scheduleMicrotask(void callback()) native "ScheduleMicrotask";
45 Timer _createTimer(int milliseconds, 45 Timer _createTimer(int milliseconds,
46 void callback(Timer timer), 46 void callback(Timer timer),
47 bool repeating) { 47 bool repeating) {
48 return new _Timer(milliseconds, callback, repeating); 48 return new _Timer(milliseconds, callback, repeating);
49 } 49 }
50 50
51 String _getBaseURLString() native "GetBaseURLString";
52 Uri _getBaseURL() => Uri.parse(_getBaseURLString());
53
51 _getPrintClosure() => _print; 54 _getPrintClosure() => _print;
52 _getScheduleMicrotaskClosure() => _scheduleMicrotask; 55 _getScheduleMicrotaskClosure() => _scheduleMicrotask;
56 _getGetBaseURLClosure() =>_getBaseURL;
53 _getCreateTimerClosure() => _createTimer; 57 _getCreateTimerClosure() => _createTimer;
OLDNEW
« no previous file with comments | « no previous file | sky/engine/bindings/builtin_natives.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698