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

Unified Diff: lib/io/platform_impl.dart

Issue 11337019: Use patching for dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: lib/io/platform_impl.dart
diff --git a/runtime/bin/platform_impl.dart b/lib/io/platform_impl.dart
similarity index 83%
rename from runtime/bin/platform_impl.dart
rename to lib/io/platform_impl.dart
index 8949f794b61c7a5a7afb203c080573bd31b9341e..f8e0411ced3dc72382573c5120547911c3cb48db 100644
--- a/runtime/bin/platform_impl.dart
+++ b/lib/io/platform_impl.dart
@@ -3,11 +3,11 @@
// BSD-style license that can be found in the LICENSE file.
class _Platform {
- static int _numberOfProcessors() native "Platform_NumberOfProcessors";
- static String _pathSeparator() native "Platform_PathSeparator";
- static String _operatingSystem() native "Platform_OperatingSystem";
- static _localHostname() native "Platform_LocalHostname";
- static _environment() native "Platform_Environment";
+ external static int _numberOfProcessors();
+ external static String _pathSeparator();
+ external static String _operatingSystem();
+ external static _localHostname();
+ external static _environment();
static int get numberOfProcessors {
return _numberOfProcessors();

Powered by Google App Engine
This is Rietveld 408576698