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

Unified Diff: runtime/bin/stdio_patch.dart

Issue 11337019: Use patching for dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments 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: runtime/bin/stdio_patch.dart
diff --git a/lib/html/dartium/nativewrappers.dart b/runtime/bin/stdio_patch.dart
similarity index 50%
copy from lib/html/dartium/nativewrappers.dart
copy to runtime/bin/stdio_patch.dart
index 44ab39e1ac7567e620f8402b566e4b492836d41e..bcdc671aea511af35ac17df1a4bbad222ffde869 100644
--- a/lib/html/dartium/nativewrappers.dart
+++ b/runtime/bin/stdio_patch.dart
@@ -2,7 +2,9 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-#library('nativewrappers');
-
-class NativeFieldWrapperClass1 {
+patch class _StdIOUtils {
+ /* patch */ static _getStdioHandle(Socket socket, int num)
+ native "Socket_GetStdioHandle";
+ /* patch */ static _getStdioHandleType(int num)
+ native "File_GetStdioHandleType";
}
« runtime/bin/io.dart ('K') | « runtime/bin/stdio.dart ('k') | runtime/bin/stream_util.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698