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

Side by Side Diff: runtime/bin/builtin.dart

Issue 43773004: dart:platform | Remove isWindows, isLinux, isAndroid, isMacOS from dart:platform. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add comment about removing dart:io Platform 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 | « no previous file | runtime/lib/platform_patch.dart » ('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 library builtin; 5 library builtin;
6 import 'dart:io'; 6 import 'dart:io';
7 7
8 // Corelib 'print' implementation. 8 // Corelib 'print' implementation.
9 void _print(arg) { 9 void _print(arg) {
10 _Logger._printString(arg.toString()); 10 _Logger._printString(arg.toString());
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 } 306 }
307 307
308 308
309 String _filePathFromHttpUri(Uri uri) { 309 String _filePathFromHttpUri(Uri uri) {
310 _logResolution('# Path: $uri -> $uri'); 310 _logResolution('# Path: $uri -> $uri');
311 return uri.toString(); 311 return uri.toString();
312 } 312 }
313 313
314 314
315 class _PlatformHook { 315 class _PlatformHook {
316 // TODO(whesse): Replace uses of Platform with uses of internal _Platform
317 // class, to prepare for removal of (deprecated) Platform class.
318 // Also merge _Platform and _PlatformHook class into _Platform class
319 // at that time, since _PlatformHook is the only user of _Platform.
316 int get numberOfProcessors => Platform.numberOfProcessors; 320 int get numberOfProcessors => Platform.numberOfProcessors;
317 String get pathSeparator => Platform.pathSeparator; 321 String get pathSeparator => Platform.pathSeparator;
318 String get operatingSystem => Platform.operatingSystem; 322 String get operatingSystem => Platform.operatingSystem;
319 String get localHostname => Platform.localHostname; 323 String get localHostname => Platform.localHostname;
320 String get version => Platform.version; 324 String get version => Platform.version;
321 Map<String, String> get environment => Platform.environment; 325 Map<String, String> get environment => Platform.environment;
322 Uri get script => new Uri.file(Platform.script); 326 Uri get script => new Uri.file(Platform.script);
323 String get executable => Platform.executable; 327 String get executable => Platform.executable;
324 List<String> get executableArguments => Platform.executableArguments; 328 List<String> get executableArguments => Platform.executableArguments;
325 String get packageRoot => Platform.packageRoot; 329 String get packageRoot => Platform.packageRoot;
326 } 330 }
327 331
328 332
329 _getPlatform() => new _PlatformHook(); 333 _getPlatform() => new _PlatformHook();
330 334
331 335
332 336
OLDNEW
« no previous file with comments | « no previous file | runtime/lib/platform_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698