| OLD | NEW |
| 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 patch class _FileUtils { | |
| 6 /* patch */ static SendPort _newServicePort() native "File_NewServicePort"; | |
| 7 } | |
| 8 | |
| 9 patch class _File { | 5 patch class _File { |
| 10 /* patch */ static _exists(String path) native "File_Exists"; | 6 /* patch */ static _exists(String path) native "File_Exists"; |
| 11 /* patch */ static _create(String path) native "File_Create"; | 7 /* patch */ static _create(String path) native "File_Create"; |
| 12 /* patch */ static _createLink(String path, String target) | 8 /* patch */ static _createLink(String path, String target) |
| 13 native "File_CreateLink"; | 9 native "File_CreateLink"; |
| 14 /* patch */ static _linkTarget(String path) native "File_LinkTarget"; | 10 /* patch */ static _linkTarget(String path) native "File_LinkTarget"; |
| 15 /* patch */ static _deleteNative(String path) native "File_Delete"; | 11 /* patch */ static _deleteNative(String path) native "File_Delete"; |
| 16 /* patch */ static _deleteLinkNative(String path) native "File_DeleteLink"; | 12 /* patch */ static _deleteLinkNative(String path) native "File_DeleteLink"; |
| 17 /* patch */ static _rename(String oldPath, String newPath) | 13 /* patch */ static _rename(String oldPath, String newPath) |
| 18 native "File_Rename"; | 14 native "File_Rename"; |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 | 146 |
| 151 int _watchPath(String path, int events, bool recursive) | 147 int _watchPath(String path, int events, bool recursive) |
| 152 native "FileSystemWatcher_WatchPath"; | 148 native "FileSystemWatcher_WatchPath"; |
| 153 void _unwatchPath() native "FileSystemWatcher_UnwatchPath"; | 149 void _unwatchPath() native "FileSystemWatcher_UnwatchPath"; |
| 154 List _readEvents() native "FileSystemWatcher_ReadEvents"; | 150 List _readEvents() native "FileSystemWatcher_ReadEvents"; |
| 155 } | 151 } |
| 156 | 152 |
| 157 Uint8List _makeUint8ListView(Uint8List source, int offsetInBytes, int length) { | 153 Uint8List _makeUint8ListView(Uint8List source, int offsetInBytes, int length) { |
| 158 return new Uint8List.view(source.buffer, offsetInBytes, length); | 154 return new Uint8List.view(source.buffer, offsetInBytes, length); |
| 159 } | 155 } |
| OLD | NEW |